15,552 Topics

Member Avatar for
Member Avatar for plike922

I need help with program i cant find a way to get rid of the error and if i think a little bit more my head will explode this is a 2day program for me [CODE]#include <iostream> #include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" #include "string.h" using namespace std; …

Member Avatar for rpiper138
0
81
Member Avatar for JONZ

Can anyone help me make a pseudocode for this function....cause its really difficult:'( [CODE]int updateRecord( FILE *fPtr ) { int account; /* account number */ double transaction; /* transaction amount */ /* create clientData with no information */ struct clientData c = { 0, "", "", 0.0 }; /* obtain …

Member Avatar for rpiper138
0
171
Member Avatar for ashkash

I am trying to write some information out to a file. I have a string in hex values and I need to write this out to the output file. The hex string I have is 4b70 4772 64. The string equivalent is KpGrd. I have: char a[] = "4b7047726400"; Then …

Member Avatar for ArkM
0
91
Member Avatar for Mumo

can anyone show me how to go about this. I've been trying to use a log to base 2 in c. the code atually works but it requires me to type in a char after typing the number i'm getting the log of [code=c] #include<stdio.h> #include<limits.h> #include<math.h> void main() { …

Member Avatar for ArkM
0
96
Member Avatar for Avaleriona

Write a program that inputs a line of text and uses stack object to print the line reversed. I found this C question in: [url]http://abhaygoel.wordpress.com/c-dac-ent[/url]... I have difficulty to solve it, anyone can help!

Member Avatar for Narue
0
170
Member Avatar for cutedipti

what dose the error " Null pointer assignment" means and what causes this error?:idea:

Member Avatar for Ancient Dragon
0
65
Member Avatar for shinta13

I'm completely new to C & need some help =( I want to make this clear.... This is a homework project that I'm stuck on so if you feel this is "cheating" then sorry for "offending" you. How can I change the tax rate in the executable file? This is …

Member Avatar for stilllearning
0
100
Member Avatar for anuj_sharma

Hey Guys, Can anyone tell me hoe to use database connectivity in C or C++. Any web links would be better.

Member Avatar for Salem
0
68
Member Avatar for msundastud

hey guys..I'm trying to teach myself to writee code using C. The program I am working on now is to write a program that prompts a user for his/her age and then prints a message based upon the age range that the user’s age falls into here is the age …

Member Avatar for msundastud
0
61
Member Avatar for botter911

I have some simple questions: 1) How can I restart my program immediately. For example, when the user press F12 it will restart immediately even if the program is not complete. 2) In scanf the problem is: for example: Height Width enter the perimeter: 2 3 < the Cursor moves …

Member Avatar for Ancient Dragon
0
247
Member Avatar for sneekula
Member Avatar for Ancient Dragon
0
99
Member Avatar for IrishUpstart

Hi Gang! I am new to the forums, and programming in general, so I apologize forthright if I am slow or just plain dense on anything/everything. With that disclaimer gotten outta the way, I have an assignment and I am not sure what exactly how to execute it. The problem …

Member Avatar for stilllearning
0
650
Member Avatar for flipjoebanana

Hello, I am trying to incorporate the use of a batch file towards my program. For this I just want that after the program has starting running to send the file content's to stdin, in which case the program should do the rest? Is this possible, how so? Or should …

Member Avatar for flipjoebanana
0
154
Member Avatar for ballinloughan

Hi There, I have a piece of code that is confusing me and would appreciate any advice: Reg1 is an 8 bit register Bit0 is bit 0 of Reg1 Line of code that I am having trouble understanding: Reg1 &= ~(1<<Bit0); This is what I think the answer is: Asume …

Member Avatar for ballinloughan
0
107
Member Avatar for cutedipti

h! friends i am not gettin output for below program.. it shows [B]segmentation fault[/B]...:-O can any one suggest me on this.... [code=c] #include<stdio.h> #include<string.h> int main() { char *str1="United"; char *str2="front"; char *str3; str3=strcat(str1,str2); printf("\n%s",str3); return 0; } [/code] thanks:)

Member Avatar for ithelp
0
89
Member Avatar for JONZ

Can anyone add some codes in my program so that it could output a receipt which would display the name of the items bought with their price..:) [CODE]#include<stdio.h> int item_details (); int payment (int x); int add_item (int x); int main () { int choice,price; printf("Enter 1 to buy.\n\n"); printf("Enter …

Member Avatar for Ancient Dragon
0
211
Member Avatar for cutedipti

H! plz solve a problem..............! See I want to take continuous four input from the user, out of which three are character type and one is of int type. So my problem actually is that, it accepts only three input i.e. 2 char and one int & for remaining char …

Member Avatar for cutedipti
0
109
Member Avatar for godloverails

Here is a data file like this,please help me update my code to omit all comments stored in the file.sample file looks like this: C:\\s1.txt #author:Single Ray #data:02-2-10 141.641, 567.614, 24.25 140.939, 567.736, 24.25 #start 140.053, 567.947, 24.25 148.985, 568.352, 24.25 #end .... Im sorry,forgot attach my codes,here is my …

Member Avatar for Salem
0
155
Member Avatar for syuk

Hello C program Gurus... i have problem with my programming. i can run my prog but its something not right... my prog is to make an automated reservation system program to assign seats on flight of the plane that have apacity 10 seats. the program should display the following menu …

Member Avatar for Salem
0
145
Member Avatar for vibgyor

Hi, I am have trouble in Array of pointers to structure. I have defined as structure. typedef struct { char * name[5]; int number; }mystr; I have defined an array of pointers to this structure.( is this correct ?) mystr (* myptr)[5]; To fill the values, i have to pass …

Member Avatar for Ancient Dragon
0
107
Member Avatar for Hannahlv

Hi, everyone! I'm doing a p2p streaming project. This project is actually about : the server and client will connect first (socket created), after connect then client will receive the IP address of another client from server, then those 2 clients connect together and start streaming. I can write the …

Member Avatar for Hannahlv
0
420
Member Avatar for helixneu

Hi I want to read a two huge integer input from user & wanted to display output on the screen can any one help me ? eg : int a=8132123781237; int b=1237829789; result = a *b ; print(result); ????

Member Avatar for iamthwee
0
90
Member Avatar for Clockowl

Howdy folks, Does anyone know if GCC is capable of creating a fixed length 1D array of an N-Dimensional array for reasons of speed? I've heard it matters quite a lot if one works constantly with N-Dimensional (with N != 1) compared to 1D arrays in terms of speed, but …

Member Avatar for grumpier
0
86
Member Avatar for jits_aps90

Some numbers like 1,2,3,4,.... are provided from the command line. Considering them to be roots of a polynomial of that degree< equal to number of roots > , i was trying to find the coefficients of the constructed polynomial, i was using the concept of multiplication of two single degree …

Member Avatar for jits_aps90
0
96
Member Avatar for plike922

run it type hello, press enter then type end in a c ompiler [CODE=c]#include <stdio.h> #include "strlib.h" #include "simpio.h" #include "genlib.h" #include "string.h" #define size 50 void reverse(char rev[]); int main() { char rev[size], i; printf("Please enter a sentence and end the sentence with a enter than end \n"); reverse(rev); …

Member Avatar for Aia
0
143
Member Avatar for agentx

hallo! ppl plz help me write the pseudocode for the following problem! im new at this and have no clue how to do it! the assignment is due tmrw so quick help will b appreciated 1) enter 55 test scores and print how many were passing scores(50 or more)and how …

Member Avatar for Narue
0
108
Member Avatar for Demonisya

Hey....Help me in this one please... I have to encode something that the output will come out as example....10, 8, 6, 4, 2, 0..... please help me what I did wrong....Thanks ...and I like to thank Narue too...for helping me in my last problem....I have to do this without using …

Member Avatar for Demonisya
0
289
Member Avatar for devnar

I found the following code in the 'Code snippets' section( written by nanodano). i tried compiling it in my Dev-Cpp compiler, and i got the output as shown in the attachment for up, left, down and right arrow keys respectively. All other defined keys i.e., F1 to F10 gave the …

Member Avatar for devnar
0
196
Member Avatar for plike922

please help with this program i dont know whats wrong. [CODE]#include <stdio.h> #include "strlib.h" #include "simpio.h" #include "genlib.h" #include "string.h" void reverse(void); int main() { printf("Please enter a sentence and end the sentence with a -\n"); reverse(); system("Pause"); } void reverse(void) { int ch; if(getchar(ch) != EOF) { reverse(); putchar(ch); …

Member Avatar for Aia
0
92
Member Avatar for marcosjp

Hello there! I wrote a small program in C on Windows using DevC++. It works perfectly, but when I try to run it on Linux I get compiler erros at these lines: [code=c]void printOctets(int octets[][], char []); void printInterval(int suntwk[][], int brdc[][]); [/code] This is a college assignment and I'm …

Member Avatar for marcosjp
0
100

The End.