Search:

Type: Posts; User: Vertex34

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,304

    GetSystemMetrics

    when i try to find out what the current size of the screen is I keep getting the maximum size for the screen. here is the code:



    x = GetSystemMetrics(SM_CXSCREEN);
    ...
  2. Thread: structures

    by Vertex34
    Replies
    7
    Views
    1,098

    Ok thanks for the reference to the faq Hammer, I...

    Ok thanks for the reference to the faq Hammer, I understand why not to do that now.
  3. Thread: structures

    by Vertex34
    Replies
    7
    Views
    1,098

    Man this is driving me nuts lol, its probably...

    Man this is driving me nuts lol, its probably really obvious too!
  4. Thread: structures

    by Vertex34
    Replies
    7
    Views
    1,098

    structures

    Ok I am learning how to pass structures to a function and I keep getting an error about return type of main is not int, and it does not display the name.

    I am following along in the book that I...
  5. Replies
    17
    Views
    2,809

    Well just for the record, as far as I know my...

    Well just for the record, as far as I know my solution to the original problem he had was not incorrect, other than the fact that I did not include the correct header. Unless that is, there are other...
  6. Replies
    17
    Views
    2,809

    Ok, thanks for the advice, i hope to be a part of...

    Ok, thanks for the advice, i hope to be a part of this board for a long time so I am sorry if I was taking it the wrong way, and I will make sure to check over my code thoroughly for errors before i...
  7. Replies
    17
    Views
    2,809

    ok my bad not tryin to piss people off, yes it ws...

    ok my bad not tryin to ........ people off, yes it ws obvious, but still no need to get nasty about it. And bruised ego? Yeah right I don't know enough about programming in c yet to have an ego.
  8. Replies
    17
    Views
    2,809

    Jeez whats your problem, Instead of being a...

    Jeez whats your problem, Instead of being a grouch you could have said what the problem was. Anyways I included the wrong header, instead of string.h I should have included ctype.h. I wrote the...
  9. Replies
    17
    Views
    2,809

    Here is another way to do this #include...

    Here is another way to do this



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
  10. Replies
    21
    Views
    2,376

    if you don not include names in the prototypes...

    if you don not include names in the prototypes then how do I use them in the function?

    for example if i do this



    void function1(int); //prototype without name

    main()
    {
  11. Replies
    21
    Views
    2,376

    ok, i've made quite a few changes this time, I...

    ok, i've made quite a few changes this time, I started from scratch this time and tried to make my program code look a little more neat. I also tried to bring each step down into their own functions,...
  12. Replies
    21
    Views
    2,376

    Ok I worked on it a little more and made a few...

    Ok I worked on it a little more and made a few more minor changes but I still cannot figure out why it hangs when I select not to try again. I did try putting a printf statement at the end of the...
  13. Replies
    21
    Views
    2,376

    ok here is another go at it, there is one bug in...

    ok here is another go at it, there is one bug in it though, when you type n to quit it hang on my comp, gotta go to class though so I will work on it some more later. Thanks for all of the input you...
  14. Replies
    21
    Views
    2,376

    ok, i rewrote my code, is this a better way of...

    ok, i rewrote my code, is this a better way of doing it?


    #include <stdio.h>
    #include <time.h>

    void fillstring(char *s,char *keys,int size);
    void typestring(char *s);

    int error = 0;
  15. Replies
    21
    Views
    2,376

    Why is that not a good thing? What kinds of...

    Why is that not a good thing? What kinds of problems could it cause?
  16. Replies
    21
    Views
    2,376

    my first semi useful program

    Ok here is the first semi useful program written in c. I think I will keep developing this further as I learn more, hopefully one day I will have a full gui interface for it, but thats just wishful...
  17. Replies
    6
    Views
    15,923

    Ok, thanks for the advice on the CPU cycles, I...

    Ok, thanks for the advice on the CPU cycles, I will think about that a little more when I am coding.
  18. Replies
    6
    Views
    15,923

    Putting functions in a header file

    Ok I am learning how to put functions that i write into a header file and then including that file in my source code. But I keep getting and error for undefined reference to rndNumber(), but the...
  19. Replies
    8
    Views
    2,033

    const modifier

    I am working my way through a c programming book and I am a little confused with the const modifier. It says in my book that after you declare a variable with the const modifier, the content of a...
  20. Replies
    7
    Views
    1,160

    thanks sand_man, I am trying to learn to apply...

    thanks sand_man, I am trying to learn to apply pointers without using the books examples, i see how I was thinking wrong now.
  21. Replies
    7
    Views
    1,160

    ok, what i am trying to do is pass the address of...

    ok, what i am trying to do is pass the address of a variable to a function, then change the variable within the fuction by using a pointer to the address of the variabel
  22. Replies
    7
    Views
    1,160

    Getting pointer to work with function

    Why will this code not work?

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

    int newvalue(t);

    int main(int argc, char *argv[])
    {
    int x = 3;
  23. Thread: Linux source

    by Vertex34
    Replies
    1
    Views
    2,580

    Linux source

    Where can I find the source code to the earliest versions of Linux? I would be nice if I could even find the source to the first version of linux.

    -Vertex34
  24. Thread: libraries

    by Vertex34
    Replies
    7
    Views
    2,108

    Yeah i have spent many hours learning some of the...

    Yeah i have spent many hours learning some of the basics of assembly and have even gotten as far as writing a bootloader and bootstrap program nothing to fancy though. the computer would load up and...
  25. Thread: libraries

    by Vertex34
    Replies
    7
    Views
    2,108

    libraries

    OK, I made it through a c programming book and now I am embarking on my first real program, nothing to advanced though I am just going to try and make a monopoly game. I figure if I can do that then...
Results 1 to 25 of 28
Page 1 of 2 1 2