User Profile
Collapse
-
Loading a .obj file into OpenGl
Hi there, I was wondering how I would go about that in C++, I've already looked through some sources but I don't quite understand how to do it. Ideas and thoughts would be appreciated. -
Okay, I did all that, now I'm using the find() function for iterator. I also want to make a count of how many of word are there in the text. I have a count variable set up, but how would I change the index of the find function? I did the line.begin() to start it off.... -
Finding a string input in a 2D char array
I have code that reads in a paragraph of words from a .txt file. How would I go about finding a string that a user inputs into the program? I read in the text as a char, so perhaps I should change the user input into a string?
Any ideas would be appreciated. -
Centering cout while trying to draw shapes
I was wonder how to center 4 lines of output like this:
cout << "********" << endl;
cout << "* *" << endl;
cout << "* *" << endl;
cout << "********" << endl;
I am trying to draw a rectangle, however I want to code it so that it will make space for the next 4 lines. I don't want to have to make spacing... -
Inheritance
Hi there, I was wondering if there was a way to copy a protected variable over to another child class.
Base class: Blog
Child classs: Maker and Viewer
Now, I want the viewer to be able to see the list of messages that the Maker has. However, I made Post function that is inherited from the Blog function. I made two Objects of type Maker and Viewer. That's why I can't get the message value in Maker. Is there a... -
-
How to calculate mode
Hi there, I don't know if the answer to this has been posted before, but I'm having some problem calculating the Mode for a dynamic array in C++.
>
cout << "Enter the size of your array: ";
cin >> aSize;
int *newArray = new int[aSize];
runMode(newArra y, aSize);
< this isi in my main
--------------------------------------
void runMode( int intArray[],...
No activity results to display
Show More
Leave a comment: