just use "toupper" whenever the user enters the grade, and always test for capital letters.. it'll save you 50% of the "OR" statements...
Type: Posts; User: bcianfrocca
just use "toupper" whenever the user enters the grade, and always test for capital letters.. it'll save you 50% of the "OR" statements...
Alright guys, thanks to everyone out there who has helped me with this project. Much props to ya'll... here is my final attempt at this, hopefully you'll be able to tell what I'm trying to...
updated code: anyone out there??????
#include <iostream>
#include <cstdlib>
#include <fstream>
updated code: someone help please!!
#include <iostream>
#include <cstdlib>
#include <fstream>
new problem!!! here is the updated version of the code i've been working on. I explain in the comments in the code what needs to be done. If someone could help me out here i would GREATLY...
yeah, you're right... good catch...
there's actually 22 items in my array once read in from the file, so 0-21 will be the "values"
i'm just getting a list of zeros for the output... here is the updated code with changes made... the point is when "arrivalTime" in preList is equal to "x", copy all data from node with "arrivalTime...
need help troubleshooting... i want this to copy from the preList into the readyList whenever the requirements are met... when x%1000 = 0 and whenever preList[i][0] = x.... why won't this code...
Ok, i have it working so far... now the next step is to take the data from the node, and put it into a "ready list" according the first number in the text file: text file looks like...
30 4.56667...
it doesn't like the "vector" statement... here's the code I have so far... i'm a TERRIBLE c++ code writer, i design the projects, not code them.. so bare with me fella's....
the object is the get...
what #include must be added for "vector" to work?
i thought about that, but the simulator is going to grab data from that temporary storage unit as necessary. by putting all the data into a temporary storage area, i don't ahve to keep the file open...
I'm just looking for the simplest implementation to get the data from the file, into some type of temporary storage structure to later be rtransfered into some type of "Ready List" to simulate a...
Hi everyone, I have a question. How do I open a file, and then read the data from the file into a queue (or some other temporary file structure that i can later transfer into a queue if reading into...
atoi! thats what i thought to use, but the way i had it set up wasnt working right... thanks anyways!
How do I convert a string containing say "12", into an integer 12 using C++??? I have to use the 'getline' function to grab data from a file, and 'getline' only lets you grab characters and...
ok... i have this now... and it's still not liking it....
for (int t=0; t<3500; t++)
{
array[t] = infoPac10;
}
}
it's not liking the instance of "pac10 temp;" in "option 3".... this is getting really confusing... i took the last suggestions of changing the 'sort' in option3, but it still doesnt work and i'm not...
Yes, i agree, however; i feel if i am too stupid to have this work in one program, then i am too stupid have it work with multiple programs.. lol... anyways... here's what i have so far if you wanna...
how about i break my monitors and my hard disk?? lol... what do you mean a smaller program?
b.t.w.... i can use an 'if' statement, but if i do more than one if statement... it takes away the point of it... for instance...
if (pac10[0] == infoPac10.college)
//write to file or...
I must be a total retard, because I can't get this to work... still... i'm so frustrated i could take out the support walls for my house... lol. I give up...
i still can't figure this out... this is getting rediculous....
I can do that, but how do I do it without an "if" statement... and if i use multiple "if" statements, then it doesnt sort itself according to the college...??? I need to know how to sort the file i...