Search Results

Showing results 1 to 17 of 17
Search took 0.00 seconds.
Search: Posts Made By: donaldunca ; Forum: C and child forums
Forum: C Nov 4th, 2007
Replies: 1
Views: 1,916
Posted By donaldunca
I have some problems:
- How can I erase a file?
- How can I create a random string has 8 letters?
This is my code to create a random string has 8 letters:

char *b="";
int ...
Forum: C Oct 30th, 2007
Replies: 3
Views: 3,496
Posted By donaldunca
Thank you for your helps :)
Forum: C Oct 28th, 2007
Replies: 3
Views: 3,496
Posted By donaldunca
I have small question:
How can I create a random string from 'a' to 'z'?
thank you!
Forum: C May 11th, 2007
Replies: 1
Views: 690
Posted By donaldunca
I have just learnt C so I always meet some problem
Could you tell me the meaning of this code?

void InsertListOrder(Nodeptr &Head,Nodeptr G)
{
Nodeptr P, Q;
P = Head;
while (P...
Forum: C May 6th, 2007
Replies: 1
Views: 2,383
Posted By donaldunca
This is my code:

#include<stdio.h>
#include<conio.h>
#include<alloc.h>
#include<string.h>
#include<dos.h>
typedef struct node *nodeptr;
typedef int infor;
struct node
Forum: C Mar 5th, 2007
Replies: 5
Views: 1,474
Posted By donaldunca
My mistakes of program:
- Can not convert 'node*' to 'node**'
- Can not convert 'node**' to 'node*'
- Function should return a value
I don't understand these mistakes. Could you help me?Thank...
Forum: C Mar 4th, 2007
Replies: 1
Views: 974
Posted By donaldunca
I'm learning linked list. I have a question: How can I connect 2 linked list ? Thank you!:)
Forum: C Mar 4th, 2007
Replies: 5
Views: 1,474
Posted By donaldunca
I have some problem with linked list FIFO(first in first out).
This is my code:

typedef int datatype;
typedef struct node *nodep;
struct node *first,*last,*p;
struct node
{
datatype...
Forum: C Feb 21st, 2007
Replies: 17
Views: 23,872
Posted By donaldunca
I have just finished my program! Thank you all of you :D
Forum: C Feb 17th, 2007
Replies: 17
Views: 23,872
Posted By donaldunca
... but it stop reading at the first line and not jump to second line. Could you help me at this point?
thank you!
Forum: C Feb 14th, 2007
Replies: 17
Views: 23,872
Posted By donaldunca
Here is my code :

#include<conio.h>
#include<stdio.h>
main()
{
clrscr();
int v[10],v1[10],i=0,j,t,k,number,count=0;
FILE *f ;
f=fopen("numbers.inp","r");
Forum: C Feb 12th, 2007
Replies: 17
Views: 23,872
Posted By donaldunca
I try but I can't run my program.
Have EOL (end of line) in C?
I know only EOF. I used fgets but it read for char
Forum: C Feb 6th, 2007
Replies: 17
Views: 23,872
Posted By donaldunca
If I caculate sum of numbers line by line.
This file "data.inp" have numbers:
6 3 5 4 5
2 5 3 1
5 8 7 9
2 5 6 3 5 8 4 6
I want the result is:
23
11
29
Forum: C Feb 5th, 2007
Replies: 17
Views: 23,872
Posted By donaldunca
I have a question:
I have a file named "data.inp". This file have numbers:
6 3 5 4 5
2 5 3 1
5 8 7 9
2 5 6 3 5 8 4 6
If I want more line of numbers, I will add numbers.
But I don't know how to...
Forum: C Jan 28th, 2007
Replies: 4
Solved: read file
Views: 3,636
Posted By donaldunca
thanks, all of you!
my program has run well!:p
Forum: C Jan 26th, 2007
Replies: 4
Solved: read file
Views: 3,636
Posted By donaldunca
I try but my program is not OK. The result is same as before. It is not change anything
Forum: C Jan 25th, 2007
Replies: 4
Solved: read file
Views: 3,636
Posted By donaldunca
I have a question:

I create a file named "number.inp". This file has a row of numbers:

5 4 4 3 3 3 2

note: 5 is the first number, haven't any space or char in front of 5
Showing results 1 to 17 of 17

 


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

©2003 - 2009 DaniWeb® LLC