Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2004, 04:25 PM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Default

Quote:
Originally Posted by kugrug
valex you forgot std:: in front of the cout

but you could have added
using std::cout; after you did main()
ummm yeah....first leason, If you can keep it simple DO IT there is no need fot std:: infront of cout Example:

#include <iostream.h>

int x;
int y;
int z;
(it is a good idea to declare all your variables before you work on functions because i have recieved alot of errors when declaring variables in ohter functions)

int main()
{
cout<<"Hello please enter 2 numbers to be multiplyed."<<endl;
cout<<"Enter the first number now."<<endl;
cin>>x;
cout<<"Now enter your seconed number."<<endl;
cin>>y;
z=x*y;
cout<<"Here is the answer."<<z<<endl;
system("pause");
return 0;
}

Hmm its been a while since i have done any type of programming as my computers been breaking down but i believe that is correct.
__________________
How about the power to kill a yak from 200 yards away...WITH MIND BULLETS! thats telekinesis kyle.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

   

All times are GMT -4. The time now is 08:05 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3