Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~29.4K People Reached
Favorite Forums
Favorite Tags
c++ x 12
c x 9
Member Avatar for cyberguy007
Member Avatar for sanof3322
0
29K
Member Avatar for cyberguy007

My input file contain: 1 2 3 4 5 6 why is it not reading properly, i tried implementing fget and fread but failed even after reading dani web and other tutorials. [CODE]#include <stdio.h> #include <stdlib.h> #include <conio.h> typedef struct{ char lname[20]; char fname[20]; int salary; }employee; const int max …

Member Avatar for WaltP
0
97
Member Avatar for cyberguy007

Using the example of 10, all the numbers from 1 to 10 are initially in the game. Suppose the user chooses 9; 9 is added to his score. The Tman gets 1 and 3 since these are exact divisors of 9; the Tman’s score is now 1 + 3 = …

Member Avatar for anup375
0
85
Member Avatar for cyberguy007

[CODE]# include <stdio.h> # include <stdlib.h> # include <string.h> # include <conio.h> typedef struct{ int a[99]; }number; const int max = 99; int main () { number array; int j; int count = 0; for ( j= 1; j <=max; j++ ){ count = count +1 ; array.a[j] = count; …

Member Avatar for Dave Sinkula
0
72
Member Avatar for cyberguy007

[CODE]#include <stdlib.h> #include <stdio.h> #include <conio.h> int main() { int tempnum = 0; int i; int mainnum ; int maincount = 0; int tempcount ; int *a; int n; FILE * file; file = fopen ("input.txt", "r"); if(file==NULL) { printf("Error: can't open file.\n"); return 1; } else { printf("File opened …

Member Avatar for WaltP
0
152
Member Avatar for 006ruler

Hi, I'm a complete noob to C++. I am currently just making text games where you input a string and depending what that string is and what you have in your "inventory", the program will cout something else. I would like to know how i would be able to save …

Member Avatar for cpeister
0
155
Member Avatar for cyberguy007

Can someone help me create a function to print all items with a Prod_Stockcount less than 5? Its missing some code but all you need is to add and then create a function to print items with stockcount less than 5 [CODE]# include <stdio.h> # include <string.h> # include <iostream> …

Member Avatar for jonsca
0
115