- Strength to Increase Rep
- +15
- Strength to Decrease Rep
- -3
- Upvotes Received
- 374
- Posts with Upvotes
- 286
- Upvoting Members
- 99
- Downvotes Received
- 50
- Posts with Downvotes
- 43
- Downvoting Members
- 25
Re: Thrusday, October 4, 1582 was followed by most Catholic countries by Friday, October 15. Pope Gregory XIII decided that it was the best way to correct the inaccuracies accumulated since Julius Caesar presented the Julian calendar. Ten days where struck from the calendar. I going to struck down more than … | |
Re: Put Menu() inside a loop. void main() is a no no. Should always return an int. | |
Re: Rocky2008> hope you understood!! What part of post #2 did you not understand? | |
Re: [code=c] /* void is not good*/ int main() { /* clrscr(); remove this */ int r, ones=0, zeroes=0; long int n; printf("Enter A Binary Number "); fflush( stdout ); /* use when you are not terminating a printf with a \n */ scanf("%ld", &n); /* n is a long integer, … | |
Re: [QUOTE=pavankumar77;535217]how to add numbers with out using any arthematic operators in c[/QUOTE] I would be more concern in learning how to add numbers using the adding operator correctly. | |
Re: [QUOTE=WaltP;299118]I doubt it's a hotlinking problem. My avatar as of today is sitting on my site. Another try: [img]http://pattinson.net/mousehp.jpg[/img] Oh, look!!!![/QUOTE] HP is hiring any one theses days as a technician. Outsourcing must not be working for them. | |
Re: [QUOTE=vegaseat;696080]Some people consider the US $1 bill unlucky because there are so many 13's on it: 13 stars, 13 stripes, 13 steps, 13 arrows and even an olive branch with 13 leaves on it.[/QUOTE] I would be willing to take the risk away from people. Send them to me. | |
Re: I thought of posting some links I have found about free tutorials or free books to download with the permission of the author. # Optimizing C++ Optimizing C++ provides working programmers and those who intend to be working programmers with a practical, real-world approach to program optimization. Many of the … | |
Re: [QUOTE=LostnC;1029569]I'm sorry, but I don't understand. I keep looking at my code, but I really don't know what I need to do.[/QUOTE] [CODE]void swap(int *num1, int *num2) { int tempvar1; tempvar1 = *num1; [COLOR="Red"]*[/COLOR]num1 = *num2; /* learn the difference between num1 and [COLOR="Red"]*num1[/COLOR] */ [COLOR="Red"]*[/COLOR]num2 = tempvar1; } [/CODE] | |
Re: >Could you give me an dea? A [URL="http://www.daniweb.com/forums/thread91115.html"]search[/URL], perhaps? | |
Re: >[ICODE]swap(&a[x][y], &a[[COLOR="Red"]++[/COLOR]x][y]);[/ICODE] pre-incrementing here is undefined behavior. Explanation can be found [URL="https://www.securecoding.cert.org/confluence/display/cplusplus/EXP34-C.+Do+not+depend+on+order+of+evaluation+between+sequence+points"]here[/URL]. | |
Re: [quote=rajuss;338719]hi i m trying but couldnt able to do the progrm. the program is in c & its on finding a string from a text file. so please help me out to doing it:sad:[/quote] Sorry, I can not make sense of what is your question or problem. Could you state … | |
Re: [B]wilhemina>[/B] Secondly I am using eclipse C compiler in linux and I keep getting the warnings: "too few arguments for format" when using my printf statements which doesn't affect the code execution but it is a bother. Any ideas? It is just a warning since normally, [ICODE]printf()[/ICODE] expects a literal … | |
Re: [quote=satish_dukkipat;411504]int i,j=4; i=j++*++j*j--; what is the result of i and how it is evaluated please help me. the result is 125 and i don't understand the evaluation part[/quote] First an increment occurs in i = j++ * [COLOR=Red]++j [/COLOR]* j--; Now j = 4+1 = [B]5[/B]. Second: expression [COLOR=Red]i = … | |
Re: [I]Before you criticize someone, you should walk a mile in his shoes. In that way when you do, you would be a mile away and you would have his shoes.[/I] | |
Re: >how to complile and execute a c pro in editplus Editplus is a full featured text editor. Only to produce the source code. You need to use a compiler after writing the source code. Integrated development environment (IDE) is what you are looking for, if you don't want to do … | |
Re: [CODE]#include <stdio.h> int main( [COLOR="Green"]void[/COLOR] ) { printf("1 5 7 11 13 17 19 23 25 29 31 35 37 41 43 47 49 53 55 59 61 65 67 71 73 77 79 83 85 89 91 95 97 "); [COLOR="Green"]fflush( stdout );[/COLOR] return 0; } [/CODE] | |
Re: >1)Atomic Storage That must be the memory involved in nuking your program when the water cooling system fails in your computer. [Edit:] I know it was an "innocent misspelling". Just making a funny comment. | |
Re: [URL="http://cboard.cprogramming.com/showpost.php?p=710554&postcount=8"]Maybe this will help you understand.[/URL] Don't be afraid next time of creating a new thread when you want to ask something. People frown upon old threads that get bumped to a current active state. | |
Re: [QUOTE=Ekbal;767688]Hey I am Ekbal , i working in software company I am working on c,c++,VC++,VC# Ok u giv me assignment i will do it my email id is <snipped email> I am from india Thanks Ekbal[/QUOTE] Sorry, the job was filled already, but we will keep your resume just in … | |
Re: [QUOTE=jared_masc;715761] is this right??[/QUOTE] No. scanf() returns an int, representing how many formats conversion was able to fulfill. You use an array of chars [ICODE]string = scanf("%c", &phrase);[/ICODE] Therefore string needs to be change to int, furthermore, every call to scanf will bring a new return. [ICODE]int result; [/ICODE] [ICODE]result … | |
Re: >*hides even further away* There's nothing hidden there. Obfuscated, perhaps. Quite often, hard to read code, it is associated with cleverness, when the opposite it is true. An abstraction layer is the only place where "hiding" some "goring details" of a program should be used. And interesting enough, it is … | |
Re: Best distribution is the one I am using right now. After that your list is perfectly fine. | |
Re: John A> I dunno, 30,000 songs Whoa! Quite an investment. Thirteen songs in my Library. I am very picky choosing music. Nevertheless, I have a growing collection of audio books. | |
Re: >n.c:12: warning: passing argument 1 of 'fopen' from incompatible pointer type [iCODE]infile=fopen([COLOR="Red"]filename[/COLOR],"r");[/iCODE] Needs to be a string. You are passing it an array of pointers, [iCODE]char[COLOR="Red"]*[/COLOR]filename[256]; [/iCODE]and none of them have a valid string. Where's the name of the file to be read? >FILE * infile[COLOR="Red"]=0[/COLOR]; Just delete that in … | |
Re: The last call to printf(), it is being made before variable c has anything meaningful assigned to it. That while() loop doesn't have a way of stopping. Of course, it would not even get there if [B]a[/B] is greater than [B]b[/B]. [Edit:] Why do you think you need to #include … | |
Re: [code=C]/* myconcat.c */ #include <stdio.h> int main(void) { char first_s[] = "Hello"; char second_s[] = "World"; int i = 0; int x = 0; char long_s[sizeof(first_s) + sizeof(second_s)]; while(first_s[i]) { long_s[i] = first_s[i]; ++i; } long_s[i] = ' '; ++i; while(second_s[x]) { long_s[i] = second_s[x]; ++i; ++x; } long_s[i] = … | |
Re: [QUOTE=nezachem;1218189]> 'fork' undeclared (first use this function) This is really surprising. Is it the only error message? Does it maybe complain about unistd.h not being found?[/QUOTE] No really. Dev-C++ is for MS Windows, and Windows do not have the ability of forking, regardless of how many <unistd.h> header files we … |