Warning: Work in Progress...
This is a discussion on Lets Begin within the Programming (C#, C++, JAVA, VB, .NET etc. ) forums, part of Computer World category; lol... dont mind pls ---------------------- #include <iostream> #include <cstdlib> using namespace std; void hello(); int main() { hello(); system("PAUSE"); return 0; } void hello() { cout<<"Hello World"<<endl; } -------------------------------- i ...

Advertisement
Want to advertise? Learn how to remove ads

Notices

Tags : begin, lets
Thread Tools   Switch to Linear ModeSwitch to Hybrid ModeSwitch to Threaded Mode
JUBAiR's Avatar
JUBAiR
how?when?where?why?
Posts/Threads: 323/49
Thanks: 37
Thanked 259 Times in 118 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Rep Power/Points: 224/17897
JUBAiR has a reputation beyond reputeJUBAiR has a reputation beyond reputeJUBAiR has a reputation beyond reputeJUBAiR has a reputation beyond reputeJUBAiR has a reputation beyond reputeJUBAiR has a reputation beyond reputeJUBAiR has a reputation beyond reputeJUBAiR has a reputation beyond reputeJUBAiR has a reputation beyond reputeJUBAiR has a reputation beyond reputeJUBAiR has a reputation beyond repute
Talking Lets Begin, Posted September 7th, 2005, 06:07 PM #1 (permalink) |
lol... dont mind pls

----------------------
#include <iostream>
#include <cstdlib>

using namespace std;

void hello();

int main()
{
hello();
system("PAUSE");
return 0;
}

void hello()
{
cout<<"Hello World"<<endl;
}

--------------------------------

i have wrote this in this way as it is a function based, memory efficient, fast program.

making a small program doesnt mean it runs efficiently or faster.. try learning OO Concepts. makes life easier. if c is life then c++ is life with a cable connection. same thing with more spice
Once the Game is Over, The King and the Pawn goes into the Same Box.


| Reply With Quote
Force-X's Avatar
Force-X
New Member
Posts/Threads: 7/1
Thanks: 0
Thanked 1 Time in 1 Post
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Rep Power/Points: 0/60
Force-X is on a distinguished road
Default with some explanation, Posted September 12th, 2005, 01:51 AM #2 (permalink) |
in my opinion, we should start with c first it will be easier to understand c++.
dont laugh at this though ---->
/*this is how you begin rofl*/ // compiler doesnt read anything inside '/*...*/' sign.
// this double slash sign is also used to comment out something



#include <stdio.h> // this will call to include the header file named stdio.h
int main(void) { // this defines your main function
printf("Hello World! We are starting lol\n"); // the printf triggers the function to print whatever the msg we have
return 0; // every line ends with a ';'
} // you are calling the function to an end by putting the closing bracket

#include <stdio.h>
int main () { printf ("Hello World!\n"); return 0; } <--- this should look easier now lol

Jubair bro, nice coding
guys, im not pro in it so if you find any mistake please leave me a comment thanks.
NEWBIE
| Reply With Quote
Reply  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Display Modes
Linear Mode Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Advertisement
Want to advertise? Learn how to remove ads


Similar Threads
Thread Thread Starter Forum Replies Last Post
Be interested to begin Force-X Programming (C#, C++, JAVA, VB, .NET etc. ) 24 December 21st, 2005 01:07 AM
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright ©2005 - 2008, doshomik.net
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
All times are GMT +7. The time now is 06:35 AM.