My Very Beginner Software Will Not Load in command promt

So I Get this error:
o- no such file or directory
vars.exe no such file or directory

what i wrote in command prompt is c++ vars.cpp o- vars.exe
here is the code for vars.cpp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>
using namespace std ;

// ****SOFTWARECODE STARTS HERE*****//
int main()
{
//program code goes here
	char letter ;            //Declared then Initialized
	int number ;            //Declared then Initialized
	float decimal = 7.5 ;  //Declared and initialized
	double pi = 3.14159   //Declared and initialized
	bool isTrue = false  //Declared and initialized

	return 0 ;
	count << "char letter:" << letter << endl ;
	count << "int number:"  << number << endl ;
	count << "float decimal:" << decimal << endl ;
	count << "double pi:" << pi << endl ;
    count << "bool isTrue"	<< isTrue << endl ;
	// ****SOFTWARECODE STOPS HERE****//
}
Last edited on
closed account (E0p9LyTq)
Have you compiled your code into an executable before trying to run it?
vars.cpp o- vars.exe
looks like commands to your compiler.
Can You Explain That to Me? Im So sorry Im Beginner
closed account (E0p9LyTq)
Read the C++ Language Tutorial, http://www.cplusplus.com/doc/tutorial/.
I don't know about your compiler error but it seems like you entered your return statement before the code that you wanted to output. You also misspelled "cout" as count.
Should you have -o instead of o- ?
Topic archived. No new replies allowed.