no I'm not referring to the above code..
in any case I don't have time to fix all the errors I have in this program lol.. its due in 35 minutes..... but thanks for the help anyways
Type: Posts; User: Unknowntoyou000
no I'm not referring to the above code..
in any case I don't have time to fix all the errors I have in this program lol.. its due in 35 minutes..... but thanks for the help anyways
I'm a noob lol...
how do I pass the pointer through the function?
I already declared my struct outside any function..
Ok.. this is what I have so far and I'm wondering if everything is right so far?
and I don't know what to pass through the functions.. I'm thinking a pointer pointing at where my array of structures...
bleh.. ok I know a little about sorting now....
I know how to sort by numbers of a normal int array..
but I need to sort by the char's of the last name that is included in a structure.. the...
oh yea -_-''
ok I'll do that (:
oh yea I'll fix that real fast -_-''
almost nothing lol..
I'm a huge noob at programming.. but I'm suppose to be making a program that creates an array of structures... each structure contains the id, first name, last name, major, and gpa of a student......
so I'm trying to dynamically create this array of structures...
should it look something like:
struct* my_array = new my_struct[x];
where x is the number of students
ok thanks (:
the new[] and delete[] I believe is what my professor was referring to
I was given a programming assignment.. and part of it states:
"
1. Read how many students are in the file and dynamically create an array of structure to store the student information.
"
I'm...
I did
thanks :) :)
Oh I think I had an extra }
I deleted it :)
only one error left:
220 expected declaration before '}' token
which is the last line btw
oh yea thanks.. ok I'll see what I can do... *goes to fix errors!*
Errors:
In function `int main()':
177 [Warning] division by zero in `(n / 2) % 0'
177 At global scope:
220 expected declaration before '}' token
With code:
#include <iostream>
Ok I just did a sweep and fixed a lot of errors... I still have a few though :(
I have 5 errors left to go lol
thanks for helping me so far.. I would've probably just given up without help :/
do I use ';' then? lol
oh ok thanks
Oh lol -_-''
Oh and btw
Thanks for helping this confused soul lol
lol yea I know
I still have a lot of errors to deal with.. and I really don't see what's wrong with most of the stuff....
my code now looks like
#include <iostream>
using namespace std;
Ok thanks I fixed that problem.. lol
Wanna help with another one? -_-'
int gameStatus(char gameboard)
{
// To check if player one has won
One big question..
the error.. too many initializers for `char[3][3]'
for the code that looks like:
char gameboard[3][3] = { " ", " ", " ", " ", " ", " ", " ", " ", " "};
I don't get this one......
Lol thanks
I'm trying right now.. I kinda suck at this stuff though :/
Yea I have a compiler
I just don't know how to go about fixing the errors :(
Right now I'm trying to go through it and fix what I can...
I'll start by saying that I don't know much about programming... but I was trying to make a program that would let two users play a game of tic tac toe... I apparently have a lot of debugging to do...