Click here to Skip to main content
16,004,919 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Unable to run C programs in C++ Pin
Anna-Jayne Metcalfe26-Jul-06 6:11
Anna-Jayne Metcalfe26-Jul-06 6:11 
QuestionTo remove errors from followng code of doubly linked list. Pin
arun.m24-Jul-06 7:37
arun.m24-Jul-06 7:37 
Questionlaunching a program without black DOS box Pin
kahkaha22-Jul-06 7:37
kahkaha22-Jul-06 7:37 
AnswerRe: launching a program without black DOS box Pin
nainto23-Jul-06 3:49
nainto23-Jul-06 3:49 
QuestionPolymorphic operator overloads Pin
Mathpurist21-Jul-06 10:42
Mathpurist21-Jul-06 10:42 
QuestionDebugging assemblies Pin
kevinFields21-Jul-06 6:16
kevinFields21-Jul-06 6:16 
AnswerRe: Debugging assemblies Pin
Jonathan [Darka]25-Jul-06 23:06
professionalJonathan [Darka]25-Jul-06 23:06 
QuestionHelp Regarding "Reading from files" Pin
prgr21-Jul-06 4:55
prgr21-Jul-06 4:55 
Hello friends,

I have a file containing:
1499,0508,00747522,13:56:22.289248,13:56:23.232780,50182289248,50183232780,-943532
600 lines like this
I declared a structure like this
struct data{
int c1;
int c2;
long int c3;
char c4[15];
char c5[15];
long double c6;
long double c7;
int c8;};

and in the main program

FILE *fp=NULL;
int i=0,j=0,k=0;
char c=NULL,cc=NULL;
fp = fopen("res.txt","r");
for(i=0;i<601;i++)
fscanf(fp,"%d, %d, %ld,",&c1,&c2,&c3);
for(j=0;j<15;j++){
fscanf(fp,"%c,",&c);
c4[j]=c;}
for(k=0;k<15;k++){
fscanf(fp,"%c,",&cc);
c5[k]=cc;}
fscanf(fp,"%E,",&c6);
fscanf(fp,"%E,",&c7);
fscanf(fp,"%d\n",&c8);

and when i tried to print cdata[i].c4,c5,c6,c7,c8 etc for some i value...Im getting garbage value...
Can anyone of you help me?
how to tackle that c4 and c5?
is it right to take long double for c6,c7?


thanx in advance...

Regards



QuestionWhat is AxMSComm and how we use it Pin
mertadin21-Jul-06 3:08
mertadin21-Jul-06 3:08 
AnswerRe: What is AxMSComm and how we use it Pin
nainto23-Jul-06 3:54
nainto23-Jul-06 3:54 
GeneralRe: What is AxMSComm and how we use it Pin
mertadin23-Jul-06 22:36
mertadin23-Jul-06 22:36 
QuestionHelp needed: another strange calloc/malloc issue Pin
lyuabe20-Jul-06 23:29
lyuabe20-Jul-06 23:29 
AnswerRe: Help needed: another strange calloc/malloc issue Pin
toxcct21-Jul-06 0:21
toxcct21-Jul-06 0:21 
GeneralRe: Help needed: another strange calloc/malloc issue Pin
lyuabe21-Jul-06 0:25
lyuabe21-Jul-06 0:25 
GeneralRe: Help needed: another strange calloc/malloc issue Pin
toxcct21-Jul-06 0:26
toxcct21-Jul-06 0:26 
QuestionCasting problem (String* to LPCVOID) Pin
stancrm20-Jul-06 3:29
stancrm20-Jul-06 3:29 
AnswerRe: Casting problem (String* to LPCVOID) Pin
toxcct20-Jul-06 3:32
toxcct20-Jul-06 3:32 
AnswerRe: Casting problem (String* to LPCVOID) Pin
NrmMyth20-Jul-06 3:33
NrmMyth20-Jul-06 3:33 
AnswerRe: Casting problem (String* to LPCVOID) Pin
Michael Dunn20-Jul-06 5:58
sitebuilderMichael Dunn20-Jul-06 5:58 
QuestionSearching through a file [modified] Pin
Mphot19-Jul-06 21:56
Mphot19-Jul-06 21:56 
AnswerRe: Searching through a file Pin
NrmMyth20-Jul-06 0:51
NrmMyth20-Jul-06 0:51 
QuestionConvert COM component to C++ managed Assembly Pin
Paul Farry18-Jul-06 20:52
professionalPaul Farry18-Jul-06 20:52 
QuestionProblems adding textbox data into sql String Pin
vincent7_618-Jul-06 13:49
vincent7_618-Jul-06 13:49 
AnswerRe: Problems adding textbox data into sql String Pin
led mike18-Jul-06 17:35
led mike18-Jul-06 17:35 
AnswerRe: Problems adding textbox data into sql String Pin
Eric Dahlvang24-Jul-06 12:16
Eric Dahlvang24-Jul-06 12:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.