On another subject could you help me scoop the bugs out of this code?
#include <iostream.h>
using namespace std;
int main()
int answer;
{
cout<<"You are sitting in your seat comfortably...
Type: Posts; User: stormbreaker
On another subject could you help me scoop the bugs out of this code?
#include <iostream.h>
using namespace std;
int main()
int answer;
{
cout<<"You are sitting in your seat comfortably...
It's pretty much all the code and I'm using bloodshed.
already checked those and since I don't know how to navigate my way trough dos and my pause command doesn't always work, I posted it here.
nope, doesn't work.
I've got a problem. Unless I add a line of text to pause( wich doesn't even always work) My program always immediately shuds down after it's done what it's got to do, leaving me no time to read it or...
could you also give me a list of the different streams like iostream and that stuff and what their functions are?
#include <iostream>
int main()
{
int age;
char string[256];
cout<<"Please enter your name and birthdate: ";
cin>>string>>age;
cout<<"Welcome"<<string<<","<<age<<endl;
system ("pause");...
thx it works now.
struct database
{
int id_number;
int age;
float salary;
};
int main()
{
database employee; //There is now an employee variable that has modifiable
//variables inside it.
struct database
{
int id_number;
int age;
float salary;
};
int main()
{
database employee; //There is now an employee variable that has modifiable
//variables inside it.
well, this is going to sound very nooby, the fact is that when an aplication is done and the finaltext is being viewed it immediately shuts down, giving me no time to read it. Thats why I made a loop...
oh and it says something about backward_warning.h
Could you change it to make it work or something?
#include <iostream.h>
int main()
{
for (char x)
(
char x;
cout<<" Please imput name.";
cin>>x
cout<<" Welcome,"<<char x;
)