Hi, I am not sure if this is the best place to post this, but I am having a minor problem with Visual Studio. I have started to use it for the development of C++ programs but as soon as I build a...
Type: Posts; User: Duskan
Hi, I am not sure if this is the best place to post this, but I am having a minor problem with Visual Studio. I have started to use it for the development of C++ programs but as soon as I build a...
It's OK people, I've worked it out. Thanks for the help
Hi I am new to C++ programming and I am in some need of help. I need to write a program that opens a file called "in.dat", reads it character by character and converts all lower case characters to...
Hi, I am working on a C program and I got the following function:
int printCount(char* fileName)
{
struct Node* current;
current = head;
int unique = 0;
...
K, I got it figured out, thanks.
I would really appreciate it if somebody could help me, I have added a swap function to the code so that it now looks like this:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
Hi I am having problems with a program that is displaying pointers instead of expected data:
Here is the code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Could you give me some sort of example? I am looking all over the net but can't find anything but complex code that doesn't match. I just need to clear the line without having to use fflush.
Sorry...
The FAQ page only tells me to avoid it, but doesn't tell me what alternative I can use.
Hi, I am writing a program that makes use of the function command fflush(stdin) to clear an input line like the following:
//clear the standard input
fflush(stdin);
//get the...
I do not want to add any more files. I just need a single .c file that gets the functions from the header file.
Sorry, I am just not sure of which way I should do it. Problem is I cannot modify the contents of the header file at all and I need to call the functions to the main c file.
OK, perhaps I should make myself clearer.
My header file looks like the following:
#ifdef _PUZZLE_H
#define _PUZZLE_H
#include <stdio.h>
Hi, I am kind of new to C programming and I got two different files. One is my main .c file which I am using to make my main program and I got another file with an extension of .h. The .h file has...
Never mind guys, I fixed it up now, I had to cast the string[i] to int on those two lines as well. Fixed and submitted now, thanks for your help :)
Hi pplz, I managed to get the program working correctly now using this code:
#include <stdio.h>
#include <ctype.h>
#define STRINGSIZE 100
void getString(char *string);
Hi, I'd like to first of all thank people for the help, my little string converter program is nearly finished, I am only stuck on the function of converting the letters from the string from lower...
OK, thanks, I have changed the code to this:
#include <stdio.h>
#include <ctype.h>
#define STRINGSIZE 100
void getString(char *string);
Hi, I need urgent help for this program, sorry I am new to C and I got this code:
#include <stdio.h>
#define STRINGSIZE 100
void getString(char *string);
void reverseCase(char *string);
Hi, I got the following program:
#include <stdio.h>
#define STRINGSIZE 1OO
void getString(char *string);
void reverseCase(char *string);
Never mind, don't bother replying. I got it to work.
Thanx anyway.
OK, I have changed the code to look like this:
#include <stdio.h>
#define MAXCOL 6
#define MAXROW 9
void fillArray(int array[][MAXCOL]);
Hi I am making a program that uses multi dimensional arrays to display numbers from 1 to 54 in 6 rows and 9 columns. Here is my code:
#include <stdio.h>
#define MAXCOL 6
#define MAXROW 9
...