your program only makes " " and "\n" upper. at the beginning of your loop you should write it
with the not operator
if (! pre == ' ' || pre == '\n')
Type: Posts; User: Unlockitall
your program only makes " " and "\n" upper. at the beginning of your loop you should write it
with the not operator
if (! pre == ' ' || pre == '\n')
thank you. my program is fine now. I changed the problem part to
in_stream.open(file.c_str());
i seem to be having trouble using a variable as a file name for an ifstream.
i am making a program that is quite simple. all it does is ask for a filename, reads the file and displays it to the...
thanks for the help, and i thought id post another project i finished, this one solves quadratics
#include <cstdlib>
#include <iostream>
#include <math.h>
using namespace std;
int main(int...
ok thanks i get the point, ill research stuff first next time:)
and it happens to be..................*cough*....................*ahem*..............................*ack*.............
still, does anyone know if C++ has a way to do exponents and square roots?
does anyone know if C++ can do square roots? im thinking about making a quadratic function program
the echos create spaces between things, and my while loop works, at least i think it does
thanks for all the help, i now have a finished product to sell to seventh graders at my school
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])...
thanks peoples, it works great
im making a code that will solve a simple algebra problem in the form of y=mx+b, and im not sure how to assign the value of the math done to x
#include <cstdlib>
#include <iostream>
using...
im very new to c++ so i might be missing something but when i try to run a very simple hello world program...
#include <stdio.h>
int main()
{
printf("Hello World\n");
return 0;
}
...