Search:

Type: Posts; User: teebo

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    796

    Need a little help with GetPixel()

    Hi I am trying to experiment with GetPixel() to see if I can get a color output. So far this is my code:


    #include <iostream>
    #include <Windows.h>

    using namespace std;

    int main()
    {
  2. How would we output from smallest to largest in a heap data stucture?

    Here is the heap I am looking at,
    11102

    As you can see from the heap tree, the order of the nodes are everywhere. The number 1 is on the right side and the number 2 is bottom left. How would I...
  3. Replies
    3
    Views
    1,310

    Can you use template with struct?

    If I have this,


    struct BinTreeNode
    {
    int data;
    BinTreeNode * left;
    BinTreeNode * right;
    };
  4. Replies
    4
    Views
    844

    Not sure what substr is. I just copied it down as...

    Not sure what substr is. I just copied it down as he had it on the board. I tried using #include <string> but it still gives the error. The error says substr is undefined.
  5. Replies
    4
    Views
    844

    Need some help with recursion

    void writeback(char n[])
    {
    string a;
    if(strlen(n)>1)
    {
    writeback(substr(n,1));
    }
    cout << n[0];
    }
Results 1 to 5 of 5