Search:

Type: Posts; User: Mark Labarbara

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. If that is the case, you will get an incorrect...

    If that is the case, you will get an incorrect count for words with this code. Because, every time it encounters a ' ' words increments. So if there happen to be 3 ' ' between a word, the count would...
  2. Replies
    4
    Views
    2,444

    I have no idea, I am pretty new to programming. ...

    I have no idea, I am pretty new to programming.

    Either way, when you compile and run it, the output is pretty sweet :D
  3. Replies
    4
    Views
    2,444

    Awesome program with pointers.

    Just saw this and thought other people might enjoy it. If you can't tell from the code, I strongly recommend compiling/running. :)



    #include<stdio.h>


    char *c[] = { "ENTER", "NEW", "POINT",...
  4. Replies
    8
    Views
    1,421

    Awesome, thanks again! I think I have enough to...

    Awesome, thanks again!
    I think I have enough to keep myself occupied till next semester starts :)
  5. Replies
    8
    Views
    1,421

    Yeah I have been surfing that site since your...

    Yeah I have been surfing that site since your last comment. However, I can't seem to find exactly what I think I am looking for. On this page it lists all of the documentation for every version. I...
  6. Replies
    8
    Views
    1,421

    Alright I will, should be easy, I use gcc lol. ...

    Alright I will, should be easy, I use gcc lol.

    Anyways, thanks for the advice.
  7. Replies
    8
    Views
    1,421

    Ah, makes sense why I have not come across them...

    Ah, makes sense why I have not come across them yet. I just finished my first college semester of C and the book we used, IMHO, was terrible (C programming for the Absolute Beginner).The teacher was...
  8. Replies
    8
    Views
    1,421

    Can't find what '->' is used for.

    I am reading some code (K&R Questions) but cannot figure out what '->' means. I have seen it a few times, and have tried searching around but have not come up with an answer. Just for an example,...
  9. Look up dynamic arrays or more specifficaly...

    Look up dynamic arrays or more specifficaly malloc(), calloc(), and recalloc().
  10. Replies
    12
    Views
    1,183

    As CommonTater said, that won't work either. If...

    As CommonTater said, that won't work either. If you look at the link I provided you should see how you can fix your original code with about 5 edits.
  11. Replies
    12
    Views
    1,183

    Its not anger, friend. People just want others to...

    Its not anger, friend. People just want others to learn and think for themselves, that way the can become better programmers. That is all :)
  12. Replies
    12
    Views
    1,183

    Spoon feeding him answers doesn't really help him...

    Spoon feeding him answers doesn't really help him learn.
  13. Replies
    12
    Views
    1,183

    The reason it will not calculate properly is...

    The reason it will not calculate properly is because you have a SIGFPE (Floating Point Exception), and therefore will not run. GDB calls it an Arithmetic exception.

    Read up on SIGFPE here to...
  14. Replies
    10
    Views
    1,917

    Oh alright, makes sense! Thanks guys, I...

    Oh alright, makes sense!

    Thanks guys, I appreciate it :)
  15. Replies
    10
    Views
    1,917

    Thanks! Why would the program still execute the...

    Thanks! Why would the program still execute the sleep() function without the correct header included, though? Because it still executes the sleep function, it just gives the warning.
  16. Replies
    10
    Views
    1,917

    -Wall warnings. getchar(), sleep()

    Hey guys. So I have been learning C for a couple weeks now, and I ran into something I can't quite figure out. I am using gcc 4.6.1 on Linux to compile my programs. I have also been using the -Wall...
  17. Replies
    11
    Views
    3,784

    Awesome! Thanks everyone for your tips and...

    Awesome!

    Thanks everyone for your tips and suggestions, I really appreciate it :)
  18. Replies
    11
    Views
    3,784

    Lol, nice! What book are you using? I am using...

    Lol, nice!

    What book are you using? I am using "C Programming for the absolute beginner, Second Edition by Michael Vine"
  19. Replies
    11
    Views
    3,784

    So would this be the best way to write the...

    So would this be the best way to write the program?


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


    int main(void){
  20. Replies
    11
    Views
    3,784

    Thanks for the critique :) I am curious about...

    Thanks for the critique :)

    I am curious about a few things though (please forgive me, I am quite new to this)...
    Why does main have to be declared int main(void)? Will it effect more complex...
  21. Replies
    11
    Views
    3,784

    Is this the best way to write this?

    Hey guys,
    This program does exactly what it is intended to do, I was just wondering if it is the best way to accomplish this task. The program searches 'sentence' for str1, str2, or str3 (as...
  22. Replies
    21
    Views
    2,489

    The program you helped me create :)

    Just wanted to post the program that I wrote with the help from you all.




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

    float fGpa[10];
    int orderAscending(const void* elem1, const void*...
  23. Replies
    21
    Views
    2,489

    Thanks for the advice! I am curious though, I...

    Thanks for the advice!
    I am curious though, I thought that when you initialize a a variable like

    int x;
    it automatically initiates to zero?

    Also, why do I want to have main return an...
  24. Replies
    21
    Views
    2,489

    Crap! I spoke to soon lol. Now, when I enter...

    Crap! I spoke to soon lol.

    Now, when I enter in all the GPA's ( I am doing 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, for simplicity) it prints iGpa[0]=2.00000 instead of 1.00000.

    I am messing around with...
  25. Replies
    21
    Views
    2,489

    Thanks a bunch fellas! I got it to work. You are...

    Thanks a bunch fellas! I got it to work. You are awesome!

    The last problem I was it was telling it to store the gpa's in elements 1-10 because I initiated x at 0. So, I changed x to initiate at...
Results 1 to 25 of 32
Page 1 of 2 1 2