User Profile
Collapse
-
how to concat 2 strings without using strcat?
does anyone know how to concat 2 strings then print them out without using strcat or printf but with using pointers? -
confusing errors!
ok so i got my class to work now im having confusing errors with this:
...Code:void sort(Student stu[], int parameter, int count) { Student temp; bool finished = false; while (!finished) { finished = true; for (int i = 0; i< count-1; i++) { [79] if(Student[i].compareTo(Student[i+1], parameter) == true) [80] { -
*i meant just 2 different ways of reading in the file (arrays, array of structs) not sorting.(i just use bubble)... -
im asking for help. for some reason i cant access the file twice using 2 different methods of sorting. i've tried closing and reopening the file and resetting the pointer 0 but that doenst seem to work....Leave a comment:
-
cant read in arrays and structs at the same time??
what im trying to do is read in a data from a file into 4 different arrays then also read in the same data using array of structs. the assignment is to show that we know how to use both methods of reading in and sorting the data. i have 3 function for the arrays (for reading in the arrays, sorting the arrays, then printing) and same for the struct. but when i go to call the array funtions they work but the struct function wont. if i comment out all...
No activity results to display
Show More
Leave a comment: