Search:

Type: Posts; User: screwlu

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,459

    I don't fully understand the fseek part, can you...

    I don't fully understand the fseek part, can you show me an example code?

    does that use up a lot of ram?
  2. Replies
    6
    Views
    1,459

    Reading file from the bottom up

    I have a file that goes like
    ++++07/17/2016++++Memo: wdawd
    retire (Chase Savings): 20
    investment (Chase College): 70
    Chase total: 90
    savings (IQ Savings): 70
    spending(IQ Checking): 40
    IQ...
  3. Replies
    5
    Views
    1,030

    sorry for the late reply, but yes, and how to...

    sorry for the late reply, but yes, and how to bypass that if I was the user
  4. Replies
    5
    Views
    1,030

    sorry, its for windows 10, and I am using windows...

    sorry, its for windows 10, and I am using windows api. I tried to be as descriptive as I could.
  5. Replies
    5
    Views
    1,030

    preventing virtual keystrokes and bypass it?

    I have two questions.
    1. If I have a form/text box that a user need to fill out, how do I make it so that the user can only do paste (ctrl+v) if they actually pressed the keys on there keyboard (and...
  6. Replies
    1
    Views
    394

    Send string/dword to current mousePos?

    Is there a way I can send a line of text to a mouse position? or a text box that have been clicked?
  7. Replies
    1
    Views
    485

    Parsing data in files

    Is there any tutorial on how can I learn more on how to creat a file parsing program? Mainly how file parsing work in c and how can I type a code that scan through a file and look for a string that's...
  8. Replies
    9
    Views
    505

    ok thanks

    ok thanks
  9. Replies
    9
    Views
    505

    oo ok, why did you pass in &i into the function?...

    oo ok, why did you pass in &i into the function? why cant you just pass in i since it's the address (not dereferenced)?
  10. Replies
    9
    Views
    505

    #include void testadd(int * i); ...

    #include<stdio.h>

    void testadd(int * i);


    int main(void)
    {
    int * i;
    *i = 0;
    testadd(i);
  11. Replies
    9
    Views
    505

    pointer's '++' in function

    Why can't I use a ++ syntax for adding 1 to a pointer of an int inside a function? I can only use +=
  12. Replies
    3
    Views
    1,168

    Oh ok, thanks

    Oh ok, thanks
  13. Replies
    3
    Views
    1,168

    Using brackets with pointers

    does it hurt to use brackets with points? for example


    #include <stdio.h>

    //Ik there are errors, this is just a example
    int main() {
    char* sumding;

    for (int i = 0; i<n; i++)
  14. Replies
    9
    Views
    827

    I tried something like that (making a temp struct...

    I tried something like that (making a temp struct then set it to peeps[first]) but everytime i compile it, it crashes... I don't know why your code is working while mine didnt... anyway, thanks!
  15. Replies
    9
    Views
    827

    I'm running into a problem with structure...

    I'm running into a problem with structure again...

    #include <stdio.h>//coded by Tam Nguyen 11/6/15
    struct person
    {
    char first_name[20];
    char last_name[20];
    int age;
    };
  16. Replies
    9
    Views
    827

    lol, yea I got it, I had to re-read it like 3...

    lol, yea I got it, I had to re-read it like 3 time just to see the difference lmao
  17. Replies
    9
    Views
    827

    [QUOTE=laserlight;1243685]Ah. Look carefully at...

    [QUOTE=laserlight;1243685]Ah. Look carefully at how you declared the function:

    void sort_age(int n, struct person peeps[]);
    Now, look at how you called it:

    sort_by_age(5, student);
    EDIT: omg,...
  18. Replies
    9
    Views
    827

    I haven't learn about const, size_t, nor '->', so...

    I haven't learn about const, size_t, nor '->', so I think it's best if I don't put that in my code for now. As for the pointer you mention in the print function, I been watching video and my teacher...
  19. Replies
    9
    Views
    827

    structure, and sorting it

    So I'm currently learning more about structures, but I'm running into a problem.


    #include <stdio.h>

    struct person
    {
    char first_name[20];
    char last_name[20];
    int age;
  20. Replies
    6
    Views
    634

    Man, im ........ing dumb... got it fixed. The...

    Man, im ........ing dumb... got it fixed. The problem was I had to set it as isPrime = check_if_prime(test_int);
  21. Replies
    6
    Views
    634

    what do you mean? can you show me an example? ...

    what do you mean? can you show me an example?

    edit: i notice in my printf debugging, it forgot to replace the function name with the variable

    edit edit: turns out the if function works, but it...
  22. Replies
    6
    Views
    634

    the problem is not that it doesnt print, it's...

    the problem is not that it doesnt print, it's that it doesnt change isPrime for some reason. I have tried to debug my function with
    int isPrime = 0; unsigned int divisor;
    printf("first...
  23. Replies
    6
    Views
    634

    Problem with if statement in function

    I'm having a problem with a if statement inside a function and Idk how to fix it.


    #include <stdio.h>#define TRUE 1
    #define FALSE 0


    _Bool check_if_prime (unsigned int test_int);
  24. Replies
    2
    Views
    404

    stopping a loop?

    I'm fairly new to C and I was wondering how to make it so that while a program is in a loop, if a user input a key, it'll stop the loop at where it is.

    Like if a for loop is running and it's...
  25. Thread: Prime numbers

    by screwlu
    Replies
    5
    Views
    625

    nvm, fixed it, here's the new loop for (c =...

    nvm, fixed it, here's the new loop


    for (c = 2; c < prime && isPrime == 0; c++) {
    //Bottom comment is for debugging
    //printf("%i %% %i =...
Results 1 to 25 of 33
Page 1 of 2 1 2