Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 93
Search took 0.01 seconds.
Search: Posts Made By: nindoja
Forum: C Jul 7th, 2006, 11:24 PM
Replies: 5
Views: 214
Posted By nindoja
Grumpy, I think my wording was confusing. What I...

Grumpy, I think my wording was confusing. What I was saying when I said "I'm not sure if this is standards compliant" I was referring to me using
main(int argc, char *argv[]) to pass input to my...
Forum: C Jul 7th, 2006, 3:20 PM
Replies: 5
Views: 214
Posted By nindoja
main(int argc, char *argv[]) is used when...

main(int argc, char *argv[]) is used when arguments need to be passed to your program. Usually this is done from the command prompt, but may also be used when the program is called from another...
Forum: C Jun 14th, 2006, 10:17 PM
Replies: 16
Views: 399
Posted By nindoja
I think you misunderstand how the server is...

I think you misunderstand how the server is reading data in. If you were to print a tab character between each parameter, the data base should read it in fine. Databases tend to read in...
Forum: C Jun 13th, 2006, 11:20 PM
Replies: 16
Views: 399
Posted By nindoja
If you are outputting it to the console, you...

If you are outputting it to the console, you could use printf's formatting to output it like you want. If you want it output to a file looking like that, you could have a loop that starts at 0 and...
Forum: C++ Jun 13th, 2006, 11:20 PM
Replies: 32
Views: 975
Posted By nindoja
After you declare the array you cannot use an...

After you declare the array you cannot use an initializer list to declare the values. You will have to either loop through or have individual assignments.
Forum: Java Jun 12th, 2006, 8:15 PM
Replies: 12
Views: 298
Posted By nindoja
Jimbo, I don't think that works, unless i'm...

Jimbo, I don't think that works, unless i'm misunderstaning what it is supposed to do. When I put 25 in for num, I get "az", and the 25th one should be 'y', which is 27 away from "az".

OP: You may...
Forum: C++ May 23rd, 2006, 10:14 PM
Replies: 19
Views: 494
Posted By nindoja
bhe02: In regards to your other question, look...

bhe02: In regards to your other question, look up WSAEnumNetworkEvents and WSAEventSelect
Forum: Paid Job Offers Apr 18th, 2006, 8:18 PM
Replies: 8
Views: 261
Posted By nindoja
I may be interested. I worked on an IM program...

I may be interested. I worked on an IM program for a competition in the area. It sounds like our projects are equally far along in terms of features, except I have some encrpytion of messages built...
Forum: C Apr 10th, 2006, 7:15 PM
Replies: 14
Views: 340
Posted By nindoja
Dawei is right, I forgot that in C one must...

Dawei is right, I forgot that in C one must declare all variables first, then use them in code.
Forum: C Apr 9th, 2006, 8:33 PM
Replies: 14
Views: 340
Posted By nindoja
Your problem is with your function calls. You...

Your problem is with your function calls. You call the function correctly, but fail to assign the returned values to anything.
int time=0;
int length=0;
double gross=0;
double net=0;
char...
Forum: C++ Mar 28th, 2006, 11:03 PM
Replies: 11
Views: 335
Posted By nindoja
What operating system, what GUI, and what...

What operating system, what GUI, and what compiler are you using? These are all questions that we need before we can provide a relevant answer.
Forum: C++ Mar 12th, 2006, 10:22 PM
Replies: 9
Views: 231
Posted By nindoja
Where do you assign values to tempwid and temphgt...

Where do you assign values to tempwid and temphgt and mapwid and maphgt? I think what is happening is that your tempwid and temphgt are set differently than your implemention of them in the search...
Forum: Java Feb 25th, 2006, 9:27 PM
Replies: 4
Views: 205
Posted By nindoja
This, if I understand you correctly, must be done...

This, if I understand you correctly, must be done with a router's firewall. If the server works on your local network, then you need to enable port forwarding. You will want to forward the port...
Forum: C++ Feb 16th, 2006, 4:02 PM
Replies: 4
Views: 151
Posted By nindoja
Google is your...

Google is your friend:http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial_s&hl=en&q=saving+to+a+file+c%2B%2B&btnG=Google+Search
Forum: C++ Feb 12th, 2006, 6:02 PM
Replies: 12
Views: 367
Posted By nindoja
If you are on windows, look into atoi, and itoa...

If you are on windows, look into atoi, and itoa to store an integer in a character array.
Forum: C++ Jan 30th, 2006, 9:22 PM
Replies: 6
Views: 257
Posted By nindoja
Here is an open source c++ bittorrent...

Here is an open source c++ bittorrent program:
http://libtorrent.rakshasa.no/

Check the "Browse Source" under /trunk/rtorrent/src/
Forum: C Jan 20th, 2006, 3:54 PM
Replies: 8
Views: 549
Posted By nindoja
Another way to do it would be to use files. You...

Another way to do it would be to use files. You could have an input file, and save the numbers there. Then you can read from the file and use those numbers in your function. If you really wanted...
Forum: C Jan 14th, 2006, 1:18 PM
Replies: 10
Views: 332
Posted By nindoja
Here is what you can do: Read through the input...

Here is what you can do:

Read through the input one character at a time and compare it to a double quote. If it is not a double quote write the character to a file that you have open. If it is a...
Forum: Java Jan 12th, 2006, 7:17 PM
Replies: 17
Views: 459
Posted By nindoja
did you try what I said, namely the last thing i...

did you try what I said, namely the last thing i suggested?
Forum: C++ Jan 12th, 2006, 4:02 PM
Replies: 6
Views: 227
Posted By nindoja
I've always used #pragma comment(lib,...

I've always used
#pragma comment(lib, "WS2_32.lib") after my defines and includes.
Forum: Java Jan 11th, 2006, 11:08 PM
Replies: 17
Views: 459
Posted By nindoja
reggaeton: don't steal someone's thread, 1) it's...

reggaeton: don't steal someone's thread, 1) it's rude, 2) your likely to get comments like this.

OP: An easier way is to make a batch file that runs the command prompt and changes the directory for...
Forum: C++ Jan 10th, 2006, 10:57 PM
Replies: 11
Views: 447
Posted By nindoja
Use strings or character arrays, your choice. ...

Use strings or character arrays, your choice. Loop through each strand, comparing each base one by one. Then:

1) If the two bases are different, add the base to the diff_base string.
2) If the two...
Forum: C Jan 10th, 2006, 10:50 PM
Replies: 18
Views: 473
Posted By nindoja
Is no one going to point out that he forgot the ,...

Is no one going to point out that he forgot the , in the scanf?
scanf("%d",&selection);
Forum: C Jan 6th, 2006, 3:19 PM
Replies: 1
Views: 157
Posted By nindoja
Did I miss it completely, or is there no question...

Did I miss it completely, or is there no question here? Please read the forums How To Post Thread (http://www.programmingforums.org/forum/showthread.php?t=5096).
Forum: C++ Jan 5th, 2006, 11:29 AM
Replies: 7
Views: 227
Posted By nindoja
whoops, I thought he was checking characters...

whoops, I thought he was checking characters against a character. Sorry about that, just misread his post.
Forum: C++ Jan 4th, 2006, 10:50 PM
Replies: 7
Views: 227
Posted By nindoja
also, you can't check like if (action=="s"), you...

also, you can't check like if (action=="s"), you need to use single quotes, if (action=='s'). IR's suggestion is good as well.
Forum: C++ Jan 4th, 2006, 10:49 PM
Replies: 2
Views: 161
Posted By nindoja
Create an ofstream object, and open a file. Then...

Create an ofstream object, and open a file. Then print the data members of the objects on seperate lines. repeat for each object. When loading, create in ifstream object, and read each line into a...
Forum: C++ Jan 2nd, 2006, 10:59 PM
Replies: 12
Views: 392
Posted By nindoja
@teencoder: Why, the code he gave us is enough...

@teencoder: Why, the code he gave us is enough to solve the problem. His only fault was not putting his code in [code] tags.
Forum: C Jan 2nd, 2006, 5:17 PM
Replies: 3
Views: 178
Posted By nindoja
It depends on what OS you are on. On Windows,...

It depends on what OS you are on. On Windows, look into the Win32 API, OpenGL, DirectX, among others. On Linux, look into KDE, GNOME, GTK.
Forum: C Jan 1st, 2006, 4:38 PM
Replies: 4
Views: 285
Posted By nindoja
Elford: In VS2005, create a new visual c++...

Elford: In VS2005, create a new visual c++ console application. Then, in the left pane, right click your project and click "Add->Existing Item" and click each file and then repeat until they are...
Forum: C# Dec 26th, 2005, 11:54 PM
Replies: 7
Views: 429
Posted By nindoja
The_Dark: It doesn't have to be, but I don't have...

The_Dark: It doesn't have to be, but I don't have enough knowledge of the Win32 API to use windows applications.

Para: Pipes would work, except I need to write to the other processes' output, not to...
Forum: C# Dec 25th, 2005, 11:36 PM
Replies: 7
Views: 429
Posted By nindoja
The programs don't actually have to be compiled...

The programs don't actually have to be compiled executables, I could just place the code in a function, I just need a way to open a console window for each one. That aside, the client and the server...
Forum: C# Dec 25th, 2005, 8:49 PM
Replies: 7
Views: 429
Posted By nindoja
What I am building is a networking application...

What I am building is a networking application that receives data from the server, then based on the first part of the data, sends the information to the console window of the specified program. ...
Forum: C++ Dec 25th, 2005, 7:30 PM
Replies: 24
Views: 629
Posted By nindoja
All you need to do is download dev-c++ with the...

All you need to do is download dev-c++ with the MiniGW compiler (http://prdownloads.sourceforge.net/dev-cpp/devcpp-4.9.9.2_setup.exe ). It will do all of the compiler arguments for you. If you...
Forum: C# Dec 25th, 2005, 7:04 PM
Replies: 7
Views: 429
Posted By nindoja
the best way to pass data between two programs

Hello. Basically, my main program needs to open multiple programs and pass data back and forth between them. Just for your information, the programs were written by myself, so if I need to place...
Forum: C++ Dec 25th, 2005, 8:38 AM
Replies: 27
Views: 603
Posted By nindoja
You might attempt to run the functions one after...

You might attempt to run the functions one after another, and see how it affects the engine. If it does not cause any lag after a few test runs, then why bother with other methods, unless it is a...
Forum: C++ Dec 24th, 2005, 1:42 PM
Replies: 27
Views: 603
Posted By nindoja
No, that's not the proper way to exit a loop. To...

No, that's not the proper way to exit a loop. To do that you should do a break;.
OP: as suggested earlier, threads are most likely to be your best bet. Also, please tell us which operating system...
Forum: C++ Dec 13th, 2005, 9:17 PM
Replies: 7
Views: 306
Posted By nindoja
lol, good luck with that goal. You will need...

lol, good luck with that goal.
You will need knowlege of c and/or c++, and then an API. Please tell us which OS you are coding on, and then we can suggest some suitable API's.
Forum: C Dec 4th, 2005, 10:10 PM
Replies: 7
Views: 264
Posted By nindoja
Make an array of structs: struct StockInfo...

Make an array of structs:
struct StockInfo s[10];
int count;
for(count=0;count<10;count++)
{
printf("Please enter a Stock Name for stock #1.\n");
gets(s[count].sName);
printf("Please...
Forum: C++ Dec 3rd, 2005, 11:18 PM
Replies: 14
Views: 489
Posted By nindoja
@jayme: you can't set the return value of recv,...

@jayme: you can't set the return value of recv, the function determines that. Recv( is specific to a certain socket, so if the user closes the program then recv will always fail, so you need to...
Showing results 1 to 40 of 93

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:30 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC