- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 4
- Downvotes Received
- 40
- Posts with Downvotes
- 21
- Downvoting Members
- 18
I am an Internet Developer LOL
- Interests
- Computers and Internet LOL
- PC Specs
- I have a Dell with Windows XP SP3
Re:
Okay I am trying to write a program where a parent process creates three child processes. Also waits for each of them to finish. Here is my code: [code] #include <stdio.h> #include <unistd.h> main() { int i; // create 3 child processes for (i = 0; i < 3; i++) … |
|
Re:
DaniWeb plans to interview [URL="http://en.wikipedia.org/wiki/Steve_Forbes"]Steve Forbes[/URL], editor-in-chief of [URL="http://www.forbes.com/"]Forbes [business magazine][/URL]. As the new editor-in-chief of DaniWeb's News and Reviews I would like to reach out and involve the entire community and ask for your suggestions. Rather that simply asking Mr. Forbes the questions that come to my mind I … |
|
Re:
[CODE] int a[10]={3,45,6,78,89,334,4,77,54,60}; int *p=a; [/CODE] what will *p++ do ? as ++ has more priority than * therefore ++ will be executed fisrt ? but its postincrement so it will happen after change of line or statement. so will it increment the pointer or increment the value hold by … |
|
Re:
[QUOTE=iamthwee;1217094] .. [/quote][i]>> I don't like the way the quotes are rendered, you shouldn't have to mouse over them to see it.[/i] i also dislike the rollover quote box that hides the quote. if i'm making the effort to quote someone, then their quote is an integral part of my … |
|
Re:
yuck. seriously. it could have been made [I]more [/I]difficult to read, but you'd really have had to work at it. |
|
Re:
Dear All, I am trying to use free function in C to free memory of an array of pointers. It does not work and I get segmentation fault. The code looks like this: [CODE] #include <stdio.h> #include <stdlib.h> int main() { int *make_pointer(int); void read_array(int *array[3]); /****************/ int *array[3] ; … |
|
Re:
hello forum I need help in making a function that randomly chooses between two numbers that I give through the parameters. Please give me a hint or something. Thanks in advance guys. |
|
Re:
Hi, can anyone help me with this program. the program inputs a string and replace the first char with the second one. [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 200 int main(void) { char myString[MAX]; char getCh; char setCh; int i = 0; printf("Please enter the string: "); gets(myString); … |
|
|
|
Re:
Hey guys im having trouble writing this code for my function. I have the idea down and a way to solve the problem but im having trouble writing it in C code. Basically im writing a function that runs exactly like the function strcat from the string.h library but we … |
|
Re:
[CODE]#include<stdio.h> #include<conio.h> int main() { int dec,rem,ans=0; printf("Enter the Decimal number\n"); scanf("%d",&dec); while(dec>=2) { rem=dec%2; dec=dec/2; if(rem==0) ans=ans*10; else ans=(ans*10)+1; } printf(" binary number is"); while(ans>0) { rem=ans%10; ans=ans/10; printf("%d",rem); } getch(); return 0; } [/CODE] this code is not working properly for example for 10 it gives 01, should … |
|
Re:
WOW, OK, I give, retract my other thread and all! This updated site is SWEET! Faaaastr, hasslefree, I can even login so quickly! Thanks for listening to me, even if what I said was a little un-nice! I appreciate you all. Steve |
|
Re:
Hi, I did the stack implementation using arrays and i would like to do it with function pointers but i have no idea. If anyone could help by illustration that would be great as function pointers is pretty difficult for me! Thanks in advance. coolguy |
|
Re:
Hello again guys, this is the code: [code] struct nodo { char *nom_usuario; //*user_name struct sockaddr_in IP; struct nodo *siguiente; //*next }; struct lista { //list struct nodo *primero; //*first struct nodo *ultimo; //*last }; ... ... ... void ordenar(struct lista* maestra); void ordenar(struct lista* maestra){ struct nodo* aux; struct … |
|
Re:
Hello, I am only starting to design a C program that opens a file; [code] #include <stdio.h> #include <string.h> #include <stdlib.h> int main(void) { FILE *fp; fp = fopen ("file.txt", "r"); if (fp == NULL) { perror("Can't open the file"); return EXIT_FAILURE; } printf ("%d\n", fp); system("pause"); return EXIT_SUCCESS; } … |
|
Re:
so... for 5 solid years, our C/C++ Warrior [URL="http://www.daniweb.com/forums/member17893.html"]Narue[/URL] has been a regular poster averaging 4 posts per day (4.08 to be exact). On June 21 2009, Narue disappears off the face of the Daniweb planet. new guy [URL="http://www.daniweb.com/forums/member552021.html"]Tom Gunn[/URL] had joined Daniweb five days previously, on June 18. Tom … |
|
first i had 1 up and 1 down.... with a total score of 50%. okay, makes sense. then later i see that i have 2 up and 1 down. my score goes to 75% [code=text]Overall Post Quality Score: 75% Up Votes Total Up-Votes Received: 2 Unique Posts Receiving Up-Votes: 2 … |
|
Re:
can u show me hw to do puzzle from maze: i need ur help sir please: the instruction is like below: 1) Get all types of puzzles from maze.txt, create a menu and display them on the screen, so that users can choose the puzzle. The menu’s content must consist … |
|
Re:
Hello, I have a problem in my program I want to check the input if it's a number or not the number Component of N boxes for example if N=4 the input 1234 is valid the input 123a is invalid i try with this code [CODE]printf ("Please enter guess no.%d … |