Search:

Type: Posts; User: NoUse

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    5,449

    Thanks for your help and quick responses. ...

    Thanks for your help and quick responses.

    We're suppose to be going by the book. One of the questions we have to answer using this program is how many terms of the series until you get your first...
  2. Replies
    6
    Views
    5,449

    Okay so like tabstop said, it looks like the book...

    Okay so like tabstop said, it looks like the book f-up the series by putting the negative on the wrong one. I also incremented by two and am getting better answers. here's the code:



    double sum...
  3. Replies
    6
    Views
    5,449

    Help me with this series

    Alright I'm having lots of trouble estimating pi using this series. I must be missing something.

    My book says you can estimate pi using this series:


    pi = 4( 1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11 +...
  4. Replies
    13
    Views
    3,452

    Hey muzihc, I can tell that you're in my same...

    Hey muzihc, I can tell that you're in my same class. Gaudry definitely isn't the best teacher around, in fact, she's probably one of the worst! I really feel bad for all the people who don't have any...
  5. Diablo I or II.. if you haven't played them...

    Diablo I or II.. if you haven't played them you're missing out.
  6. Replies
    10
    Views
    3,069

    bahaha. Good catch.

    bahaha. Good catch.
  7. Replies
    6
    Views
    7,891

    Perhaps, you have a typo. Try strcmp() ...

    Perhaps, you have a typo. Try
    strcmp()

    Although, there is a safer function
    strncmp()
  8. Replies
    11
    Views
    1,303

    Yea, you're right. I probably should have...

    Yea, you're right. I probably should have reviewed the function. I assumed it would just need the file pointer.
  9. Replies
    11
    Views
    1,303

    [edit]

    [edit]
  10. Thread: String copying

    by NoUse
    Replies
    12
    Views
    1,365

    In the header "string.h" exists a function called...

    In the header "string.h" exists a function called strncpy. :)

    strncpy(string2, string1, strlen(string1));
  11. Replies
    12
    Views
    2,663

    "./" solves everybody's problems. :)

    "./" solves everybody's problems. :)
  12. Thread: Eof

    by NoUse
    Replies
    3
    Views
    1,210

    Okay, you type the EOF character on your...

    Okay, you type the EOF character on your keyboard, then come back and talk to us. ;)

    First off, main should ALWAYS return an int even if your compiler let's you get away with not returning it.
    ...
  13. Replies
    9
    Views
    3,289

    C doesn't dynamically allocate memory with new. ...

    C doesn't dynamically allocate memory with new. Just as the guy above me said, main() has a return type of int, but I don't see anything being returned. ;)
  14. Replies
    21
    Views
    10,321

    If you have two different drives then partition...

    If you have two different drives then partition magic isn't even needed. Just boot up with the linux cd and use cfdisk to partition your new drive.
  15. Replies
    21
    Views
    10,321

    Use partition magic to partition out about 5gb...

    Use partition magic to partition out about 5gb from your main Windows partition. Make your main linux partition around 4gb (as that's all you will probably need as you're just doing some programming)...
  16. Thread: CreateWindow

    by NoUse
    Replies
    3
    Views
    1,760

    Yes, it is possible. Here's a good api tutorial...

    Yes, it is possible. Here's a good api tutorial that's in C:

    http://www.winprog.org/tutorial/
  17. Windows XP Pro: ...

    Windows XP Pro: $79.99
    Windows Server 2003 Standard with 5 CALs Academic: $349.00
    A mini network of Windows XP Pro boxes...
  18. Replies
    21
    Views
    10,321

    Software development under Knoppix would not be...

    Software development under Knoppix would not be fun. It's way too slow. You made the right choice dual booting.
  19. Replies
    6
    Views
    1,764

    Or just download and install a Linux distrubution...

    Or just download and install a Linux distrubution that comes prepackaged with GCC and delete your Windows OS. Fight the power. :)
  20. Thread: scanf and printf

    by NoUse
    Replies
    5
    Views
    2,906

    Most important thing to note: Main ALWAYS returns...

    Most important thing to note: Main ALWAYS returns an int, even if your compiler lets you get away with it as void.

    Secondly, you need to allocate memory for your pointer, else you're just over...
  21. Depends on the parameters you pass to that...

    Depends on the parameters you pass to that function. But if pspDebugScreenPrintf() is similar to printf, it will be:


    pspDebugScreenPrintf("%s cross.\n", c);
  22. Thread: The best c book?

    by NoUse
    Replies
    4
    Views
    1,929

    The Complete C Reference Fourth Edition. It's a...

    The Complete C Reference Fourth Edition. It's a good book that teaches well for newer programmers and it's also a great reference for more experienced programmers.
  23. Thread: array help

    by NoUse
    Replies
    17
    Views
    2,234

    Easy way using command line arguments. ...

    Easy way using command line arguments.


    #include <stdio.h>

    int main(int argc, char **argv)
    {
    if(argc != 2){
    printf("Use: <%s> <word>\n", argv[0]);
    return -1;
  24. Replies
    5
    Views
    8,437

    Resource comes from the exe. Yea that's what...

    Resource comes from the exe.

    Yea that's what I'm using. Check the code at the bottom of this post.

    Why would it become invalid?

    1812: ERROR_RESOURCE_DATA_NOT_FOUND :/

    code:
  25. Replies
    5
    Views
    8,437

    Umm, thanks? But you don't know how long I've...

    Umm, thanks? But you don't know how long I've been studying that same msdn code :/ I still can't figure out the reason...
Results 1 to 25 of 38
Page 1 of 2 1 2