#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...
Type: Posts; User: Mindphuck
#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...
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
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,...
{
if (x== 'n');
printf("Is your number higher or lower?: ");
if (x== 'l')
max = guess;
guess = (min + max) / 2;
...
Perhaps you should convert the double into an int and then do it Not sure it'll work but it's just an idea.
Could he not use "s/wordtoreplace/newword" in regex?
Sorry, this post is useless now.
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...
Here you go :D
#include <stdio.h>
double weeklywage (unsigned int hours, double hourlypay){
return (hours * hourlypay);
}
double overtime (unsigned int hours, double hourlypay)
#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...
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...
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?
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...