Forum: C Feb 17th, 2009 |
| Replies: 2 Views: 426 Post a screenshot of the control. |
Forum: C Feb 8th, 2008 |
| Replies: 2 Views: 3,733 See if you have two main functions in both the 2 files. If you have 2, delete the one that is not needed. |
Forum: C Jan 22nd, 2008 |
| Replies: 6 Views: 999 Those statements are used to print a newline after 10 numbers are printed in a row.
% is the modulus operator. a%10 is 0 for numbers like 10, 20, and so on. So after the 10th number, the rest of... |
Forum: C Jan 22nd, 2008 |
| Replies: 6 Views: 999 What part to you not understand? |
Forum: C Jan 21st, 2008 |
| Replies: 12 Views: 47,115 In case you didn't notice, the fellow wanted the code in C. |
Forum: C Jan 16th, 2008 |
| Replies: 4 Views: 984 Since this thread is similar to a thread in the C++ forum, and duplicate threads makes it difficult to keep track of the replies, I am closing this thread. Refer this link... |
Forum: C Jan 15th, 2008 |
| Replies: 2 Views: 3,634 C FAQ (http://c-faq.com/decl/strlitinit.html). |
Forum: C Jan 15th, 2008 |
| Replies: 4 Views: 984 Rules (http://www.daniweb.com/forums/announcement8-2.html). |
Forum: C Jan 9th, 2008 |
| Replies: 5 Views: 2,136 I think that counting the number of non-empty, printable lines should do the trick. |
Forum: C Jan 5th, 2008 |
| Replies: 10 Views: 1,985 Here is the minimal code for a dialog box with a single push button. When experimenting it is always best to experiment with the least possible code.
#include <windows.h>
#define ID_1 4001
... |
Forum: C Jan 5th, 2008 |
| Replies: 10 Views: 1,985 From what I see, you are trying to create the pushbutton inside a menu. Is that what you are trying to do? If so, I don't think you can do that.
In any case, there is nothing wrong with the... |
Forum: C Dec 16th, 2007 |
| Replies: 3 Views: 3,021 Use the GetVolumeInformation (http://msdn2.microsoft.com/en-us/library/aa364993.aspx)Function. The Label can be obtained by the LPTSTR lpVolumeNameBuffer parameter. |
Forum: C Oct 17th, 2007 |
| Replies: 15 Views: 1,697 Check line 7
if h+= b % 10;
Next time post the error messages. That would help us to help you. |
Forum: C Sep 5th, 2007 |
| Replies: 2 Views: 778 |
Forum: C Sep 5th, 2007 |
| Replies: 6 Views: 1,243 Does it compile and run?
Read the documentation of printf (http://www.cppreference.com/stdio/printf.html), and you will understand if it is a valid program or not. |
Forum: C Jun 26th, 2007 |
| Replies: 3 Views: 8,715 Why don't you look up the documentation of the function that you are using? If you are using printf, look for the documentation for printf in .net 2003. It will have the valid format specifiers and... |
Forum: C May 2nd, 2007 |
| Replies: 1 Views: 776 Yes. Just use the -o option of gcc.
g++ -c function.cpp -o <PATH_OF_FOLDER>/OBJECTNAME.o |
Forum: C Apr 19th, 2007 |
| Replies: 8 Views: 2,330 Are you using C or C++ ?
Ok getline is C++.
Maybe you can hack something out of the examples in this link (http://www.cppreference.com/cppstring/getline.html). |
Forum: C Apr 7th, 2007 |
| Replies: 6 Views: 1,611 It should contain all the outputs for all the inputs the user enters.
dede
d
derdfddderd
If the output is correct, it doesnt matter how you do it. |
Forum: C Apr 7th, 2007 |
| Replies: 6 Views: 1,611 Say for example your program name is replace.exe. Then you call that program with three command line options.
Example.
replace.exe abc def outputfile.txt
Then the program will read user... |
Forum: C Apr 4th, 2007 |
| Replies: 4 Views: 1,883 How about using grid[ 0 ] = 'o'; |
Forum: C Mar 30th, 2007 |
| Replies: 5 Views: 1,866 char *key;
key[0] = 'a';
key[1] = '\0';
This should give you a segmentation fault.
Do this.
char key[ 2 ]; // or char* key = new char[ 2 ];
key[0] = 'a'; |
Forum: C Mar 28th, 2007 |
| Replies: 5 Views: 1,386 Heh. This looks like a school assignment with the word YOU replaced with I. |
Forum: C Mar 28th, 2007 |
| Replies: 3 Views: 2,705 Well, looking at the documentation for midiOutSetVolume, I see that there is a error value that can be returned when using that function. So maybe that is the reason in your case also. But the only... |
Forum: C Mar 27th, 2007 |
| Replies: 3 Views: 2,705 A WORD is 16 bits. So both the right and left channels have a range from 0x0000 to 0xFFFF. To make a DWORD, you have to use the MAKELONG... |
Forum: C Mar 27th, 2007 |
| Replies: 4 Views: 904 Okay then. post the code, and the results you get for same input in different operating systems. |
Forum: C Mar 27th, 2007 |
| Replies: 1 Views: 1,609 You should google more. This link (http://inls.ucsd.edu/%7Efisher/Fractals/usage)has this explaination.
So find the Images/r2s.c file and compile it. If you can't find it in the internet, try... |
Forum: C Mar 27th, 2007 |
| Replies: 4 Views: 904 If you had compile errors, post the code and the compile errors. Otherwise you will only get generalized answers, saying this or that may be the problem. |
Forum: C Mar 25th, 2007 |
| Replies: 2 Views: 5,892 argv[ 0] is the program name. You can see the contents by using this line
printf( "%s", argv[ 0 ] );
To get the first argument, and convert it to an integer, try this code.
#include... |
Forum: C Mar 15th, 2007 |
| Replies: 8 Views: 3,792 What is wingoze? Whatever it is, it may be an Operating system, and there should be a socket API for it. Look that up. |
Forum: C Feb 5th, 2007 |
| Replies: 1 Views: 2,502 Depends on the socket that you are using. If you are using the berkely sockets, they have (I think) -1 as the value for the invalid socket. Look up the documentation for this. The Winsock API uses... |
Forum: C Nov 26th, 2006 |
| Replies: 3 Views: 978 If you have 5 numbers the main cause shold be a out of bounds error. Use the below.
for (a=0;a<4;a++)
{
for (b=a+1;b<4;b++)
{
Edit: |
Forum: C Nov 18th, 2006 |
| Replies: 5 Views: 1,187 Use the continue keyword. It skips to the next iteration.
for (i = 0; i < count; i++ )
{
if ( i == 5 )
continue;
stuff
} |
Forum: C Nov 14th, 2006 |
| Replies: 4 Views: 2,431 Good. Mind posting the solution so that someone else can learn from it?
Thank you. |
Forum: C Nov 14th, 2006 |
| Replies: 2 Views: 2,540 Comment out section by section and locate which part gives that error. After that post it here. Since we don't have the input files, we can't reproduce the error here. The file is also too long for... |
Forum: C Nov 13th, 2006 |
| Replies: 5 Views: 6,707 Why don't you read the documentation for Sleep() ???? |
Forum: C Nov 12th, 2006 |
| Replies: 4 Views: 2,431 Why are you using the strcpy function? These are C++ strings. Use the = operator.
thisRecord.fieldName =next |
Forum: C Nov 9th, 2006 |
| Replies: 3 Views: 1,965 Hello :)
Most probably you have selected a Windows GUI application instead of a Windows Console Application. A console application starts from a main function, and a GUI applications starts... |
Forum: C Nov 9th, 2006 |
| Replies: 3 Views: 1,121 Well for that much of requests, I think I/O Completion Ports should be the best method to use. |
Forum: C Nov 9th, 2006 |
| Replies: 3 Views: 1,121 How many maximum clients do you expect to handle at a given time? All depends on that. |