No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
Hi, i have a question about using new/delete classes. This is a simle outline of the code: class a { blah blah blah class b { blah blah blah class c { blah blah blah }; }; }; int main (){ a newA; a::b newC; a::b::c newC; //to call fucntions … | |
Hi, im pretty new to c++, and im stuck on this problem, i need to assign a letter from and array of stings to an array of chars and i just cannot figure it out. any help is appreciated. I tried both and both give me errors: strcpy (newChars[j],alphabet[i]); newChars[j]=alphabet[i]; … | |
Hi, i have a problem with passing the array of structs into another function. Line 15 and 20 - errors. Here the code [CODE] #include<stdio.h> struct point { int x; int y; }pointar[3]; typedef struct point POINT; struct circle { int x; int y; float radius; }circlear[3]; typedef struct point … | |
Hi, i keep getting a segmentation fault and i cannot figure where the problem is, well the problem is in the while loop but not sure what is wrong with it. Question is enter a line of words with spaces then tokenize them and print in reverse. Here is the … | |
Im trying to figure the way and i just cant, any help would be appriciated. [CODE] void main () void abc (int ss[][7]); { int ss [6][7]=blah blah blah blah.... abc (ss); } void abc (int ss[][7]) { for (i=blah.... for (j= blah ss[i][j]=blah... blah blah } [/CODE] error: declaration … | |
Hi, im trying to finish up my assignment on tic tac toe game.. and my program keeps crashing, here are two functions where i think it crashes, probably the first one: [CODE] void tic_tac_toe_init (char *ttt[3][3]) { char i,j; int k=' '; for (i=0;i<3;i++) { for (j=0; j<3; j++) { … | |
Hi, i have to write a program: user inputs a string of characters (letter, digits spaces etc any possible charachter) and then the program should calculate how many letter, digits, spaces, and other characters are there. I did this question using just a char array and then for loop with … | |
Hi, i know its probably the easiest thing ever, but im a noobie in c, and in need of some help with fmax function, i just dont really get it. im trying to compare 3 floats heres what im trying float fmaxf (float int1, float int2, float int3) im not … | |
i have a question about the logic about the calendar question. I have to make a calendar, so user inputs a month (number 1-12) and a date, and the output is suppose to be: Friday, January 1, 2010. Suppose to be written in just simple c, no arrays or anything, … | |
Well, i cant figure how print to the spaces before the *, this is how it is suppose to look: * *** ***** ******* EDIT: dunno how to get it to work but it should be a pascal triangle and this is what i get * *** ***** ******* heres … |
The End.