Keep ''em coming, I''ve just started to try and transfer everything over and compile a master-list of things needing answered. Some will get dumped at this point for being large enough topics for their own articles(Compiler/Linker explanation), some will get left alone due to my honest lack of ability or care to do a topic I feel is too advanced for what I''m looking for(Optimization and Memory Management).
Keep ''em coming, and I should start work on the article soon.
-Ryan "Run_The_Shadows"
-Run_The_Shadows@excite.com
-The Navidson Record! The best film you''ll never see!
Calling all Newbies
Okay, I read mos tof this but I skimmed a little so sorry if I am being redundant. I no how to write functions but no how to use them in code, also Classes, Ive tried to learn them every where. how to define them, how to use them etcetra. Be greatful for you help. Oh ya! what does the switch code word do and when is it used?
My funnies:
"My mom was a ventriloquist and she always was throwing her voice. For ten years I thought the dog was telling me to kill my father."
and:
"The longest word in the english language is the one that follows the phrase, ''And now a word from our sponsor''."
[edited by - Betrayer_of_Code on November 22, 2002 10:08:15 PM]
My funnies:
"My mom was a ventriloquist and she always was throwing her voice. For ten years I thought the dog was telling me to kill my father."
and:
"The longest word in the english language is the one that follows the phrase, ''And now a word from our sponsor''."
[edited by - Betrayer_of_Code on November 22, 2002 10:08:15 PM]
writing functions is like defining what they do:
Then someway or the other you call them, note: here is where they really perform actions:
Functions need to be somehow declared BEFORE the main()-function.
This could be done by:
-putting the funtion before main; (whole thing)
-putting the decleration before main, then fill the function somewhere else; (ex. int function(); before main)
the switch keyword is like a very big if keyword.
instead of using alot of if-else-if-else-if-else, you use a switch keyword to make things faster:
.lick
[edited by - Pipo DeClown on November 23, 2002 4:12:19 AM]
int function(){return 46;}
Then someway or the other you call them, note: here is where they really perform actions:
int main(){function();return 0;}
Functions need to be somehow declared BEFORE the main()-function.
This could be done by:
-putting the funtion before main; (whole thing)
-putting the decleration before main, then fill the function somewhere else; (ex. int function(); before main)
the switch keyword is like a very big if keyword.
instead of using alot of if-else-if-else-if-else, you use a switch keyword to make things faster:
int nine=9;switch( nine ){case 0: break;case 1: break;case 2: break;case 3: break;case 4: break;case 5: break;case 6: break;case 7: break;case 8: break;case 9: cout<<"Nine equals 9"; break;default: cout<<"Nine is too big!";}
.lick
[edited by - Pipo DeClown on November 23, 2002 4:12:19 AM]
How about an article around a simple game in C or C++?
Start with references to tutorials/books to learn the basics of the language..
Then some topics on designing the game, using psuedo-code/whatever..
Creating and explaining the classes/functions(C++/C)
Putting it all together...
If the game has some simple graphics, file operations, using different compiler options, and whatever else to demonstrate the basics...
Start with references to tutorials/books to learn the basics of the language..
Then some topics on designing the game, using psuedo-code/whatever..
Creating and explaining the classes/functions(C++/C)
Putting it all together...
If the game has some simple graphics, file operations, using different compiler options, and whatever else to demonstrate the basics...
I am no ub3r coder to write a book like mith or trent. I''m just trying to write one decent article. That''s it. Maybe more if it turns out okay.
-Ryan "Run_The_Shadows"
-Run_The_Shadows@excite.com
-The Navidson Record! The best film you''ll never see!
-Ryan "Run_The_Shadows"
-Run_The_Shadows@excite.com
-The Navidson Record! The best film you''ll never see!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement