ToBi Community

Welcome To ToBi Productions forums
 
HomeHome  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­RegisterRegister  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 C++ Request

View previous topic View next topic Go down 
AuthorMessage
lolimzook



Male Number of posts: 1
Age: 29
Location: somewhere
Registration date: 2008-10-09

PostSubject: C++ Request   Thu Oct 09, 2008 11:33 am

Errm, I have a C++ request, could anyone post the script to a calculator in c++?
Back to top Go down
View user profile
Will
Admin


Male Number of posts: 27
Age: 21
Location: New York
Registration date: 2008-08-29

PostSubject: Re: C++ Request   Fri Oct 10, 2008 12:32 pm

i will make text tutorials. i guess my first one will be a calculator. thanks for your suggestion. a text tutorials section will appear soon so make sure to keep checking

_________________

--Forum and website owner
Back to top Go down
View user profile http://tobiforums.darkbb.com
Hatton7
Beginner


Male Number of posts: 20
Age: 18
Location: England
Registration date: 2008-09-06

PostSubject: Re: C++ Request   Sat Oct 11, 2008 7:27 am

#include

using namespace std;

int a;

int main(){

int b;
int c;

cout << "Enter a number: ";
cin >> a;

cout << "Enter a second number: ";
cin >> b;

c = a+b;

cout << "The sum is: " << c << "\n";

system("pause");


}



As far as i can remember i just opened a console application, not too sure thoguh
This works in bloodshed C++, but from what i can tell it can only jsut simply add so yeah, but its better then nothing Razz.
Back to top Go down
View user profile
 

C++ Request

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
ToBi Community :: Coding :: C++-
Post new topic   Reply to topic