Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Some help needed (Moved. Pls lock or delete)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Computer Talk
View previous topic :: View next topic  
Author Message
aasddsaadsasdasdasdassads
Expert Cheater
Reputation: 0

Joined: 28 Aug 2008
Posts: 161
Location: Singapore

PostPosted: Thu Nov 27, 2008 1:52 am    Post subject: Some help needed (Moved. Pls lock or delete) Reply with quote

Code:
#include <iostream.h>
void calc ()
    {
     float num1;
     float num2;
     char op;
     float ans;
     cout << "Calculator!" << endl;
     cout << "Enter two numbers and perform an operation." << endl;
     cout << "Enjoy!!!!!!!!"
     cout << "Enter the first number and press ENTER:" << endl;
     cin >> num1;
     cout << "Enter the second number and press ENTER:" << endl
     cin >> num2;
     cout << "You entered " << num1 << "and" << num2 << endl;
     cout
         << "Press A followed by ENTER to subtract the two numbers."
         << endl
         << "Press S followed by ENTER to multiply the two numbers."
         << endl
         << "Press M followed by ENTER to multiply the two numbers."
         << endl
         << "Press D followed by ENTER to multiply the two numbers."
         << endl;
    cout << "---------------------------" << endl;
    cin >> op;
    if (op == 65)
    {
     ans = num1 + num2 ;
    }
    if (op == 83)
    {
     ans = num1 - num2;
    }
    (if op == 77)
    {
     ans = num1 * num2;
    }
    if (op == 68)
    {
      ans = num1 / num2;
    }
    cout << " The answer is " << and << endl;
    cout << "Thanks for using the Calculator." << endl;
    cout << "Application now exiting ..." << endl;
   }
   
     
     
     
         

I'm a 12 year old that trying to learn programming and i need some help. The error reads:
Code: 800A0400
Source: Microsoft VBscript compilation error.

err i saved this as a .vbs using Ultraedit and its supposed to be a calculator or smth( learning from a manual ). Please Help!


Last edited by aasddsaadsasdasdasdassads on Thu Nov 27, 2008 2:19 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
xV
I post too much
Reputation: 1

Joined: 03 Jan 2008
Posts: 3783
Location: Seattle

PostPosted: Thu Nov 27, 2008 2:12 am    Post subject: Reply with quote

I think this should go in the "General Programming" section.
_________________
Back to top
View user's profile Send private message MSN Messenger
aasddsaadsasdasdasdassads
Expert Cheater
Reputation: 0

Joined: 28 Aug 2008
Posts: 161
Location: Singapore

PostPosted: Thu Nov 27, 2008 2:17 am    Post subject: kk Reply with quote

kk.. no use telling me nw cos i cant delete it
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Computer Talk All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites