Search Results

Showing results 1 to 12 of 12
Search took 0.01 seconds.
Search: Posts Made By: Arcaiz
Forum: C Nov 3rd, 2009
Replies: 5
Views: 272
Posted By Arcaiz
You could use rand() or srand() for it. Read the manual in google for the details.
Forum: Database Design Nov 3rd, 2009
Replies: 0
Views: 915
Posted By Arcaiz
I've got an assignment about database recovery system. I need to find an organization/enterprise and figure out its recovery system. I ask for help from someone who ever made or knew database...
Forum: C Oct 21st, 2009
Replies: 5
Views: 301
Posted By Arcaiz
Your array can't contain all the number. You'll save 2*numsegs to your array[numsegs].

fgetc returns char type but your array is int type.

Maybe that's the problem
Forum: C Oct 14th, 2009
Replies: 4
Views: 330
Posted By Arcaiz
Maybe you should change this part

char tempString1[60];
char tempString2[60];
char tempString3[60];

into


char tempString1[61];
Forum: C Oct 14th, 2009
Replies: 6
Views: 311
Posted By Arcaiz
I suppose you've made some mistake at while loop from line 39 to 50. Value of b can't fulfill the condition to end. This line made it
b = b%16;
Forum: C Oct 14th, 2009
Replies: 4
Views: 330
Posted By Arcaiz
You've done some mistake at line 14, 22, and 30.

Actually, when you declare
char TempString[60];
it means you've allocated 60 char with index from 0 to 59. Hence you can't access...
Forum: C Oct 11th, 2009
Replies: 3
Views: 252
Posted By Arcaiz
You could declare some global variable so you could exchange handle in it but you must do it carefully.

IMHO I think you don't need to make a thread for a line-counting program.
Forum: C Oct 11th, 2009
Replies: 4
Views: 308
Posted By Arcaiz
You could read the manual for every function to know why it doesn't work.
Just ask Mr. Google and Mrs. Wikipedia :p
Forum: C Oct 11th, 2009
Replies: 7
Views: 13,318
Posted By Arcaiz
If you really want to make an array of char without '\0' at the end of it. You could make something like this


#include<stdio.h>

int main()
{
char *insert = "abcdefgh";
char outsert[8];...
Forum: C Oct 11th, 2009
Replies: 4
Views: 308
Posted By Arcaiz
1. Do these code valid?
port=atoi(argv[2]);

I suppose atoi() isn't ANSI C
You could use this for exchange
sprintf(argv[2], "%d", port)

2.
This syntax is risky...
Forum: Community Introductions Oct 7th, 2009
Replies: 0
Views: 125
Posted By Arcaiz
Greetings

Let me introduce myself
Name is Reza Auliandra
Students from Indonesia

Thank you.

Nice to meet you guys...
Forum: C Oct 7th, 2009
Replies: 4
Views: 240
Posted By Arcaiz
'A' is a char.
"A" is a string.

String is an array of char that ends with NULL.
Showing results 1 to 12 of 12

 


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

©2003 - 2009 DaniWeb® LLC