Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » I Learn Some Basic C++!
I Learn Some Basic C++! [message #391886] Tue, 23 June 2009 01:01 Go to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma:
General (4 Stars)
Lol this is very very very simple stuff to you guys but after reading on in my c++ book (c++ without fear referred to me by reborn) I made a simple console command prompt that what ever number you type in gets multiply by 100! lol nothing special but im happy im learning something

#include "stdafx.h"
#include <iostream>
using namespace std;

int main() {
	double x;
	cout << "Enter Number Here To Be Multiplied By 100: ";
	cin >> x;
    cout << "The Output Is: " << 100 * x;
	return 0;
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Your daily commute to work!
Next Topic: Virus
Goto Forum:
  


Current Time: Thu Nov 28 21:18:21 MST 2024

Total time taken to generate the page: 0.01505 seconds