15,539 Topics

Member Avatar for
Member Avatar for jamieerr

This is what I have so far, but I must incorporate the fgets, strtok, and strlen, to meet my professors requirements. [code] #include "stdio.h" #include "string.h" main() { char word[40], latin[40], temp[40], vowels[6] = "aeiou"; char *foundat, *i, *j; int where; printf("Enter a word\n"); gets(word); foundat = '\0'; i = …

0
69
Member Avatar for phr0stbyt3

Im writing a program that when given a date in the form of mm/dd/yyyy will calculate how old the person is in years... right now im stuck at getting the data as i cant figure out how to separate the data when it's entered in mm/dd/yyyy format... any suggestions?

Member Avatar for phr0stbyt3
0
125
Member Avatar for mech00

I was wondering if anyone here knew, or could tell me where to find out....how much (estimated) would it cost me to get a professional software company who specializes in custom software to make me a piece of software (Chat program) with the following capabilities and specs: - Sign on …

0
87
Member Avatar for Ginger

I'm trying to understand how to write a function to fill an array of strings using gets(array_name[i]),i being the row index. Ihave no clue how to even start this I have created a driver that declares a 2-D array that is a list of strings with one string per row. …

Member Avatar for Narue
0
126
Member Avatar for luvusilly

hey buddies, plz help me in getting a new project idea for my college project...i wanna do sumthg with oracle at the backend of the dbase and asp.net in the front end...any senoirs or peers or even juniors have any good idea??? plz lemme know !!!

Member Avatar for jigvesh
0
212
Member Avatar for jcr1

I have been given an assignment to calculate complex numbers being, added, multiplied, divided and subtracted however it is much more advance than the first assignment i was given, to calculate the surface area and volume of a rectangle. I don't even know where to start on this one as …

0
78
Member Avatar for mattcplusplus

below is what im talking about: int d3d::EnterMsgLoop( bool (*ptr_display)(float timeDelta) ); i don't understand the bool (*ptr_display)(float timeDelta) bit i think its a function pointer parameter type, so that it must point to a function that returns a value of type bool, and it must contain a single parameter …

Member Avatar for mattcplusplus
0
89
Member Avatar for cuperman

i've referred a couple of datastructure books and both give different definitions for width of a binary tree. one says its the no of nodes at a level,while another says its the longest path that can be traversed in a binary tree. can any one help me with a recursive …

Member Avatar for Chainsaw
0
96
Member Avatar for tionik06

:rolleyes: This is a program where the user enters how much they owe, then they enter how much they are gonna pay, like (30 dollars for a $25.63 amount), and their change is calculated back to them in ten dollar bills, five dollar bills, one dollar bills, quarters, dimes, nickels, …

Member Avatar for vegaseat
0
141
Member Avatar for kimimaro

hi below is my save function that is used to placed data from the C program to a text file for future usage. [code] [COLOR=Blue]void save() { FILE *save; int i = 0; save=fopen("employeerecord.txt", "a+"); do { if(strcmp(record[i].ID, "")!=0) { if(i!=0) fprintf(save, "\n"); fprintf(save, "%s %s %s %s %s ", …

Member Avatar for Narue
0
92
Member Avatar for vrush

Hi I got one assignment to submit within 2 days.I am suppose to build scanner(lexicle analyser) in c,which will take input from standard input stream and print its class. for example if I input + it will displya "plus",- "minus" I have to run this program in unix environment. program …

Member Avatar for vrush
0
122
Member Avatar for Tejas

Can someone out there help me with this prog. ?? I have been trying to get this for the past 2 weeks !! The question is: Write a program to input an array having n integers. Display the array. Input a number x. Perform the following functions: 1)Delete all the …

Member Avatar for cuperman
0
89
Member Avatar for kakilang

can someone explain to me what does below code do?? [PHP]keybd_event(VK_MENU,0x38,0,0); keybd_event(VK_RETURN,0x1c,0,0); keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0); keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0); [/PHP]

Member Avatar for Narue
0
340
Member Avatar for tyalangan

I have a long and confusing problem (to me) I'm new to C. I was wondering if anyone could help me with my problem. File: Prime.h #include <stdio.h> #include <stdlib.h> int is_prime(int n); File: is_prime.c #include "primes.h" int is_prime(int n) { int k, limit; if (n == 2) return 1; …

Member Avatar for Narue
0
119
Member Avatar for skywing

Hi, I've downloaded the MS Agent and some sample codes. They worked well but I don't understand the code much. In my dialod-based application, I insert an ActiveX Control (MS Agent Control 2.0) and that's all, I don't know what to do next. :confused: Please. tell me what I should …

0
64
Member Avatar for galmca

hi guys...... i have a problem in writing a program of "how to delete the duplicate elements in an array" for example....if i enter an array like: 10 20 30 40 30 then it should print: 10 20 30 40 so could plz help me out????? i have attempted little …

Member Avatar for Narue
0
93
Member Avatar for marwanessa

[B]Dear all I have what same body to answers this three question PLZ :sad: (1) The brief history of evolution of 'c' language. :sad: (2)The advantages of this language among other available languages :sad: (3) Why it was given the current name 'C' PLZ nooooooooooowwwwwwwwwwwwwww[/B][COLOR=Red]undefined[/COLOR][SIZE=5]undefined[/SIZE]

Member Avatar for Narue
0
73
Member Avatar for Etarr

Im stuck on these functions. How does one start to write a function to print out a set of 4 different patterns? So far ive gotten to the point where im using void PrintPattern(int pattenrsize, int patternnumber, char patterncharacter) now im lost as to how I read in the size …

Member Avatar for Narue
0
91
Member Avatar for gpleonar

I need to write a program that will enter integers until 0 is entered. then the program needs to return the highest integer and the lowest integer. How do I return those integers.

Member Avatar for Narue
0
64
Member Avatar for bemrag

hello everyone I changed the program like that but it still give me error please help me. [code] #include <stdio.h> int main () { char A; char G; double a,b,c,d ; double X,u,Y ; double campus,company,telecom,other; double q,w,r; double h,j,t; char P; char C; do { printf("Please enter the chosen …

Member Avatar for Narue
0
93
Member Avatar for Simplicity

How can I have different food items in a snake game? This is a piece of the code I'm given: [PHP] void display_food_at(int8_t x, int8_t y) { set_display_attribute(31); display_character_at(x, y, '#'); } [/PHP] I believe I have to add something somewhere around it..???

Member Avatar for Narue
0
84
Member Avatar for kimimaro

hi I wonder if array can be work along with structure? Below are the declaration of my structure struct employee{ char ID[15]; char Name[20]; char Department[5][30]; int selection; char Post[3][30]; }; struct employee record[200]; I was wondering could if there is anywhere you can : struct employee{ char ID[15]; char …

0
63
Member Avatar for Simplicity

Can any1 help me in this: [COLOR=Red]To the "Snake game" i'm working on, I need to to add a bonus food item that appears at random times in random positions and dissapear after a fixed time.[/COLOR] I really don't know what to do and not even where to place the …

0
85
Member Avatar for bemrag

hello everyone I need help to correcting and executing the program I wrote the program but program gives some errors like; warning C4013: 'printf' undefined; assuming extern returning int warning C4013: 'scanf' undefined; assuming extern returning int : error C2046: illegal case : error C2046: illegal case fatal error C1004: …

Member Avatar for Narue
0
245
Member Avatar for nicoletonyf

Hello there, I have to overload the subscript operator to return the largest element of a collection, the second largest, the third largest, and so on. I don't really understand what to do. Do I have to create an array and sort it? What the output will looks like? I'm …

Member Avatar for jwstickley
0
263
Member Avatar for hopeolicious

It took me about 2 days but I got it lets see if you can do it. Challenge ends on October 27 the program will then be posted for you viewing The program is designed to write a three-structured program in structure form with data members and member functions. In …

Member Avatar for alc6379
1
117
Member Avatar for sachin kumar

Hi All I' m a new member of Dani Web Community.my problem is with nested linked list implementation.when i insert second node in linked list, it always overwrites the first. my declarations are as follows: struct dataset { int key ; char value[30]; struct dataset *ptrdataset; }*ptrd; struct geometry { …

Member Avatar for ZuK
0
157
Member Avatar for navyblue

Hello everyone ! I am a China student and I am a programfan. So I wanna to learn program,but there are many english book in my city! I feel study program so hard because my English is very poor! So I want to make a friend who come from you …

Member Avatar for smarkles
1
267
Member Avatar for prachi

hello frds, i am provided with assignments for evaluation of stack (i.e conversion of prefis ,postfix, infix into each other) i tried for a long time and had to go for searching on net i need it urgently .plzzzzz if any1 knows it let me know prachi

Member Avatar for Narue
0
100
Member Avatar for Simplicity

[COLOR=Blue]Hey guys, For the snake game, I need to use different colours for the snake and food. At least two different colours must be used (other than white and black). How can I change the colours? I tried many ways but none did it properly :sad: ![/COLOR] This is the …

Member Avatar for Simplicity
0
120

The End.