I’m very new to programming and recently, using the little syntax I know started to write a program. To make a long story short I hit a few bumps and would greatly appreciate some help.
Here is an example of the piece of code im having trouble with.
%22%22& sum= 1&qo=3500&eh= ";
Ok, so I want to know if and how I can put a variable inside the string url so it would have the affect of:
String url=” http://something.com/results.aspx?cat=
%22%22& sum= 1&qo=”<<number<<”&eh=”;
The purpose to me is that this code is in a while loop and the variable number will be incremented every time it goes through and this leads me to my second problem.
using namespace std;
void getdata(ifstream & messy_file, ofstream & filterd_file);
cout << "\n\n\nEnd of Filter.\n";
So I need it to loop and so far when I run it the first time it executes perfect and the second loop the input file opening fails.
I need the effect of the code to open the input file then write to the output file the info I wanted it to then their will be a new input file with the same name after the code executes once(this is where my problem is since it isnt able to open it more then once) and I need it to loop so it does this again and again etc…
I hope I was clear in my question. Any help you pros can give me would be fantastic. Like i said im a begginer so I might not understand if you dont break it down for me. Thanks