19,876 Topics

Member Avatar for
Member Avatar for efronefron

There is a problem I am having inside the AddToEnd function. At this line: [QUOTE]*ptrL->ptrNext = ptrInput;[/QUOTE] it gives this error: [QUOTE]lab8.c: In function ‘AddToEnd’: lab8.c:105: error: request for member ‘ptrNext’ in something not a structure or union [/QUOTE] Can anybody tell me why? P.S. I realized that I do …

Member Avatar for efronefron
0
189
Member Avatar for hun1905

source base = 2 value = 1001 (9 in base 10) target base = 10 new representation = 9 source base = 16 value = 1FA (4346 in base 10) target base = 8 new representation = 10372E

Member Avatar for griswolf
0
126
Member Avatar for cdn88

Hello, I am having trouble understanding why I'm getting these errors. a4.c:106: error: expected expression before ‘int’ a4.c:106: error: too few arguments to function ‘ass_average’ a4.c:109: error: expected expression before ‘int’ a4.c:109: error: too few arguments to function ‘ass_min’ a4.c:112: error: expected expression before ‘int’ a4.c:112: error: too few arguments …

Member Avatar for Ancient Dragon
0
224
Member Avatar for makibao

please help me to create a student information portal using stucture and union program in c.it should contain five sudents. *for inputs we should use struct and for output we should use union and it also should have a controls...previous page, next page and escape for exit. i don't know …

Member Avatar for Ancient Dragon
0
138
Member Avatar for cse.avinash

Sir, how to take input from user as large as 2^64 and the perform its calculation. Please help me.

Member Avatar for rubberman
0
136
Member Avatar for gyuunyuu

I have found numerous examples involving only arithmetic operations but mine requires to deal with functions - min(x, y), max(x, y), sqrt(x), abs(x), fact(x). What I don't understand is how my program can interpret those functions and set the precedence for them. Examples: 4 + 5 -> 4 5 + …

Member Avatar for gyuunyuu
0
423
Member Avatar for programing

i want you to help me to find the mode in array size n if there two element have same number of repetion there is no mode . mode :: the most number is repeted . e.g {1,2,3,4,3} the mode is 3 but if we have {1,2,3,1,3} there is no …

Member Avatar for WaltP
-1
116
Member Avatar for DJSAN10

This is a part of code i read in a standard book.. f() {} . . . int *ip; ip=((int *)f); my question is..f gives d address of function..then wat is d need to typecast..??/

Member Avatar for Narue
-1
117
Member Avatar for bantex07

SomeBody Know This Problem help me to find my error here we i run this program hmm.... the output is two the aquarius and pieces and sometimes the march cannot read ! [CODE] #include<stdio.h> #include<conio.h> #define s scanf #define p printf char w[50]; int t; void main() { clrscr(); p("Enter …

Member Avatar for WaltP
-2
153
Member Avatar for DrewS

Hello, I am supposed to implement heapsort proposed by floyd. I got it as a home work. I know the simple implementation of heapsort. but what i am supposed to do is- while sorting, instead of comparing 3 values (parent and two childs), i need to compare only 2 child …

Member Avatar for rubberman
0
96
Member Avatar for DJSAN10

in which language are definitions of built in functions like printf written...assembly or C?

Member Avatar for DJSAN10
0
161
Member Avatar for plang007

In the function largest, it works correctly for numbers greater than 2 such as 3, but does not give me the correct results for numbers 1 and 2 when entered. How would I fix this. [CODE]#include <iostream> #include <cmath> #include <iomanip> #include <fstream> #include <string> using namespace std; int nexta(int …

Member Avatar for Arbus
0
234
Member Avatar for Jbvo

I have been looking for an answer for the last few hours on google with no success. I am trying to create a program that will determine what file to open from user input. For example: names of the text files are xaa through xzz. The text files contain integers …

Member Avatar for Jbvo
0
314
Member Avatar for lianpiau

who can help me?? I got a datagridview, one of column in datagridview is checkbox call Finish. So that, when the Finish checkbox is checkbox, I want certain row background color become yellow color. when each time I run the program, it will display yellow color when that row Finish …

Member Avatar for lianpiau
0
2K
Member Avatar for nadleeh

so im tryna save input from stdin to a node. but every time i run the loop it resets whats in my node. idk if that makes sense.. heres my code.. [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> struct queue_node { char word[11]; struct queue_node *next; } node; struct queue_node …

Member Avatar for Ancient Dragon
0
102
Member Avatar for fistpunch
Member Avatar for efronefron

I have already included string.h, I've even tried defining GNU but I still get the same warning/error when I compile it. below is not really code, its the warning/error I get [CODE]bravo:~/60-141/Assignment/Assignment3>cc assign3.c "assign3.c", line 94: warning: implicit function declaration: strndup Undefined first referenced symbol in file strndup assign3.o ld: …

Member Avatar for efronefron
0
851
Member Avatar for hohoho89

Hi, I was wondering how to make client connect to multiple servers. I decided to use select for this but I don't see how it should work well like in the server. Pseudocode: void connect_to_server(char argv[]) { if ((sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == ERROR) { perror("socket problem: "); exit(1); …

Member Avatar for rubberman
0
141
Member Avatar for lochnessmonster

i'm currently wanting to do this in C. store the following into a giant string "======================" '\n' "Month : " [B]st.month[/B] "/n" "Day : " [B]st.day[/B] I could do this easily if i didnt have members of a structure that i need to obtain their value(they are bolded). How do …

Member Avatar for rubberman
0
111
Member Avatar for Dr_Anonymous

Hey guys i have been working on a report card program lately and i hit a hard place i used a do-while but i cant restrict characters from being posted without the program crashing and i don't wanna be monotamous so can u guys help heres a piece of the …

Member Avatar for Adak
0
109
Member Avatar for cse.avinash

" After I have compiled my program I have an executable file. To execute it from the command prompt: test.exe <test.in >test.out Where test.exe is the name of my compiled executable, test.in is a text file for input, test.out is a text file that your resut will be output to. …

Member Avatar for Adak
0
1K
Member Avatar for jmk5

Hi all, I'm posting about an error I guess is pretty common, and I've done a Google and forum search before posting, and have spent ages trying to sort this myself. Just thought I'd clear that! I have a program program that runs off the terminal, adds two numbers together …

Member Avatar for jonsca
0
5K
Member Avatar for Phesojon

I can't run my program using this code. Please help me to edit it with the same function. Thanks in advance. [CODE]#include<stdio.h> #include <stdlib.h> main() { FILE * fp; int bmenu,amenu,an; float balance=0,deposit=0,withdraw=0; char c,quit,name[50],address[50]; clrscr(); printf("**********BANK MENU**********\n"); printf(" ---- ---- \n"); printf("What do you want to do?\n"); printf("[1] Log-in …

Member Avatar for rubberman
0
229
Member Avatar for himgar

I want to print the following sequence. __* _*** ***** _*** __* Here _ denotes space. I have written half program to print upto 5 stars and not able to get for down. [CODE] #include <stdio.h> void main() { for(int i=1;i<=3;i++) { for(int j=1;j<=3-i;j++) printf(" "); for(int k=1;k<=(2*i-1);k++) printf("*"); printf("\n"); …

Member Avatar for L7Sqr
0
89
Member Avatar for vineeshvs

1.[ICODE]#include<stdio.h> #include<math.h> #include<stdlib.h> double **memalloc(int M,int N); main() { int i,j; double **a; a=memalloc(2,2); printf("a\n"); for(i=0;i<2;i++) { printf("\n"); for(j=0;j<2;j++) { a[i][j]=i+j; printf("%f\t",a[i][j]); } } } //FUNCTION-memalloc double **memalloc(int M,int N) { int i; double **y; y = malloc(M* sizeof(double *)); if(y == NULL) { printf("out of memory\n"); return 0; } …

Member Avatar for vineeshvs
0
259
Member Avatar for dizzyboy

Im a beginner in C,Can anyone help me? :?: I have problems when I encounter double or multiple spaces between words. [CODE] #include <stdio.h> FILE *fpr; int main(int argc,char *argv[]) { if ((fpr = fopen(argv[1],"r")) == 0) { printf ("\nFile %s Don't Exist!\n", argv[1]); } fprintf (fpr,"%d",count()); return(0); } count() …

Member Avatar for dizzyboy
0
212
Member Avatar for fab2

[ICODE] Hi, I am having problem in getting a menu' on the screen by using a function. At the compiling time I do not get any error but at the running one it doesn't produce any result. Here the code:[/ICODE] [CODE] #include<stdio.h> void day_menu(); int main() { day_menu; return 0; …

Member Avatar for fab2
0
110
Member Avatar for cayman

Hi there folks I have done quite a bit of C programming for embedded environments and PC console programs but never for windows applications and only once before with the PC COM port. When I did program for the COM port before it was on older machine, and used conio.h …

Member Avatar for Ancient Dragon
0
699
Member Avatar for shinsengumi

Can anyone help me learn how to create a directory in C? Right now I have a program that writes to a file, and now I need to create a directory to store the file. My operating system is Windows XP. Sample programs, commands, links to tutorials will be greatly …

Member Avatar for Ancient Dragon
0
214
Member Avatar for s†ig†rex

hey guys.,i want to make a guessing game in turbo c, with a range of 0-100, the program should guess, or the person guesses.,

Member Avatar for ndeniche
0
59
Member Avatar for themask18

Hi Brothers and Sisters in C programming, I consider myself a advanced-beginer of C programming. I wish to improve my knowledge to become even better, so I need you guys to suggest me some books that may help me be like you guys, an advance programmer in C..Thanks!! Cheers, themask18

Member Avatar for themask18
1
155
Member Avatar for rjbrjb777

hello friends, I have generated a csv file with 27 columns. third column is of time and i want to sort all the data according to this column in ascending order. so can you please tell me how to do this.? i have no clue where i should start. i …

Member Avatar for WaltP
0
4K
Member Avatar for NickJoe

So after many hours of mulling this over and now missing several hairs that used to populate my head, I decided to seek outside help. In my introduction to computer systems class, we have been tasked to do things that are built into the language without using them. I understand …

Member Avatar for gerard4143
0
278
Member Avatar for oab2003

The code below was written using C++.NET framework. How will the code be completed to retrieve all the records from microsoft access 2003 table PROFILE and display them in a form? [CODE] private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { ADODB::Recordset ^ rst=gcnew ADODB::Recordset; ADODB::Connection ^ conADO; Object ^ obj; String …

Member Avatar for Ancient Dragon
0
180
Member Avatar for Marcial

I wrote the code below and it runs well. However, how do I make it so that 'Jeanne' enters her own name instead of the numeral 01 to get the message 'Welcome Jeanne'? Thank you. // This program assigns a code to 'Jeanne' (analogous to a pass code) [CODE] Actual …

Member Avatar for Marcial
0
205
Member Avatar for servooo

Hi, i have a problem with getline function in cpp program on os x Error: main.cpp:158: error: 'getline' was not declared in this scope i read that in os x are some issues with getline() function but i am newbie and i dont know what to do. is possible to …

Member Avatar for gerard4143
0
385
Member Avatar for fadi_1234
Member Avatar for fadi_1234
0
145
Member Avatar for zhyne06

my prof ask us to make a code for the game FLAMES using function oriented program.wherein the prog. will count the number of same letters to be cancelled in each name and will print the result. ex. julie ann :2 mjhay :2 marry i dont know whats wrong w/ my …

Member Avatar for zhyne06
0
284
Member Avatar for plang007

How do I change it so that it will only say how many times the program has ran once I typed another key then [B]y[/B]. Output: ================================= Programmer Name: Peter Langlands Program 3 Description: CS 150 Spring 2011 Lab CRN: Date: ================================= Enter an nonnegative number: 10 a0 = 10 …

Member Avatar for plang007
0
341
Member Avatar for plang007

How would I make this program that it tells me the number of odds or evens. I only have 1 number at the time, so I need it to either say 1 odd or 1 even. [CODE]#include <iostream> #include <fstream> using namespace std; void printInfo(); int nonNegative(int a, int k); …

Member Avatar for plang007
0
1K
Member Avatar for n3red

Ok in a simplex txt file i have some text written in all capital letters. Now i need to take that text convert it to lowercase and then ucfirst in this way. Ex: MY NAME IS MIKE AND I GO TO LIBRARY EVERY DAY. I ALSO LIKE PIE. Now i …

Member Avatar for abhimanipal
0
125
Member Avatar for localp

I need to create a array of type [ICODE]unsigned short[/ICODE] and the values that i am going to set in there is in Hexadecimal. for example: 0x733D , 0x995c etc. there are 2 things i wish to do here; 1.) create an [ICODE]unsigned short[/ICODE] array and initialise the above mentioned …

Member Avatar for gerard4143
0
94
Member Avatar for taumang

x =5 while(x<7) print the value of x x=x+1 while(x>2) print the value of x x=x-2 so i was thinking that the output of the program will be 5677753 but my program is against my opinion so i want to know the right output #include <iostream> using std::endl; using std::cin; …

Member Avatar for taumang
0
307
Member Avatar for taumang

hi,please help me with this program ,iwant it to print values of x not x #include <iostream> using namespace std; int main() { int x = 5; while(x < 7) { std::cout<<" value of x"<<'\n'; x=x+1; } while(x > 7) { std::cout<<" value of x"<<'\n'; x=x-2; } return 0; }

Member Avatar for Ezzaral
0
106
Member Avatar for n3red

Hi, I have a small problem after working on my program last night i found out that C does not have any function that uppercase first character in a word. So i have been trying to split each word in to characters and uppercase the first word but it keeps …

Member Avatar for Narue
0
327
Member Avatar for kiranroy

[B]I want to draw geometric diagram like straight line,triangle,circle etc using C language.I want some help for coding n algo....:)[/B]

Member Avatar for kiranroy
0
103
Member Avatar for Khoanyneosr

[CODE] // Hangman Redo Program #include <iostream> #include <string> #include <cstdlib> #include <ctime> #include <string> #include <algorithm> using namespace std; //Functions void welcome(); void instructions(); void game(); // Types and Arrays string choice; string inst; int main() { welcome(); return 0; } void welcome() { cout << "\tWelcome to Hangman …

Member Avatar for Narue
0
233
Member Avatar for arun_taurean

Hi cryptographers, I'm currently working on AES.I have got codes for Encryption and Decryption separeately.But my problem is that i want to use a single function that is able to do encryption and decryption.If any codes available,please send it.

Member Avatar for arun_taurean
0
467
Member Avatar for chenka

Hello I would to convert String number="((5+5)*6)/2" to integer because I get value from read file and keep in string Help me please. T_T

Member Avatar for dkalita
0
80
Member Avatar for dreamsky999

Hello guys. I would require a little help here in my codings. The program is basically calculating the parking fare for customers who park their cars in a parking lot. In function 'void calc_rate(int ,int, int , int ,int,int, int)' At line 95, it shows a function-definition is not allowed …

Member Avatar for charlybones
0
117

The End.