1,265 Posted Topics
Re: Xufan your codes don't work because they are wrong. Narue has given you code that works. now do the following: (1) read Narues post above and fully understand the second example with the if/else statements. (2) take the first statement with teh ? : operators, and insert parentheses around them … | |
Name: Jephthah Height: avg Weight: working on it. Hair: yup Eyes: 20/20 Location: Gilead Age: "get off my lawn" Hobbies: smiting Ammonites Relationship Status: yes Fav Music: NPR, i guess. It always seems to be on :-\ Education: BS in Bovinoscatology Work: *sigh* If I must. Favorite Food: all the … | |
Re: if he'd bother to pay attention in the first thread he made on this, he'd understand this already. | |
Re: yeah, i did it. no, i'm going to tell you how. . | |
Re: here's that template again. where is this coming from? | |
Re: where you think you are? some sort of do-my-homework-for-me service? i'd tell you to go to the Java or C++ forum, but they'd just laugh at you if you post this "gimmetehcodez" question. when you're ready to show the work done, point out where you're stuck, and ask a coherent … | |
Re: take it to the C++ forum. they'll help you. | |
i know the general answer to using [ICODE]goto[/ICODE] is always "No!". I understand why, especially when teaching basics to new programmers, because it can lead to very bad practices and horrible spaghetti code. but ... when i write certain hardware drivers, i have to immediately cease executing a function if … | |
Re: well, yes, it's obvious. you dont' have to mince words about it. We can plainly see that he's misspelled "encrypt" in one of the encryption functions. "encrpyt" is not a word. | |
Re: you dont make any sense. standard C will will work on Borland just fine. | |
Re: wow, Dutch still live in SA? i thought you all jumped ship a while back. | |
Re: welcome Fribacka! stop by the C or C++ forums, and ask questions or contribute answers as you feel suited. | |
Re: const means constant. that it won't be changed anywhere within the scope where it is implemented. if a function takes, for example, a pointer to a "const char" argument, you know you can pass in a string to that argument and your string will not be modified by the function. | |
Re: this is a classic error. the macro just replaces the code in the program with your #define'd value verbatim. therefore, it's calculating according to the order of operation: [iCODE]225 / 15 * 15[/iCODE], which is 225. change your #define to [code]#define SQR(x) (x * x)[/code] . | |
Re: there's no reason why you should be afraid of <stdlib.h>. it won't bite you. you should not use <conio.h> that library has been obsolete for 20 years. most modern compilers do not use it. as to "how to randomize", here's the simple answer: if you want a random number from … | |
Re: sounds like a big project. show us what you've done so far. | |
Re: [url]http://www.acm.uiuc.edu/webmonkeys/book/c_guide/index.html[/url] [url]http://www.cplusplus.com/reference/clibrary/[/url] as you can see, atof() is part of the <stdlib.h>. in C++ this library is called <cstdlib> This is easily found with a minimum amount googling. its not that we dont want to help, but there's a sort of a minumum level of competence assumed that people can … | |
Re: so, what's your point? trying to drum up business for your fledgling website? or just to get a few more hits on your google ads? | |
Re: does it print "program done" and return 0? | |
Re: welcome Irfan. do you know that you have a famous name for open source graphics development. | |
Re: [QUOTE=formulajake88;1175247]Narue, you are amazing.[/QUOTE] you think that's good, stick around.... she comes up with real some stunners. | |
Re: you'll probably get better responses if you post your C++ code in the C++ forum. | |
Re: then you need to set your compiler to be more strict with the warnings. |
The End.