Forum: C++ Nov 5th, 2008 |
| Replies: 8 Views: 440 yea, I need to exchange x for the the number. such as 3, 4, 5 etc. Ill run a while loop to get my x,y coord. |
Forum: C++ Nov 5th, 2008 |
| Replies: 8 Views: 440 I'm currently writing a program that takes in a function such as ( 7x+19 ) and I need to evaluate the function that user inputs at range of numbers. I've got the loop figured out to loop through my... |
Forum: C++ Sep 19th, 2008 |
| Replies: 4 Views: 527 Well I have to do Insertion Sort or my program will run too slow; can you help me with learning how to do Insertion Sort? |
Forum: C++ Sep 19th, 2008 |
| Replies: 4 Views: 527 I've got an array BM[] with a length of 5. How would I declare my function in the heading and what am I doing wrong in my code, it keep giving me errors. Also I dont know how to apply it to my... |
Forum: C++ Sep 18th, 2008 |
| Replies: 4 Views: 512 starting from the top left, my array goes as so.
group# BM Shear Torsion
LBS[0] LBS[1] LBS[2] LBS3]
LBS[4] LBS[5] LBS[6] LBS[7]
LBS[8] LBS[9] LBS[10] LBS[11]... |
Forum: C++ Sep 18th, 2008 |
| Replies: 4 Views: 512 I've got a big array of numbers called LBS[x]. It is broken up into columns like so -->
1112 10 11 12
2222 13 14 15
3332 16 17 18 |
Forum: C++ Sep 18th, 2008 |
| Replies: 4 Views: 512 I've got 5 arrays each with one number in them, but in order to sort them using the insertion method, I need to combine them into a single array. How do I do this? This is the last part of my program... |
Forum: C++ Sep 17th, 2008 |
| Replies: 6 Views: 538 I just got it running, thats such a relief it seems like. Thanks so much. Its hard to follow what your doing though, just because my C++ class didn't cover some of this stuff. But my teacher, of... |
Forum: C++ Sep 17th, 2008 |
| Replies: 6 Views: 538 I get an error on the line that says pushback, im not too sure what push_back does though? I keep wanting to test it but i cant figure out these last two errors.
#include <iostream>
#include... |
Forum: C++ Sep 17th, 2008 |
| Replies: 6 Views: 538 How do you add the data to a structure?
First I open my File in the program, then?
int main ()
{
ofstream myFile;
myFile.open ("InputFile.txt"); |
Forum: C++ Sep 17th, 2008 |
| Replies: 1 Views: 358 I'm writing a program that opens a file then sorts it a couple different ways then closes it. Someone in my class said something about using a getline function but I can't figure out how that works.... |
Forum: C++ Sep 16th, 2008 |
| Replies: 6 Views: 538 I have to write this program that opens a file then sorts all these numbers in different ways. I plan on using the insertion method cause its one of the fastest, so that shouldn't be too difficult.... |