Search Results

Showing results 1 to 7 of 7
Search took 0.01 seconds.
Search: Posts Made By: ctrohana
Forum: C Mar 6th, 2007
Replies: 12
Views: 2,384
Posted By ctrohana
ooppss...sori
line 45 is
char *data2=(char*)malloc(strlen(data));

and looks ok, no error at all..i need you to help me how to get the result like this
data[0]=A11111 atol test=11111...
Forum: C Mar 6th, 2007
Replies: 12
Views: 2,384
Posted By ctrohana
My code:

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <ctype.h>
#define EOL '\n'
#define N 100
void OpenFile(void);
Forum: C Mar 6th, 2007
Replies: 12
Views: 2,384
Posted By ctrohana
Ok thanks all..but actually my problem is not solving yet:(
Forum: C Mar 5th, 2007
Replies: 12
Views: 2,384
Posted By ctrohana
Hi,
I already run the program:

char data[N];
FILE *dataptr;
unsigned int i,ii;
char *data2=(char *)malloc(strlen(data));
long k;

The error-->illegal initialization-->char *data2=(char...
Forum: C Mar 5th, 2007
Replies: 12
Views: 2,384
Posted By ctrohana
Sorry guys, wrong post for my previous program..this is the right program:


#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <ctype.h>
#define EOL...
Forum: C Mar 5th, 2007
Replies: 12
Views: 2,384
Posted By ctrohana
Hi all,
I need ur help..
Actually I have to read the data file which containing character and digits. I need to converts some characters into digit.

The data file is like:
A11111
B22222...
Forum: C++ Feb 28th, 2007
Replies: 6
Views: 3,591
Posted By ctrohana
Hi guys,
I need ur help.
If I have character strings (data array file) as below:

X001234
X001345Y002323
X00142
X001567

How do i program, if I want to enter Y002323 to the next line? and...
Showing results 1 to 7 of 7

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC