- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
I tried to change for loop to do while loop so that I no need to control the value of i in the future. But seems my program crashes. [code] #include<stdio.h> #include<stdlib.h> struct stock { char code[10]; char name[10]; float amt; int held; float price; struct stock *next; }; int … |
|
Re:
hello folks, I have an array of integers and I need to search if there's a combination of 2 numbers that resault a defined sum. No loops or static variable are allowed. Any suggestions? cheers, Elad. |
|
Re:
Hello, I am trying to generate multiple files out of a single text file by changing one parameter. My text file is of the form -- p 3 6 [COLOR="Red"]n 1 1 n 3 -1[/COLOR] a 1 2 0.8 a 1 3 0.7 e 1 2 1 2 0.7 e … |
|
Re:
Hi All, I am facing the scanf() function problem, below given is a small code snippet where am facing the problem. [CODE] int main() { char str1[100]; char str2[100]; printf("Enter 1st string\n"); scanf("%[^\n]s",&str1); printf("Enter 2nd string\n"); scanf("%[^\n]s",&str2); printf("1st string is %s\n", str1); printf("2nd string is %s\n", str2); return 0; }[/CODE] … |
|
Re:
This program takes two decimal number from the user and a operator for addition or substraction.it displays the binary equivalent of both number and also the added or substracted binary number . |
|
Re:
During run-time of a menu driven program, I want the user to see what option the user has entered. Something like this :- [CODE][OUTPUT] . . . Enter Option : [1] <- [I]User given[/I] Press Any Key To Continue ... [_] <- [I]Blinking Cursor[/I] . . . [/OUTPUT][/CODE] After I … |
|
Re:
Hello! I had a question about appending data in to a file. My program flows in the following way-- [CODE] // This function reads data from the file parse_input_data_for_one_algo(some parameters) { FILE *f = fopen (filename, "rw+"); while ( fgets (in_line, 100, f) != NULL ) { //read values } … |
|
Re:
im new at C, actually just started programming in general, and im having a good amount of problems with this program. [code=c] #include <stdio.h> int main(void) { char vehicle; char car; char truck; int hrsn, minn; int hrso, mino; int time; int rt; int amo; printf("What time did you park(military … |
|
Re:
Hi, Could anyone please explain how the memory allocatio is done in case of double pointers? |
|
Re:
A big Hideeho from the Tipperary,Ireland. A search bar just appeared after my wife was online. Also having problems with some programs not ending processes, that is: Firefox and win media player, so I have to right click and end process which is becoming more than annoying. I use spybot, … |
|
Re:
ok this code gets three sides of a triangle and prints out the area... but it just prints out that the area is 0 every time... why? [code=C] #include <stdio.h> #include <math.h> double area(int a, int b, int c); int main(int argc, char *argv[]){ int a, b, c; printf("\nSide A: … |