Search:

Type: Posts; User: Hexadakota

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,363

    Ok that makes sense. But... Does that...

    Ok that makes sense.

    But...



    Does that mean that occasionally you can?
  2. Replies
    4
    Views
    1,363

    Really really easy, dumb question

    This is my simple little function



    int reverse_list(void) //creates a list of ints from 0 to N
    {
    int N = 20;
    int temp_array[N];

    for(int i = 0; i < N; i++)
  3. Replies
    4
    Views
    1,116

    oh.... ....duh

    oh....

    ....duh
  4. Replies
    4
    Views
    1,116

    Some wierd errror I don't understand

    I want to make a simple singly linked list. The conversion constructor in the class "slist" is slist(const char* c) and I want it to just take a string, reverse it, and prepend it so that each letter...
  5. Ahh! You're all right about the strrev. I really...

    Ahh! You're all right about the strrev. I really was just assigning it a decrementing value that wasn't even related to the string. Duh...

    EDIT: You guys were right about strcmp too. Such a...
  6. Absolute Doozy of a problem I don't understand

    My goal is to take a string and do various modifications with it like reversing it, printing it, printing it up to n places, and comparing it to another string using the class my_string.

    This is...
  7. Replies
    8
    Views
    1,692

    This may sound stupid, but how exactly to I...

    This may sound stupid, but how exactly to I insert the null terminator into the second string? I'm drawing a blank. I know what it is and how it works, but I don't know the syntax for hard coding it...
  8. Replies
    16
    Views
    2,129

    I need a laptop before Fall this year.

    I'm majoring in Computer Science at the University of Minnesota and I need a laptop. It would make everything easier, and I need to be able to program pretty much at any point in the day.

    I don't...
  9. Replies
    8
    Views
    1,692

    Sweet, thanks for the advice. I'm making...

    Sweet, thanks for the advice. I'm making progress. This is what I have now.

    The int main() function is the same...the reverse function has been changed to



    void reverse(const char s1[], char...
  10. Replies
    8
    Views
    1,692

    Reversing a string with RULES!

    My goal is to take a simple string like "My name is Don Knuth!", print it, then print it in reverse order. The rules are, I need to use this class



    class ch_stack{
    public:
    ...
  11. I'm sure she'd love hearing that from me, the...

    I'm sure she'd love hearing that from me, the only kid in the class who doesn't know how to use arrays.

    EDIT: Thanks for all the advice Elysia. Everything worked!
  12. Oh I see. Every time I looped I was just printing...

    Oh I see. Every time I looped I was just printing the same pointer over and over again. I put an [i] after the data and it printed what was in the array. Duh! Thanks for the help.

    Crap. One more...
  13. No. This is the second program I've ever...

    No.

    This is the second program I've ever written and the little I know about arrays I learned from googling it. I understand now that it's treating the values as addresses that hold values...how...
  14. Ahhh I see. It's printing addresses instead of...

    Ahhh I see. It's printing addresses instead of values. How do I make it print the values in the array?
  15. The function needs to have size as default...it's...

    The function needs to have size as default...it's part of the homework >_<...sorry I didn't mention that.

    And it's consistently still printing the same junk...0x22ff50 for int, 0x22ff30 for float...
  16. Overloading Functions. I keep getting junk.

    I have a very simple function using overloading function. It's just supposed to send an array to a function, and the function prints out that array "size" times. It's printing it out the correct...
  17. Replies
    1
    Views
    1,501

    How do I print my output?

    ...aside from using something like print screen?

    I have this nice neat, simple program and I have a correct output, but I don't know how to print the text that comes up in the little black window...
  18. Replies
    7
    Views
    1,482

    Haha. Yeah I'm an idiot. Thanks a lot guys....

    Haha. Yeah I'm an idiot.

    Thanks a lot guys. Everything worked.
  19. Replies
    7
    Views
    1,482

    Sweet. All the advice worked. The numbers are...

    Sweet. All the advice worked. The numbers are being properly converted.

    but now...



    int degree(char a) //Function to change degree sign which takes in a letter
    {
    ...
  20. Replies
    7
    Views
    1,482

    Are you talking about... return(n, a); ...

    Are you talking about...



    return(n, a);


    ...

    If so, how do I return both the double and the char back? Like if I inputed 212F, how I would get a 100C from the function returned to main?
  21. Replies
    7
    Views
    1,482

    Inputting a letter and a number

    So I'm an absolute beginner writing my first program. It's a simple one which converts Celsius to Fahrenheit and visa versa. I want the input to be something like 32F, 0C, 212F and a 456G to check...
Results 1 to 21 of 21