Sunday, July 12, 2009

How to make a tutorial in c?

hey , can someone tell me what statements should i use to make a c tutorial in c. should it be like this:


press 1 for a beginners tutorial





press 2 for an intermediate tutorial





and 3 for advance.





can someone give me a basic layout in c on how i should do it. should i use the (if and the else if) statements. and when they are done one part, then loop back to the main menu. i really need help on this.

How to make a tutorial in c?
Create a variable which stores the difficulty of the tutorial.


Then you reference this variable later on as to determine which part of a nested If statement loop you should proceed with or a simple switch statement that tests the conditions of the variable.


Make sure to include a default when creating a switch.


Though a text based tutorial as such is primitive and you should consider something graphical, unless you're doing this for a school project.
Reply:?


No comments:

Post a Comment