Search Results

Showing results 1 to 19 of 19
Search took 0.01 seconds.
Search: Posts Made By: imput1234
Forum: C++ Dec 10th, 2008
Replies: 18
Views: 895
Posted By imput1234
I ran some tests, and it looks like the array is only storing 2 variables, of which the first one is correct the second is wrong.

this is the part where I actually store information, anyone know...
Forum: C++ Dec 10th, 2008
Replies: 18
Views: 895
Posted By imput1234
I'm seem to have a LOT of problems with this program.
The loop issue is fixed, now it will not read all the numbers that exist.

The Main:

string file1, temp[1000];
float n1[1000], n2[1000];...
Forum: C++ Dec 10th, 2008
Replies: 18
Views: 895
Posted By imput1234
alright I figured that out.

It seems as though that method will only work when followed by

fin >> somevariable;

is there anyway I can use getline (fin, string);

instead?
Forum: C++ Dec 9th, 2008
Replies: 18
Views: 895
Posted By imput1234
Hey guys,

I'm working on another program, and have run in to another problem.

Basically for this program, I read and extract information from a file. I do not know when the file is going to...
Forum: C++ Nov 25th, 2008
Replies: 18
Views: 895
Posted By imput1234
Still can't figure it out.
Forum: C++ Nov 25th, 2008
Replies: 18
Views: 895
Posted By imput1234
I've tried those. They don't work.
This is my problem.
Lets say the user enters hello.txt
but hello.txt does not exist.
How can I make the program say "Does not exist"
That is what I have been...
Forum: C++ Nov 25th, 2008
Replies: 18
Views: 895
Posted By imput1234
I've also tried


if ( !ifile.empty() )
{
cout << "No file found." << endl;
system ("PAUSE");
return 1;
}
Forum: C++ Nov 25th, 2008
Replies: 18
Views: 895
Posted By imput1234
edited original post.

ifile is a string.
Forum: C++ Nov 25th, 2008
Replies: 18
Views: 895
Posted By imput1234
Nevermind, weird it works now. I havent;' made any changes.

But I do have another problem.

I'm trying to make the program so that, if the user does not enter a valid file name, it will output...
Forum: C++ Nov 25th, 2008
Replies: 18
Views: 895
Posted By imput1234
Hey,

I'm trying to only read the int's and the symbol - (negative) from the file.

right now my code is where m,d, and y are dates.
Everything works fine. Except I do not read the - symbol.
...
Forum: C++ Nov 23rd, 2008
Replies: 4
Views: 272
Posted By imput1234
ok, so does anyone how I can fix this?
Forum: C++ Nov 22nd, 2008
Replies: 4
Views: 272
Posted By imput1234
that was just an example, the program actually displays 100's of numbers.
the only manipulator I can think of is setw

but I dont want to repeat it several times.
Forum: C++ Nov 22nd, 2008
Replies: 4
Views: 272
Posted By imput1234
How do I set a fixed number of places.

for example

I want 1 to be 01.

this is what I've been trying, but never works for some reason. Does anyone know how to do this. Thanks.

int i = 1;...
Forum: C++ Nov 5th, 2008
Replies: 5
Views: 389
Posted By imput1234
ncm, answered my own question.
Forum: C++ Nov 5th, 2008
Replies: 5
Views: 389
Posted By imput1234
Alright I understand it, thanks a lot guys.
Forum: C++ Nov 5th, 2008
Replies: 5
Views: 389
Posted By imput1234
Hey guys, I've got a beginner question about this

for some reason the getline function will not work, does anyone know why? I can't seem to figure it out

int main ()
{
string...
Forum: C++ Oct 23rd, 2008
Replies: 4
Views: 390
Posted By imput1234
Forum: C++ Oct 23rd, 2008
Replies: 4
Views: 390
Posted By imput1234
I am doing this for a computer science class, we are required to used Visual Studio 2005. Thats what the graders will use to compile the program.

Any other way?


Thanks.
Forum: C++ Oct 23rd, 2008
Replies: 4
Views: 390
Posted By imput1234
Hey, I'm new and am using Visual C++ 2005 Express Edition.

How do I increase the size of the console screen, I just need to make it wider for my program.

Yes, I have searched, but all the...
Showing results 1 to 19 of 19

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC