Jump to content

Search the Community

Showing results for tags 'borland'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Found 1 result

  1. Hello Everyone, This will be an on-going tutorial on Borland C++ and I plan to answer all questions you may have regarding the subject. The following will provide you with basic knowledge of the c++ language and will hopefully guide you to further your knowledge in the future. [B][CENTER]Starting Components/Vocabulary:[/CENTER][/B] [CODE] \n = <paragraph> ( Next Line for output) clrscr(); = Clears the screen of all previous data shown. getch(); = pauses programs to allow for users to see the given prompt. cout = Sends a message to the console. main() = Marker of the "Main" program. - no task to complete. Braces * {} * - Starting and ending of code projects. #include = Import methods iosteam.h = Prototype Example // = Comment Lines /* */ = Comment Lines [/CODE] [B]The main() is the literately the main component of the program (Similar to Server.Java or Client.java in RSPS terms).[/B] [CODE]main() { Executable Code; return 0; }[/CODE] The int value that main returns is usually the value that will be passed back to the operating system. 0 traditionally indicates that the program was successful. [CENTER][B]Identifiers and outputs[/B][/CENTER] [B]Identifiers & variables hold values in the computer's RAM while the program is still running.[/B] [CODE]char - Characters int- integers from -32,768 - 32,767 float- Decimals -3.4x10^-38 - 3.4x10^38[/CODE] [CENTER][B]Expansions:[/B][/CENTER] [CODE]long-integers from -2,147,438,648 - 2,147,438,647 Double- Decimal -1.7x10^308 - 1.7x10^308 long double- -3.4x10^4932 - 3.4x10^4932[/CODE] [CENTER][B]Declaring Variables:[/B][/CENTER] [LIST=1] [*]Any variable used has to start with a letter or underscore. [*]After the first character, you can use any key on Keyboard, besides the Dash key. [*]Use a name that describes the use of variables (IMPORTANT). [*]No Spaces (Separate two words using an underscore). [*]Use no C++ reserved words as variable names. (Way around this is Capitalize the variables first letter) [/LIST] [B][CENTER]Legal Variables:[/CENTER][/B] Example: [CODE]int Average; float Mess;[/CODE] [B][CENTER]Illegal Variables:[/CENTER][/B] Example: [CODE]char Last Name; (Has a space) int int; (Uses a C++ Reserved word)[/CODE] [CENTER][B]Proper Code Format:[/B][/CENTER] [CODE]#include <anyprototype.h> main() { variable declarations; code(Will use declared variables in); return 0; }[/CODE] [B][CENTER]Command code:[/CENTER][/B] [CODE]cin is an input command (cin retrieves data entries typed by the user). cin>>Num1;[/CODE] [B]Sample Code:[/B] (Code for getting the user to input 2 num then find the average). [CODE]#include<anyprototype.h> main() { float Num1, Num2, Avg; cout<<"Please enter first number"; cin>>Num1; cout<<"Please enter the second number"; cin>>Num2; Avg=(Num1+Num2)/2.; //(Make sure the decimal is there!!) cout<<"The average of"<<Num1<<" and "<<Num2; cout<<" is "<<Avg; getch(); return 0; }[/CODE]