Search Results

Showing results 1 to 21 of 21
Search took 0.01 seconds.
Search: Posts Made By: compshooter
Forum: C++ Nov 10th, 2006
Replies: 2
Views: 774
Posted By compshooter
It worked! Thanks so much:!:
Forum: C++ Nov 10th, 2006
Replies: 2
Views: 774
Posted By compshooter
I am just trying to print out my array of binary values from 0 to 15. The output I get is wrong, very very wrong.

Can someone take a look at my code and enlighten me?


#include <iostream>...
Forum: C Sep 25th, 2006
Replies: 2
Views: 1,003
Posted By compshooter
Thank you so much! It worked!:mrgreen:
Forum: C Sep 25th, 2006
Replies: 2
Views: 1,003
Posted By compshooter
I get the following error on the first line of my array...

" syntax error before `}' token "

My eyes are about to fall out of my skull. Can someone take a look for me, everything seems to be...
Forum: C++ Sep 25th, 2006
Replies: 6
Views: 1,819
Posted By compshooter
AWESOME!

cin.ignore(); after the first cin.get() worked! I was going crazy. Thanks a lot!
Forum: C++ Sep 25th, 2006
Replies: 6
Views: 1,819
Posted By compshooter
Here is my full code if anyone feels inclined to try it. The code is supposed to accept input via a file, encrypt it and then output the results on the screen and in a file.

The input file...
Forum: C++ Sep 25th, 2006
Replies: 6
Views: 1,819
Posted By compshooter
Thanks, but it didn't work. Any other ideas?:sad:
Forum: C++ Sep 25th, 2006
Replies: 6
Views: 1,819
Posted By compshooter
I am trying to grab an input file and outfile file from the user. I can grab the input file no problem, but Dev C++ just steps right over the following line...


cin.get(ofname, 150); ...
Forum: C Sep 21st, 2005
Replies: 2
Views: 1,099
Posted By compshooter
OK, I've been banging my head against a wall for a few hours. And I need some sleep. Can someone please show my how to accept input and keep count of it so I can send WriteBytes2() the address of...
Forum: C Apr 20th, 2005
Replies: 2
Views: 5,663
Posted By compshooter
That would probably be the easiest way. Thanks for the quick reply!
Forum: C Apr 19th, 2005
Replies: 2
Views: 5,663
Posted By compshooter
I have three doubly linked list queues and I need to sort them based on a variable that each object has namely its job length. I am attempting to code for a shortest job first processing program. I...
Forum: C++ Mar 1st, 2005
Replies: 4
Views: 1,993
Posted By compshooter
I have a couple of questions about the main function. Do you need to put the ; after the last }? Do you need to put a return statement before the last }? If so, what number do you put in the (),...
Forum: C++ Feb 26th, 2005
Replies: 8
Views: 6,866
Posted By compshooter
Hey, I am pretty new to this site and have learned a lot of C++ with the help of these kind folks. I looked at your problem and attempted to solve it myself. Here is what I got. It seems to work...
Forum: C++ Feb 8th, 2005
Replies: 3
Views: 2,326
Posted By compshooter
Never mind, I figured it out!!! :cheesy:

Here is the code I had to change...


void Queue::addRearNode(NodeType newJob)
{
if (isFull())
throw FullQueue();
else
Forum: C++ Feb 8th, 2005
Replies: 3
Views: 2,326
Posted By compshooter
ok, I changed the output lines to this...

cout<<"MM ITEMS: "<<mm.items<<endl;
cout<<"FP ITEMS: "<<fp.items<<endl;
cout<<"TXT ITEMS: "<<txt.items<<endl;
cout<<"CTIME: ...
Forum: C++ Feb 7th, 2005
Replies: 3
Views: 2,326
Posted By compshooter
Ok, I have three queueus, MM, FP & TXT. Each of them contain objects which have variables associated with them. How do I access any of the variables that the front of my Queue points to?

For...
Forum: C++ Feb 4th, 2005
Replies: 9
Views: 3,574
Posted By compshooter
Yes, each line of the input file is a job which we have to process and then place into one of three doubly linked lists (as a queue) according to the job's type (either mm, fp or txt),

We are...
Forum: C++ Feb 4th, 2005
Replies: 9
Views: 3,574
Posted By compshooter
Thank you for all your help so far. I took what you gave me and modified it so I can place each line into a new object.

I feel as though my code can be improved upon since I am declaring a known...
Forum: C++ Feb 4th, 2005
Replies: 9
Views: 3,574
Posted By compshooter
Ok, I think I'm screwing things up big time trying to use templates, apparently incorrectly. Now I can create my job objects that I need but I am still having problems reading from the file. Help?...
Forum: C++ Feb 4th, 2005
Replies: 9
Views: 3,574
Posted By compshooter
OK, but please don't laugh. I am not good at coding so I'm sure you'll find plenty of mistakes. BTW, I am also having a problem creating objects of my job class using templates (that's why it's...
Forum: C++ Feb 4th, 2005
Replies: 9
Views: 3,574
Posted By compshooter
Hello evreryone,

I want to start by saying I did use the search function and I did read the fstream tutorial. But I didn't see the answer I need.

I have been given a text file for which I need...
Showing results 1 to 21 of 21

 


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

©2003 - 2009 DaniWeb® LLC