- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 7
- Posts with Upvotes
- 6
- Upvoting Members
- 7
- Downvotes Received
- 10
- Posts with Downvotes
- 8
- Downvoting Members
- 8
- Interests
- Geeking...
- PC Specs
- Intel Core 2 DuoT7520 Processor2.0 GB RAM160 GB HDD8x DVD RW +/-8400 nVidia 128 MB Graphics Card
Re:
Well I just started eating dinner and thought this would be a neat topic. Everyone knows we love to eat while on the computer; two birds, one chair. I'll start it off: Deli Sandwiches, macaroni salad, potato salad and a Pepsi :) |
|
Re:
In Turbo C , I am using bios.h to send and receive data on serial Port. I am using bios(2, 0, COM1) to receive data.... and bios(1, in, COM1) to send data..where (let int in=65 I am receiveing data from Port but unable to send... I copied code from [url]http://electrosofts.com/serial/[/url] … |
|
Re:
i just want to whether there is a replacement for getch() in C++. my friend said getch() is C function. thanks! |
|
Re:
Just need help with regards to this part, i'm meant to use scanf() to read a string from keyboard and return number of characters read, so i'm supposed to read a character string. The scan must then terminate at whitespace. A null character is stored at the end of the … |
|
Re:
Hi, I have dates like 20130402 (y-m-d i.e 2ndApr13) Dates are 20130402, 20130404, 20130409, 20130412 if date is 20130402 out put is 20130408 , if date is 20130412 output is 201304015 dd="20130402" echo $dd This gives me current dates next monday , date -d "next monday" +%Y%m%d How to find … |
|
Re:
hi, this is the code: #include <stdio.h> main() { int m1, m2, m3, m4, m5, per; printf("Enter marks in five subjects\n"); scanf("%d%d%d%d%d",&m1,&m2,&m3,&m4,&m5); per=(m1+m2+m3+m4+m5)/5; if(per>=60) printf("first division\n"); if((per>=50) && (per<60)) printf("second division\n"); if((per>=40) && (per<50)) printf("third division\n"); if(per<40) printf("fail\n"); } this is the output for: [root@localhost lbin]# gcc -o division division.c … |
|
Re:
[CODE] #include<stdio.h> #define MAX 4 main() { float A[MAX]; int i; for(i=0;i<MAX;i++) scanf("%f",&A[i]); return 0; } [/CODE] im using Visual C++ and doesnt give me any compilation error it keeps giving me a run time error after i enter the 1st number i can't figure out whats wrong :S help? |
|
Re:
we are given the assignment to implement the banker's algorithm in c. this implementation must run in the linux terminal and program must be utilized the os in the time of execution. this means that it must capable on real-time execution with the os. i really don't have any idea … |
|
Re:
My best is 71,000 with 97% accuraccy so far! [url]http://www.darktick.com/index.php?game_destination=99&game_name=reflex&username=unknown&game_id=1&SID[/url] |
|
Re:
Good day DaniWeb experts. This is my first post here and hope you can help me with my problem. I'm a noob with Borand C++. I see a tutorial here "[url=http://www.dreamincode.net/forums/showtopic37428.htm]Converting and Evaluating Infix, Postfix and Prefix Expressions in C[/url]". I copied the code and run it in my Borland … |
|
Re:
I'm having trouble running C in eclipse. It first gives me weird syntax errors or tells me that # include <stdio.h> is an "Unresolved inclusion" It also will not let me build, saying "(Cannot run program "make": Launching failed)" Am I missing something? please help. Thanks |
|
Re:
I've been trying to read characters from the keyboard using 'getchar()' but my code always misses one character. Can anyone tell me why this is [CODE=suntax]#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char *argv[]) { char string[50]; int i; printf("Enter a string: "); for (i=0; i < strlen(string); … |
|
Re:
Here are my favorite geek quotes I have a couple of shirts with some of them on. P.S I don’t suggest wearing a shirt with #15 to school if you are still stuck in those rat holes like me. 1. There is no place like 127.0.0.1 2. There are 10 … |
|
Hi All, Let me explain the problem. I have multiple include files as in class1.inc, class2.inc, class3.inc etc. Contents of an include file will be like class1.inc [code=c] { "john", 12, 68, "steve", 12, 98, "mat", 12, 95, }; [/code] This will basically serve as a static array of structures. … |
|
Hi All, I am trying to write a common function called call which will take in a void* and an int type. Based on the int type it will have access to different structures. The code doesn't compile in the first place. I am not sure this is correct or … |
|
Re:
I'm doing a OS class. Trying to implement this pseudo code: * Forking is fun! Â Simple tips First, fork the child process: pid_t ForkPID; ForkPID = fork(); Then write a quick switch statement! switch (ForkPID) { // Â-1, fork failure case Â-1: printf("Error: Failed to fork.\n"); break; // 0, … |
|
Re:
[url]http://www.mypce.com[/url] I bet someone out there tries to buy one of these :icon_cheesygrin: |
|
Re:
U can find all the program in c.If du u have any query about c plz ask me and also program |
|
Re:
I been working on this problem for so long, when I compile, it give me an error message that I misplace else at "else if (a==0 && b==0 && c!=0)" when I remove the else at that line, it mess up my code, it won't display like it suppose to … |
|
Re:
what are triangular arrays and how are they linearized? |
|
Re:
(this is an oldie, but I don't see that it's been posted here on DaniWeb) 1. Defensive programming? Never! Klingon programs are always on the offense. Yes, offensive programming is what we do best. 2. Specifications are for the weak and timid! 3. This machine is GAGH! I need Quad … |
|
Re:
Hello again fellow Daniweb techys, remember me? Serunson is back, after a very long break i agree, but now he's at uni, and has a job, and is more amazing than ever! So i thought i would come back and join the realms of Daniweb and be part of the … |
|
Re:
how can this be done? do i have to pointer the database in the structure first to make it able to be use from a text file for some C program ..example.. a measurement converter?? |
|
Re:
The [URL="http://www.flixxy.com/sumsing-turbo-3000-cellphone.htm"]Sumsing Turbo 3000 XL cellphone[/URL] |
|
Re:
[url=http://www.brauch.com/Photos/Clips/Mouse.mpg][u]Watch and see[/u][/url] :icon_cheesygrin: |
|
Re:
Hi,dear all... Im new to C and to this discussion forum. i hv a problem here,which is an array passing problem. int calAge(]) doesnt work well. i tried to look from the internet for reference but get nothing. can u all help me to check it out?coz im not familiar … |
|
Re:
I'm trying to write a program to calculate a bill for a user after they enter in some details. It doesn't allow the user to enter in a value for the 'use code', instead skipping that step. Below is only a rough draft of the program, there's plenty still to … |
|
Re:
hi to all it is a circle program not running , giving erorrs on my c language but it is working on my friend computer (c language) here is code ; [ICODE]#include<stdio.h> #include<conio.h> #include<graphics.h> #include<dos.h> int main () { int driver,mode, i; detectgraph(&driver,&mode); initgraph(&driver,&mode,"...\\ bgi"); setcolor(8); for(i=10;i<201;i++) { sound(i); circle(300,200,i); … |
|
Re:
My program uses a buffer to store data as entered by the user, so that the size of the buffer depends on them. The first thing that came to mind is that I would reallocate memory each time more storage is needed, but that doesn't seem reasonable as the data … |
|
Re:
Hello, Here is my problem: I declare the vector struct in my .h file and then try to access its fields in the .c file. I did declare a variable of type vector. However, I get a compiler error saying that 'vector has no member named' [x] where x is … |