Search:

Type: Posts; User: stach

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Have you thought about writing the process in...

    Have you thought about writing the process in psuedo code first to gather the idea together? You might not 'know' C, but assuming you have an it based role, seemingly arround programming, you sure...
  2. Replies
    46
    Views
    4,860

    Thanks for the pseudo, but I apologise I wasn't...

    Thanks for the pseudo, but I apologise I wasn't clear. I meant more of the code in terms of draw. for instance do i use perhaps #include <graphics.h> ? Functions wise I am unsure where to look for C....
  3. Replies
    46
    Views
    4,860

    @ Hodor - This topic has peaked my interest as I...

    @ Hodor - This topic has peaked my interest as I got my degree in computer games programming, and PERLIN noise was a large part of my dissertation. Producing things like random maps etc. has always...
  4. Replies
    21
    Views
    1,542

    No - Thats exactly why I did post it - to show...

    No - Thats exactly why I did post it - to show that is IS easy - and with very little effort, you can produce the formula in C without using math.c.

    Lets face it, He could go anywhere and find a...
  5. Replies
    21
    Views
    1,542

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    int main()
    {
    char input[100];
    int len = 0;
    int x = 0;
    float number = 0.0;
    float last = 0.0;
  6. Replies
    21
    Views
    1,542

    I am by no means an expert programmer (yet), but...

    I am by no means an expert programmer (yet), but everyone here is right, you really HAVE to try it for yourself. If you wanted to become an amazing footballer, you wouldn't ask a pro footballer to...
  7. Replies
    20
    Views
    2,784

    To be honest, It was merely an exercise to keep...

    To be honest, It was merely an exercise to keep my mind active - and to calculate the day on which the billionth second would occur, so i'm not going to lose sleep over the 15 seconds - I must thank...
  8. Hi Cathyruth - quickly before you get hammered on...

    Hi Cathyruth - quickly before you get hammered on here by all the hardcore fans, you're going to need to pop some example code in
    *here*
    and some more code
    *here*
    which shows what youve done so...
  9. Replies
    20
    Views
    2,784

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <time.h>
    int main()
    {
    int seconds = 31536000; //this is how many seconds in a year
    int billion = 1000000000;...
  10. Replies
    20
    Views
    2,784

    age_in_secs = difftime(timer,mktime(&y2k)); ...

    age_in_secs = difftime(timer,mktime(&y2k));
    int remains = billion - age_in_secs;
    struct tm t;
    t.tm_year = 2013 - 1900; /* The value is years since 1900 */
    ...
  11. Replies
    20
    Views
    2,784

    Thanks to Matticus I had a look at time.h and...

    Thanks to Matticus I had a look at time.h and have reworked it a little to be this:



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <time.h>
    int main()
    {
  12. Replies
    20
    Views
    2,784

    Thanks std. I usually look at most of those...

    Thanks std. I usually look at most of those headers as compatable anyways, just try my best to understand the crazy world of professional programming!
  13. Replies
    20
    Views
    2,784

    Did you miss this bit std? :biggrin:

    Did you miss this bit std? :biggrin:
  14. Replies
    20
    Views
    2,784

    Where would I find this accurately, I usually...

    Where would I find this accurately, I usually look at cplusplus.com for my c++ obviously, but what about for c?
  15. Replies
    20
    Views
    2,784

    one Billion second Birthday!

    So I picked up a thred about an hour ago from the general dsicussions forum, about ideas for simple programs to keep the appetite going (which is exactly what i need right now. SO - i picked the one...
  16. Replies
    4
    Views
    832

    Yeah I mentioned about the memory leaks etc. that...

    Yeah I mentioned about the memory leaks etc. that I don't car about those, this is a simple example which I will extract from when it works and put into my other robust code that doesn't have memory...
  17. Replies
    22
    Views
    1,506

    how did you get the nickname 'grumpy' ? :biggrin:

    how did you get the nickname 'grumpy' ? :biggrin:
  18. Replies
    4
    Views
    832

    Linked List - Still not understanding!

    Hi all. I'm trying to impliment a simple singly linked list, then allow a user to add a new node. I have mocked up a siimple example to illustrate my point using Linked Lists in C Tutorial -...
  19. Replies
    6
    Views
    889

    I certainly agre with Adak, I was having a very...

    I certainly agre with Adak, I was having a very similar problem not so long back, and wish I had found/been pointed towards the above links as they are very helpful in explaining a simple idea that...
  20. Replies
    8
    Views
    897

    Yeah I've just been reading into GTK+ - sounds...

    Yeah I've just been reading into GTK+ - sounds quite comprehensive, might even get it myself! :D
  21. Replies
    8
    Views
    897

    Ah. Virtuals I don't tend to use, I go for fit...

    Ah. Virtuals I don't tend to use, I go for fit for purpose everytime, probably because I'm not too familiar with that kind of business. In terms of GUI's for C, you'd obviosuly have to look at what...
  22. Replies
    8
    Views
    897

    You might want to look into GUI's for C - for...

    You might want to look into GUI's for C - for things like buttons/display screens etc.
  23. Thread: Newbie Question

    by stach
    Replies
    9
    Views
    797

    OK - Next clue: Looking at the code in coloured...

    OK - Next clue: Looking at the code in coloured text above, there is a subtle difference in one of your if/else if statements - this 'highlights' your issue :wink:
  24. Thread: Newbie Question

    by stach
    Replies
    9
    Views
    797

    Theres a small oversight you have made within you...

    Theres a small oversight you have made within you comparison arguments - see if you can spot it with me telling you.
  25. I am a beginner to programming in the sense that...

    I am a beginner to programming in the sense that I graduated with a degree from University last year and have only been working for this software company for 9 months - but I still appreciate the...
Results 1 to 25 of 43
Page 1 of 2 1 2