Forum: C Mar 6th, 2007 |
| Replies: 12 Views: 2,384 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 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 Ok thanks all..but actually my problem is not solving yet:( |
Forum: C Mar 5th, 2007 |
| Replies: 12 Views: 2,384 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 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 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 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... |