User Profile

Collapse

Profile Sidebar

Collapse
Spooner
Spooner
Last Activity: Mar 27 '07, 02:43 AM
Joined: Oct 5 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Spooner
    started a topic Loading a .obj file into OpenGl
    in C

    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.
    See more | Go to post

  • Spooner
    replied to Finding a string input in a 2D char array
    in C
    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....
    See more | Go to post

    Leave a comment:


  • Spooner
    started a topic Finding a string input in a 2D char array
    in C

    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.
    See more | Go to post

  • Spooner
    started a topic Centering cout while trying to draw shapes
    in C

    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...
    See more | Go to post

  • Spooner
    started a topic Inheritance
    in C

    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...
    See more | Go to post

  • Spooner
    replied to How to calculate mode
    in C
    Thank you so much :o)
    See more | Go to post

    Leave a comment:


  • Spooner
    started a topic How to calculate mode
    in C

    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[],...
    See more | Go to post
No activity results to display
Show More
Working...