Search:

Type: Posts; User: edwardtisdale

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,256

    haha okay

    cool.
  2. Replies
    68
    Views
    6,160

    I see it a different way, tell me if i'm too far off

    #include <stdio.h>
    #include <stdlib.h>

    int BubbleSort(int info, int next);//returns the lesser of the 2.

    void main(void)
    {

    int *ptr = malloc(10 * sizeof (int));// will hold entire input...
  3. Replies
    3
    Views
    3,036

    I'm having a go at this.

    I think that what you want to do is think like a tree-pruner (as in a real "Tree"). who wants to keep the tree intact, but get rid of the excess shrub around the outside. Start with thee leaves, then...
  4. Helloe

    Hi Quzah, it's been years since I've been on this forum. I remember being in c discussions here with you way back in the early 2000's.
  5. Replies
    3
    Views
    1,057

    huh?

    It seems to me that if you are inputting strings you will want to worry about this, but why wouldn't you use floats or ints or something else that isn't a string for your input?

    - Edward
  6. Replies
    5
    Views
    1,369

    -1 is an integer

    We can't leave out -1 from possible integers. I assume it could be always assumed that a -1 is always going to be entered and there isn't a problem with this, but do we want to assume this?

    -...
  7. Replies
    2
    Views
    1,060

    aux.

    I believe the answer to that is that it's better to call temp var "aux", because the Tower of hanoi problem involves 3 poles, named Source, Auxiliary, and destination, and the reason this coder...
  8. Replies
    3
    Views
    2,256

    getting recommendations for LinkedIn

    Does anyone have or know anyone on Codeguru who has a LinkedIN account? I'm thinking it could help employers notice me if they see who I've had forum discussions with. If my discussions help anyone...
  9. Alright I got a red color

    the site helped a lot, I got colors goin pretty good, now the hard part, how to change the shapes and crop, etc. I want to make a Cristmas tree or somethin, see:


    // many commented instructions...
  10. nice logical guess but ...

    Interesting, yeah I just tried commenting that out and it just turned the whole cube white.

    I think maybe I'll play with the value in

    <b>glEnable(GL_LIGHT0);</b>
    and see what happens.

    ...
  11. ah!

    I'll try to figure out what lighting is and how to turn it off, but for now I'm asking, how do you do that? If I find out and check back and don't know yet then thanks in advance if you can help.
  12. By the "quad" i guess you mean the cube. I have...

    By the "quad" i guess you mean the cube. I have just been playing with the code, and noticed some changes in numbers will turn each side different shades of grey or white or black.
  13. OpenGL example cube is black, white, grey only

    Why is the cube black, white and grey instead of color? Here's the code:



    #include <windows.h>
    #include <GL/gl.h>

    char *className = "OpenGL";
    char *windowName = "OpenGL Cube";
    int winX =...
  14. Replies
    3
    Views
    2,485

    closing tags

    Closing tags sometimes aren't needed in html, but as everyone moves to xhtml they are required, and all tags should be in lower case.

    EdCompSci
  15. Replies
    17
    Views
    3,017

    not taken in a bad way

    Sorry to interrupt your thread. I have all of these different sections of c/c++ running through my brain at the same time with not much order to it. I know you weren't talking about copy...
  16. Replies
    17
    Views
    3,017

    What is your favorite book as far as explaining...

    What is your favorite book as far as explaining all of this pointer/reference arithmetic?

    All I know is:
    using pointers to declare an address pointer to have a dynamic array, using malloc (and...
  17. Looking For Code examples Using Cyclone

    I read that this solves the unchecked runtime error,buffer overflows and related bugs problem in C. Any disagreements? (resource Jan 2005 C/C++ Users Journal).
  18. question regarding operator.

    I'm beginning to understand these overloaded operators now I think.

    Student::operator<< (ostream &out, Student)
    {
    Student studentn;
    out << studentn.getName();
    out << studentn.getLoan();
    ...
  19. Replies
    8
    Views
    5,342

    There Are Default Values

    I use the same VC5.0 pro. Yes the .h and .rc files are made for you but the menu will already have a value. It is the same value as if you right-click on the menu tree and choose Properties and it...
  20. Replies
    16
    Views
    2,018

    Related to your discussion (I think)

    I have been told that it is better to use
    int as the return type on
    main(){} than using
    void. I still use
    void but haven't programmed anything really fantastic. I would like to know how...
  21. Replies
    2
    Views
    6,974

    volatile

    Volatile: (from Oct 2001 MSDN Library) declares an item whose value can legitimately be changed by something beyond the control of the program in which it appears, such as a concurrently executing...
  22. Replies
    13
    Views
    2,601

    Got me. I'm working on passing the array to a...

    Got me. I'm working on passing the array to a function that does multiplication OneToOne on the matrix now, since this (the above code) mysteriously is working. Maybe it's just the VC5.0 compiler....
  23. Replies
    13
    Views
    2,601

    I know

    I know it should be because 0 through 5 is an array bound totalling 6 but for some reason using the <=6 I get output:

    { 10, 32, 54, 11, 99, 11, }
    { 10, 10, 32, 54, 11, 99, 11, }
    { 10,...
  24. Replies
    13
    Views
    2,601

    Alright almost got it. #include ...

    Alright almost got it.


    #include <stdio.h>
    //void DisplayOpenCurlyBrace();
    //void DisplayClosingCurlyBrace();
    int main(void)
    {
    int MatrixA[12][6]=
    { 10, 32, 54, 11 , 99, 11 ,
  25. Replies
    13
    Views
    2,601

    At this point I think cpp might be better

    #include <stdio.h>
    void DisplayOpenCurlyBrace();
    void DisplayClosingCurlyBrace();
    void main(void)
    {
    int MatrixA[12][6]=
    { 10, 32, 54, 11 , 99, 11 ,
    10, 32, 54, 11 , 99, 11 ,
    ...
Results 1 to 25 of 30
Page 1 of 2 1 2