Good Day,
Actually, I am stuck with an assignment and I need help badly.
I got a char check[] = "TFFTF"
and I should receive an input on the number of students
Number of Students: 2
Type: Posts; User: xaykogeki
Good Day,
Actually, I am stuck with an assignment and I need help badly.
I got a char check[] = "TFFTF"
and I should receive an input on the number of students
Number of Students: 2
can't find my error in the for-loop. I don't think I have one.
uh...
char n = '0';
I didn't write
int n = 1;
n is a single char.
I tried your code, and it works, thanks, but I am now having a problem with my code.
{
char n = '0';
int x = 0;
int loop = 0;
int count = 0;
char trial[50];
How can I input into one %s.
in this manner,
scanf("%s",&x);
a string with spaces (and still maintains the spaces);
The Day of the Dragon
Young Gun of Of Love
Mouse of Gondar
Good day,
I've been tasked to actually write a sample of a memory leak in c (linux or windows), I've been searching around the net, but I can't get an example to analyse on. can somebody direct me...
oh...it works..O_O
puzzling indeed.
uh..thanks..
I'll read up on ASCII,
bt if you mean in place of the atoi,
converter = atoi(&answer[i] - '0');
it, all gave me 0.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
char *status;
char buffer[1024];
FILE *fp;
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define SIZE 81
void display(char *pointerCheck[]);
int main(void)
{
Yeah, the last one is shorter. but I think the last one should contain a \n since the second one has it too.
if I don't put -1,
it will print 776
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define SIZE 81
#define SIZEANS 81
int main(void)
{
FILE *fp, *outFp;
This is for testing purposes if I am getting the desired output xD
I changed the 3 chars,
but the problem in the string compare is that, when I put "&" as indicated by the pointer error,
my text file has
dbbac
so how many letters are the same with
Good day, I am having a pointer error in my string compare. can somebody please correct me? the program is reading have a rough text file of
abcde
ebcad
acdbe
and several same letters of the...
So if I want to the whole string one by one, I will have to copy the whole string as one, put it in a char (which in this case is insert) and using a for loop, try to test it out by printing out each...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define SIZE 81
#define SIZEANS 81
int main(void)
{
FILE *fp;
Good day,
I have a text file with this kind of input.
5 ABCDE
1000 ABBBB
1001 BCCDA
Can somebody help me start on how I will read the first line only where the first number
signifies the...
Can anyone give me somewhere to start if
I have to convert from Roman Numeral to decimals?
M - 1000
D - 500
C - 100
L - 50
X - 10
V - 5
I - 1
From your help, I managed to fix my code, but it's giving me another error.
I got the stuff working, but I am having a few more errors.
#include <stdio.h>
#include <string.h>
#define...
Good day,
I am having a compiling error with my code.
#include <stdio.h>
#include <string.h>
#define SIZE 81