Search:

Type: Posts; User: Mindphuck

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    1,174

    Database file

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

    void add(char data[1000][1000], int rows, FILE * fp);
    void del(char data[1000][1000], int rows, FILE * fp);
    void display(char data[1000][1000], int...
  2. Replies
    3
    Views
    1,294

    I was told to do the for loop like that by a...

    I was told to do the for loop like that by a friend after my code didn't work the first time. What's wrong with the fopen part? And finally, oops at forgetting the & :p
  3. Replies
    3
    Views
    1,294

    Unknown problem

    Okay, here's the code:


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

    void add(char **data, int rows);
    void del(char **data, int rows);
    void display(char **data, int rows);
    void save(char **data,...
  4. Replies
    5
    Views
    1,690

    { if (x== 'n'); printf("Is...

    {
    if (x== 'n');
    printf("Is your number higher or lower?: ");

    if (x== 'l')
    max = guess;
    guess = (min + max) / 2;
    ...
  5. Replies
    24
    Views
    3,468

    Perhaps you should convert the double into an int...

    Perhaps you should convert the double into an int and then do it Not sure it'll work but it's just an idea.
  6. Replies
    6
    Views
    1,206

    Could he not use "s/wordtoreplace/newword" in...

    Could he not use "s/wordtoreplace/newword" in regex?
  7. Replies
    7
    Views
    1,246

    Sorry, this post is useless now.

    Sorry, this post is useless now.
  8. Replies
    19
    Views
    5,245

    WaltP: why remove the if statement? the program...

    WaltP: why remove the if statement? the program is more efficient without it, there's no point in using a function if you're passing it nothing to process.

    AFAIK financial corporations use base-10...
  9. Replies
    19
    Views
    5,245

    Here you go :D #include ...

    Here you go :D


    #include <stdio.h>

    double weeklywage (unsigned int hours, double hourlypay){
    return (hours * hourlypay);
    }

    double overtime (unsigned int hours, double hourlypay)
  10. Replies
    19
    Views
    5,245

    #include int main(){ short int...

    #include <stdio.h>

    int main(){
    short int quartercount = 0;
    short int dimecount = 0;
    short int nickelcount = 0;
    short int centcount = 0;
    double money;
    printf("Please...
  11. Replies
    19
    Views
    5,245

    Well, I was given the challenge of writing a...

    Well, I was given the challenge of writing a Rock, Paper, Scissors game, which I think I've done quite efficiently:



    /*
    rps.c
    open source terminal game
    this is just a commandline...
  12. Replies
    19
    Views
    5,245

    I guess I put the wrong idea across. When I say...

    I guess I put the wrong idea across. When I say the above, I meant all you'd have to do is tell me a program to code so I can practice. Sorry for the confusion. Would that be irc.dal.net?
  13. Replies
    19
    Views
    5,245

    Looking for a mentor, of sorts

    Firstly, I'd just like to say hey to all that read these boards.

    I was wondering if any of you could give up 20 minutes a day (if that) and help me out with my learning. What I mean is if you...
Results 1 to 13 of 13