Search:

Type: Posts; User: Ideswa

Page 1 of 13 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: What to do next

    by Ideswa
    Replies
    3
    Views
    959

    Well if you want to code GUI's and stuff, you...

    Well if you want to code GUI's and stuff, you have multiple opportunities:
    - Win32 API: theForger's Win32 API Tutorial ;
    - GTK Framework (platform independent) ;
    - Qt Framework (platform...
  2. Replies
    20
    Views
    18,969

    I wouldn't recommend Microsofts IDE. Maybe for...

    I wouldn't recommend Microsofts IDE. Maybe for Win32 development it's nice, but you are a beginner and don't need that yet.

    Netbeans C IDE is nice too. But your problems are probably solved with a...
  3. Replies
    76
    Views
    8,073

    A game maker, something like this: Game Maker -...

    A game maker, something like this: Game Maker - Wikipedia, the free encyclopedia ?
    That is a good idea (but as you see, not new).
  4. Replies
    76
    Views
    8,073

    I think this is a great idea! But I may be a...

    I think this is a great idea! But I may be a "someone" with less experience brewbuck is talking about :rolleyes:. I could take care of translation to dutch if necessary :p.
  5. Replies
    19
    Views
    3,197

    The sieve is memory-heavy though? So you store...

    The sieve is memory-heavy though?
    So you store primes in an array or something and when you check integer 'n' for primality you check if 'n mod x' != 0 where x are only primes you calculated before?...
  6. Replies
    19
    Views
    3,197

    Yeah, I printf() them. Without printing it's 1.8...

    Yeah, I printf() them. Without printing it's 1.8 secs. I have looked into wikipedia on Trial division - Wikipedia, the free encyclopedia, is that the algorithm you use? That is just the "brute force"...
  7. Replies
    19
    Views
    3,197

    Nice! I haven't used any of the fast prime...

    Nice! I haven't used any of the fast prime algorithms yet. But I'm having a lack of time because I have my final exams in 17 days and I have to code some PHP websites too :p.
  8. Replies
    19
    Views
    3,197

    My time for primes from 2 to 1 Million is about...

    My time for primes from 2 to 1 Million is about 2.6 secs. ('real' return value from the 'time' command).

    To improve your speed, you can, for example:
    - break out of the inner loop when remainder...
  9. Replies
    4
    Views
    1,419

    Please read the homework policies here. If you...

    Please read the homework policies here. If you don't do your homework, you will not learn to program properly. Maybe you could make something like a linked list implementation? That is pointers,...
  10. Thread: Embedded C

    by Ideswa
    Replies
    2
    Views
    3,739

    Embedded system - Wikipedia, the free...

    Embedded system - Wikipedia, the free encyclopedia

    Embedded C is used to program embedded systems.
    Most Embedded systems have very primitive hardware (like 256 bytes RAM). Embedded programming...
  11. Replies
    26
    Views
    1,779

    Comments aren't compiled, they are ignored by the...

    Comments aren't compiled, they are ignored by the compiler, so you can't find them in the executable.

    In your code, you only look for a single '/', but what if it isn't followed up by another '/'...
  12. Replies
    26
    Views
    1,779

    They probably mean remove the comments from the...

    They probably mean remove the comments from the source code, not the executable?
  13. Replies
    8
    Views
    3,846

    You could make a linked list to store your string...

    You could make a linked list to store your string in. (Every node stores a char of the string).
  14. Replies
    11
    Views
    1,492

    You are using double quotes when comparing to a...

    You are using double quotes when comparing to a char. A char is in single quotes.
  15. Replies
    11
    Views
    5,801

    Well, you copy the string containing the date to...

    Well, you copy the string containing the date to a char *, which hasn't been allocated in memory. So that's a segfault.
    makeDateString(&firstTry, buff); is correct.
  16. Replies
    11
    Views
    5,801

    Could you post the code where you call the...

    Could you post the code where you call the makeDateString() function?
  17. Replies
    8
    Views
    1,083

    Indentation doesn't solve errors, it only makes...

    Indentation doesn't solve errors, it only makes the code more readable.
  18. Thread: char question

    by Ideswa
    Replies
    2
    Views
    665

    So what's the question? Let's try? ...

    So what's the question? Let's try?


    #include<stdio.h>

    int main(int argc, char **argv)
    {
    printf("%c = %c", 'a'+2, 'c');

    return 0;
  19. Thread: C/c++ ide

    by Ideswa
    Replies
    12
    Views
    4,951

    Netbeans rules :-). Kdevelop is kinda "ugly" if...

    Netbeans rules :-). Kdevelop is kinda "ugly" if you're in gnome, but has about the same functionality. For small tests or practice programs I use Geany. When I am using Qt I use QDevelop.

    Visual...
  20. Replies
    14
    Views
    2,973

    Can't bit fields be used for this (making the int...

    Can't bit fields be used for this (making the int size smaller) ? Or is the struct making it larger again?


    #include<stdio.h>

    struct foo
    {
    int flag:2;
    } bar;
  21. Replies
    2
    Views
    1,013

    C++ Reference [C++ Reference]...

    C++ Reference [C++ Reference] is nice for this kind of questions.
  22. Replies
    7
    Views
    1,552

    Why do you need to pass it to a function if the...

    Why do you need to pass it to a function if the object is declared globally?


    myStruct test_struct;
  23. Thread: p++ and ++p

    by Ideswa
    Replies
    10
    Views
    11,528

    A nice article about ++p in for() loops in the...

    A nice article about ++p in for() loops in the FAQ: Cprogramming.com - C/C++ Programming Tips and Tricks
  24. Replies
    3
    Views
    2,516

    You should use u = x; Because u and x are...

    You should use


    u = x;

    Because u and x are both pointers to pointers. x[2][2] is like **x.

    By using * you dereference a variable (you get the value the pointer is pointing to).
    By using &...
  25. Thread: c[-1]?

    by Ideswa
    Replies
    21
    Views
    2,066

    The memory you're writing to isn't allocated, so...

    The memory you're writing to isn't allocated, so it's undefined.
Results 1 to 25 of 316
Page 1 of 13 1 2 3 4