|
 |
|
Dev Articles Community Forums
> Programming
> C/C++ Help
|
Problem input output program
Discuss Problem input output program in the C/C++ Help forum on Dev Articles. Problem input output program C/C++ Help forum discussing building and maintaining applications in C/C++. Find out why these languages are the foundation on which other languages are built.
|
|
 |
|
|
|

Dev Articles Community Forums Sponsor:
|
|

December 11th, 2008, 08:26 PM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
Problem input output program
I have gotten this program to work with cout but when I exchange it for battlereader<< it comes up with 102 errors. here is the code:
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
using namespace std;
void inputdata();
void outputdata();
string name, type, attack, defence, healing;
string charcode;
int main()
{
inputdata();
outputdata();
system("pause");
}
void inputdata()
{
ifstream battlereader;
battlereader.open("C:/Documents and Settings/keith1/Desktop/cppgamefinalexaminput.txt");
if (!battlereader.fail())
{
battlereader<<"file could not be opened"<<endl;
system("pause");
}
battlereader<<" player data ">>endl;
battlereader<<" playername playertype attackstrength defensestrength healingpower "<<endl;
battlereader<<"---------------------------------------------------------------------------------------------------------"<<endl;
while (!battlereader.eof())
{
battlereader>>name>>type>>attack>>defence>>healing;
charcode = name.substr(0,1) + type.substr(0,1) + healing;
battlereader<<setw(5)<<charcode<<setw(20)<<name<<setw(15)<<type<<setw(10)<<attack<<setw(10)<<defence<<setw(10)<<healing<<endl;
}
battlereader.close();
};
void outputdata()
{
ofstream battlestream;
battlestream.open("C:/Documents and Settings/keith1/Desktop/cppgamefinalexamoutput.txt");
if (battlestream.fail())
{
battlestream<<"file could not open"<<endl;
}
battlestream.close();
};
|

December 12th, 2008, 12:23 AM
|
Contributing User
|
|
Join Date: Oct 2008
Posts: 54
Time spent in forums: 11 h 56 m 22 sec
Reputation Power: 10
|
|
Quote:
battlereader<<" player data ">>endl;
battlereader<<" playername playertype attackstrength defensestrength healingpower "<<endl;
battlereader<<"---------------------------------------------------------------------------------------------------------"<<endl;
|
It seems to me you are trying to read in not output so make sure that you are using the correct signs
Code:
battlereader<<" player data ">>endl;
and using endl on an input file stream...?
battlereader is an input file stream as you declared it earlier in your code.
if your trying to output to a file you need to use ofstream not ifstream<-- only for in from a file
ofstream <-- for output from a file
little bit of code:
Code:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
string name;
char filename[50];
ifstream fin;//declare an input file stream variable with the name fin
ofstream fout;//declare an output file stream variable with the name fout
fin.open("file.txt");//open a text file named file.txt
fin >> name;//take in the name in the file
cout << "What name do you want to output this file to?" << endl;//prompt user for a name for the output file name
cin.getline(filename,50);//take in that file name
fout.open(filename);//open the file with that name
fout << name;//output the name to the file
}
this code is just to show you how fstream works also you will want to go and look at fstream so you can get a better understanding of it, and this is just a little bit of advice you could use easier words for input and output stream variables since you will have to write it over and over again.
As you see in the little bit of code i wrote i use fin, it stands for filestream in and fout for filestream out. Hope that helps
Last edited by reaper7861 : December 12th, 2008 at 12:49 AM.
|

December 12th, 2008, 07:30 AM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
I turned back all the battlereaders to couts but I cant get the following lines to show up in the output:
cout<<" player data "<<endl;
cout<<" playername playertype attackstrength defensestrength healingpower "<<endl;
cout<<"---------------------------------------------------------------------------------------------------------"<<endl;
|

December 12th, 2008, 08:57 AM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
never mind on the last post. It didn't work like I thought. I changed the program to this:
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
using namespace std;
void inputdata();
string name, type, attack, defence, healing;
string charcode;
int main()
{
inputdata();
system("pause");
}
void inputdata()
{
ofstream battlestream;
ifstream battlereader;
battlestream.open("C:/Documents and Settings/keith1/Desktop/cppgamefinalexamoutput.txt");
if (battlestream.fail())
{
cout<< "file could not opened"<<endl;
system("pause");
}
battlereader.open("C:/Documents and Settings/keith1/Desktop/cppgamefinalexaminput.txt");
if (!battlereader.fail())
{
cout<<"file could not be opened"<<endl;
system("pause");
}
cout<<" player data "<<endl;
cout<<" playername playertype attackstrength defensestrength healingpower "<<endl;
cout<<"---------------------------------------------------------------------------------------------------------"<<endl;
while (!battlestream.eof())
{
battlereader>>name>>type>>attack>>defence>>healing;
charcode = name.substr(0,1) + type.substr(0,1) + healing;
cout<<setw(5)<<charcode<<setw(20)<<name<<setw(15)<<type<<setw(10)<<attack<<setw(10)<<defence<<setw(10)<<healing<<endl;
}
battlereader.close();
battlestream.close();
};
but sometimes it creates a new output file everytime i run it or it will not output file(it says "file can not open.")
|

December 12th, 2008, 02:53 PM
|
Contributing User
|
|
Join Date: Oct 2008
Posts: 54
Time spent in forums: 11 h 56 m 22 sec
Reputation Power: 10
|
|
is this trying to output the information from the input file to the output file? Please tell me what are you trying to accomplish?
|

December 12th, 2008, 05:10 PM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
Quote:
Originally Posted by reaper7861
is this trying to output the information from the input file to the output file? Please tell me what are you trying to accomplish?
|
I am trying to read the input file and then write that into the output file.
|

December 12th, 2008, 06:09 PM
|
Contributing User
|
|
Join Date: Oct 2008
Posts: 54
Time spent in forums: 11 h 56 m 22 sec
Reputation Power: 10
|
|
You have a problem with your while loop as well,it loops forever so you need to fix that. but here is the code for you to write it to the output file.
Code:
while (!battlestream.eof())
{
battlereader>>name>>type>>attack>>defence>>healing;
charcode = name.substr(0,1) + type.substr(0,1) + healing;
battlestream<<setw(5)<<charcode<<setw(20)<<name<<setw(15)<<type<<setw(10)<<attack<<setw(10)<<defence<<setw(10)<<healing<<endl;
}
|

December 12th, 2008, 06:19 PM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
it still doesn't write to the output but I have been trying to use getline with the file location and I still don't have it right. Here is what i have so far:
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include <cctype>
#include <cmath>
using namespace std;
void inputdata();
//void fightingstrength();
//void endurance();
string fighting;
string name, type, attack, defence, healing;
string charcode;
int main()
{
inputdata();
/*fightingstrength();
endurance();*/
system("pause");
}
void inputdata()
{
ofstream battlestream;
ifstream battlereader;
battlestream.open("c:/documents and settings/keith1/desktop/cppgamefinalexamoutput.txt");
if (battlestream.fail())
{
/*getline("c:/documents and settings/keith1/desktop/cppgamefinalexaminput.txt",27);*/
battlestream<< "file could not opened"<<endl;
system("pause");
}
battlereader.open("c:/documents and settings/keith1/desktop/cppgamefinalexaminput.txt");
if (!battlereader.fail())
{
battlestream<<"input file could not be opened"<<endl;
system("pause");
};
battlestream<<" player data "<<endl;
battlestream<<" playername playertype attackstrength defensestrength healingpower "<<endl;
battlestream<<"---------------------------------------------------------------------------------------------------------"<<endl;
while (!battlestream.eof())
{
battlereader>>name>>type>>attack>>defence>>healing;
charcode = name.substr(0,1) + type.substr(0,1) + healing;
battlestream<<setw(5)<<charcode<<setw(20)<<name<<setw(15)<<type<<setw(10)<<attack<<setw(10)<<defence<<setw(10)<<healing<<endl;
}
battlereader.close();
battlestream.close();
};
//void fightingstrength()
//{
//double fighting=attack*healing;
//}
//
anything commented out besides the getline line is what i am working on so far.
|

December 13th, 2008, 01:59 AM
|
 |
Command Line Warrior
|
|
Join Date: Sep 2005
Posts: 1,021

Time spent in forums: 2 Weeks 8 h 12 m 36 sec
Reputation Power: 14
|
|
Your boolean expressions are mixed up...
first:
cpp Code:
Original
- cpp Code |
|
|
battlestream.open("c:/documents and settings/keith1/desktop/cppgamefinalexamoutput.txt"); if (battlestream.fail()) { /*getline("c:/documents and settings/keith1/desktop/cppgamefinalexaminput.txt",27);*/ battlestream<< "file could not opened"<<endl; system("pause"); }
I read this:
-Open battlestream
-if you could not open battlestream then write to battlestream "file could not be opened". So you are writing to a file which had trouble opening..
Second:
cpp Code:
Original
- cpp Code |
|
|
battlereader.open("c:/documents and settings/keith1/desktop/cppgamefinalexaminput.txt"); if (!battlereader.fail()) { battlestream<<"input file could not be opened"<<endl; system("pause"); };
I read this:
- Open battlereader
- if it did not fail, i.e., --> if it worked write "input file could not be opened". Again, the boolean expression is flipped.
__________________
There is no such thing as C/C++, you either program C or C++
|

December 13th, 2008, 07:18 AM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
I can get part of the output file(the three lines that says "player data, playername.type,etc and ------------------") but when i try to write the contents of the input file into the output file. But now I was trying to use the getline function but I get I think two error messages. any ideas?
|

December 13th, 2008, 03:27 PM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
this is my code now that i am trying to use getline to get the input file into the output file and i can't get it to work:
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include <cctype>
#include <cmath>
using namespace std;
void inputdata();
//void fightingstrength();
//void endurance();
string fighting;
string name, type, attack, defence, healing;
string charcode;
int main()
{
inputdata();
/*fightingstrength();
endurance();*/
system("pause");
}
void inputdata()
{
ofstream battlestream;
ifstream battlereader;
battlestream.open("c:/documents and settings/keith1/desktop/cppgamefinalexamoutput.txt");
if (battlestream.fail())
{
battlestream<< "file could not opened"<<endl;
system("pause");
}
battlereader.open("c:/documents and settings/keith1/desktop/cppgamefinalexaminput.txt");
if (!battlereader.fail())
{
string str;
battlestream<<"input file could not be opened"<<endl;
getline(battlereader, str);
system("pause");
};
battlestream<<" player data "<<endl;
battlestream<<" playername playertype attackstrength defensestrength healingpower "<<endl;
battlestream<<"---------------------------------------------------------------------------------------------------------"<<endl;
while (!battlestream.eof())
{
battlereader>>name>>type>>attack>>defence>>healing;
charcode = name.substr(0,1) + type.substr(0,1) + healing;
battlestream<<setw(5)<<charcode<<setw(20)<<name<<setw(15)<<type<<setw(10)<<attack<<setw(10)<<defence<<setw(10)<<healing<<endl;
}
battlereader.close();
battlestream.close();
};
//void fightingstrength()
//{
//double fighting=attack*healing;
//}
//
|

December 14th, 2008, 12:04 PM
|
 |
Command Line Warrior
|
|
Join Date: Sep 2005
Posts: 1,021

Time spent in forums: 2 Weeks 8 h 12 m 36 sec
Reputation Power: 14
|
|
Did you read my previous post at all? You are confusing the streams..
I am assuming you should at least change this:
while (!battlestream.eof())
into this:
while (!battlereader.eof())
otherwise it will loop forever!
|

December 14th, 2008, 02:12 PM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
i tried that part but it still won't write the input file to the output file.
|

December 14th, 2008, 03:22 PM
|
Contributing User
|
|
Join Date: Oct 2008
Posts: 54
Time spent in forums: 11 h 56 m 22 sec
Reputation Power: 10
|
|
You should really read he post that icon left he has some really good input to help you with your problem.
|

December 14th, 2008, 03:34 PM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
so just flip the open and fail boolan on both of them
|

December 14th, 2008, 04:36 PM
|
 |
Command Line Warrior
|
|
Join Date: Sep 2005
Posts: 1,021

Time spent in forums: 2 Weeks 8 h 12 m 36 sec
Reputation Power: 14
|
|
Copying a file, without any decent error messages:
cpp Code:
Original
- cpp Code |
|
|
#include <iostream> #include <string> #include <fstream> #include <iterator> #include <algorithm> using namespace std; int main() { ofstream out("d:\\temp\\out.txt"); ifstream in("d:\\temp\\in.txt"); if( in && out ) { copy( istreambuf_iterator<char>( in ), istreambuf_iterator<char>(), ostreambuf_iterator<char>( out ) ); } };
Have to get some sleep now.. Tomorrow I will look at your code and see if I can fix it, if you still need it then.
|

December 15th, 2008, 05:33 AM
|
 |
Command Line Warrior
|
|
Join Date: Sep 2005
Posts: 1,021

Time spent in forums: 2 Weeks 8 h 12 m 36 sec
Reputation Power: 14
|
|
I modified your code to make it work without changing many other things (I would never use globals like that..). I am only posting the inputdata() function:
cpp Code:
Original
- cpp Code |
|
|
void inputdata() { ofstream battlestream("d:\\temp\\out.txt"); if( !battlestream ) { cout << "Output file could not opened" << endl; exit(-1); } ifstream battlereader("d:\\temp\\in.txt"); if( !battlereader ) { cout << "Input file could not be opened" << endl; battlestream << "Input file could not be opened" << endl; exit(-2); }; // so if we are here it means both input and output are successfully opened battlestream << " player data " << endl; battlestream << " playername playertype attackstrength defensestrength healingpower " << endl; battlestream << "---------------------------------------------------------------------------------------------------------" << endl; // LOOP OVER THE INPUT FILE while( !battlereader.eof() ) { battlereader >> name >> type >> attack >> defence >> healing; if( !battlereader ) { cout << "Error reading input file\n"; exit(-1); } charcode = name.substr(0,1) + type.substr(0,1) + healing; battlestream << setw(5) << charcode << setw(20) << name << setw(15) << type << setw(10) << attack << setw(10) << defence << setw(10) << healing << endl; } // the streams close when they go out of scope };
You should of course change the names of the filepaths back to your own. Now it really comes down to what is in your input file. If you are still having problems with THIS code then post your input file so I can check that.
Last edited by Icon : December 15th, 2008 at 05:38 AM.
|

December 16th, 2008, 01:41 PM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
I just tried the two types of code from above and they both don't let me copy the input file into the output file. Here is my code and input file contents:
code:
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include <cctype>
#include <cmath>
#include <algorithm>
using namespace std;
void inputdata();
//void fightingstrength();
//void endurance();
double fighting;
string name, type, attack, defence, healing;
string charcode;
int main()
{
inputdata();
/*fightingstrength();
endurance();*/
system("pause");
}
void inputdata()
{
ifstream battlereader;
ofstream battlestream;
battlestream.open("C:/Documents and Settings/keith1/Desktop/cppgamefinalexamoutput.txt");
if (!battlestream)
{
cout<<"output file could not be opened"<<endl;
battlestream<<"output file could not be opened"<<endl;
system("pause");
}
battlereader.open("C:/Documents and Settings/keith1/Desktop/cppgamefinalexaminput.txt");
if (!battlereader)
{
cout<<"input file could not be opened"<<endl;
battlestream<<"input file could not be opened"<<endl;
system("pause");
}
battlestream<<" player data "<<endl;
battlestream<<" playername playertype attackstrength defensestrength healingpower fightstrength endurance "<<endl;
battlestream<<"----------------------------------------------------------------------------------------------------------------------------------------"<<endl;
while (!battlereader.eof())
{
battlereader>>name>>type>>attack>>defence>>healing;
charcode = name.substr(0,1) + type.substr(0,1) + healing;
battlestream<<setw(5)<<charcode<<setw(20)<<name<<setw(15)<<type<<setw(10)<<attack<<setw(10)<<defence<<setw(10)<<healing<<endl;
if(!battlereader)
{
battlestream<<"error reading input file/n";
exit(-2);
}
system("pause");
}
battlestream.close();
battlereader.close();
}
//
//void fightingstrength()
//{
//fighting=attack*healing;
//}
//
//void endurance()
//{
// endurance=defence*healing-attack;
//}
input file contents:
Elden, Fighter, 200, 50, 10
Supperdude, Wizard, 100, 20, 50
Hans, Scout, 100, 50, 10
George, Dwarf, 300, 100, 20
Greg, Elf, 200, 50, 5
Sarah, Fairy, 50, 10, 50
John, Swordsman, 200, 30, 10
Sam, Medic, 50, 30, 50
Gram, Wizard, 200, 20, 40
input
|

December 16th, 2008, 02:16 PM
|
 |
Command Line Warrior
|
|
Join Date: Sep 2005
Posts: 1,021

Time spent in forums: 2 Weeks 8 h 12 m 36 sec
Reputation Power: 14
|
|
It works for me. I removed all the empty lines from the input file (including the last newline character).
|

December 16th, 2008, 02:26 PM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
using the code with d:\\temp\\in.txt" and you got it to output to a file?
|

December 16th, 2008, 02:31 PM
|
 |
Command Line Warrior
|
|
Join Date: Sep 2005
Posts: 1,021

Time spent in forums: 2 Weeks 8 h 12 m 36 sec
Reputation Power: 14
|
|
Of course I change the paths because I dont have 'C:/Documents and Settings/keith1' ...
I advise you to test it with a short path like c:/temp without spaces and stuff in them. But of course it should work with your docs&settings path as well for you.
|

December 16th, 2008, 02:46 PM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
I still have a problem with these to segments:
ifstream battlereader("c://temp/cppgamefinalexaminputput.txt");
if (!battlereader)
{
cout<<"input file could not be opened"<<endl;
battlestream<<"input file could not be opened"<<endl;
exit(-2);
system("pause");
}
and
while (!battlereader.eof())
{
battlereader>>name>>type>>attack>>defence>>healing;
charcode = name.substr(0,1) + type.substr(0,1) + healing;
battlestream<<setw(5)<<charcode<<setw(20)<<name<<setw(15)<<type<<setw(10)<<attack<<setw(10)<<defence<<setw(10)<<healing<<endl;
if(!battlereader)
{
battlestream<<"error reading input file/n";
exit(-2);
}
system("pause");
}
}
the first one says the error message if it can't open something and the second one says its errror message but I can't pinpoint the fault of it.
|

December 19th, 2008, 04:38 PM
|
Contributing User
|
|
Join Date: Oct 2008
Posts: 54
Time spent in forums: 11 h 56 m 22 sec
Reputation Power: 10
|
|
this is what i want you to do goto this folder
My Documents\Visual Studio 2005\Projects\Battle Simulator\Battle Simulator\ where Battle Simulator is the name of your project and inside the folders there place a file as such:
your input file name will be..
cppgamefinalexaminput.txt
output will be created when needed
then your code will be
Code:
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include <cctype>
#include <cmath>
#include <algorithm>
using namespace std;
void inputdata();
//void fightingstrength();
//void endurance();
double fighting;
string name, type, attack, defence, healing;
string charcode;
int main()
{
inputdata();
/*fightingstrength();
endurance();*/
system("pause");
}
void inputdata()
{
ifstream battlereader;
ofstream battlestream;
battlestream.open("cppgamefinalexamoutput.txt");
if (!battlestream)
{
cout<<"output file could not be opened"<<endl;
battlestream<<"output file could not be opened"<<endl;
system("pause");
}
battlereader.open("cppgamefinalexaminput.txt");
if (!battlereader)
{
cout<<"input file could not be opened"<<endl;
battlestream<<"input file could not be opened"<<endl;
system("pause");
}
battlestream<<" player data "<<endl;
battlestream<<" playername playertype attackstrength defensestrength healingpower fightstrength endurance "<<endl;
battlestream<<"----------------------------------------------------------------------------------------------------------------------------------------"<<endl;
while (!battlereader.eof())
{
battlereader>>name>>type>>attack>>defence>>healing;
charcode = name.substr(0,1) + type.substr(0,1) + healing;
battlestream<<setw(5)<<charcode<<setw(20)<<name<<setw(15)<<type<<setw(10)<<attack<<setw(10)<<defence<<setw(10)<<healing<<endl;
if(!battlereader)
{
battlestream<<"error reading input file/n";
exit(-2);
}
system("pause");
}
battlestream.close();
battlereader.close();
}
//
//void fightingstrength()
//{
//fighting=attack*healing;
//}
//
//void endurance()
//{
// endurance=defence*healing-attack;
//}
then run it and it will run perfect if you are having problems after that it is your pathing...in other words your path to your files is wrong...please use what i am showing you here and your code will work perfectly
this is the outputfile i am getting:
Code:
player data
playername playertype attackstrength defensestrength healingpower fightstrength endurance
----------------------------------------------------------------------------------------------------------------------------------------
EF10 Elden, Fighter, 200, 50, 10
SW50 Supperdude, Wizard, 100, 20, 50
HS10 Hans, Scout, 100, 50, 10
GD20 George, Dwarf, 300, 100, 20
GE5 Greg, Elf, 200, 50, 5
SF50 Sarah, Fairy, 50, 10, 50
JS10 John, Swordsman, 200, 30, 10
SM50 Sam, Medic, 50, 30, 50
GW40 Gram, Wizard, 200, 20, 40
GW40 Gram, Wizard, 200, 20, 40
Last edited by reaper7861 : December 19th, 2008 at 04:41 PM.
|

December 21st, 2008, 08:19 AM
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26
Time spent in forums: 5 h 57 m 27 sec
Reputation Power: 0
|
|
I actually did it a different way like this:
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include <cctype>
#include <cmath>
#include <algorithm>
using namespace std;
void inputdata();
//void fightingstrength();
//void endurance();
double fighting;
string name, type, attack, defence, healing;
string charcode;
int main()
{
inputdata();
/*fightingstrength();
endurance();*/
system("pause");
}
void inputdata()
{
ifstream battlereader;
ofstream battlestream;
battlestream<<" player data "<<endl;
battlestream<<" playername playertype attackstrength defensestrength healingpower fightstrength endurance "<<endl;
battlestream<<"----------------------------------------------------------------------------------------------------------------------------------------"<<endl;
battlestream.open("c:/documents and settings/keith1/desktop/cppgamefinalexamoutput.txt");
battlereader.open("cppgamefinalexaminput.txt");
if (!battlereader)
battlereader>>name>>type>>attack>>defence>>healing;
system("pause");
}
or something like that because i dont have the code in front of me but it did work and thank you for your help.
|
Developer Shed Advertisers and Affiliates
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|