All pastes #334941 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-02-01 00:18 UTC
rendered paste body
/* testing program for C++ #1 */

#include <iostream>

using namespace std;

int main()

{
	float var0 = 0;
	float var1 = 0;
	int var2 = 0;
	int empty = 0;
	string name; // this is the user's name;
	
	cout<<"How are you today? Please enter your name"<<endl;
	 cin>>name;
	cout<<"Welcome "<<name<<", Now we can begin, please choose an option."<<endl;
	
		cout<<"Option #1: How to compile a kernel"<<endl;
		cout<<"Option #2: How to install Ndiswrapper"<<endl;
		cout<<"Option #3: How to create ~/bin/ and ~/source/ and why"<<endl;
	
}
	
{
	
	int option = 0;
	
	cin >> option;
	
	 if option = "1";
	 	cout << " How to compile a kernel" << endl;
	 	
	 else if option = "2";
	 	cout << " How to install Ndiswrapper" << endl;
	 	
	 else option = "3";
	 	cout << " How to create ~/bin/ and ~/source/ and why" << endl;
	 	
	 	
	 return 0;
	 
}


test3.cpp:26: error: expected unqualified-id before ‘{’ token