yo....make sure you use
#include <fstream>
then you can declare things like
ofstream out;
ifstream in;
and use a file for your in and out by opening it
Type: Posts; User: LavaLamp27
yo....make sure you use
#include <fstream>
then you can declare things like
ofstream out;
ifstream in;
and use a file for your in and out by opening it
At the bottom of the following function where it says STARTING HERE I am trying to code an algorithm that will place a computer move, denoted as -1, into a board. My program has a pointer called...
Oh and BTW for many of those who have given me examples of how to do this in the past week (thanks), I need something far less complex as I am just a beginning programmer.
Thanks again - Rob
Specific Example:
im inputting the following into a character array:
42.5 + 7 - 3 =
i want to separare the float and char from the char array into two separate stacks and also stop at the =...
I have the following:
char super[30];
for(nt = 0; nt < 30; nt++)
cin >> super[nt];
I am inputting a line such as 24 + 5 - 2 =
and I want the array to stop letting characters in once someone...
I am still having problems so I have decided to use another route that I cannot figure out :-( how do I convert string to int?
I am writing a stack program to evaluate infix expressions and I have everything done and ready to go except one hurdle I cannot seem to pass. Let's say I have a string test; now I read in 4 + 3 5...