15,539 Topics

Member Avatar for
Member Avatar for Bill T

Im trying to find the circumference of a circle and the area whe i runn the program need help starting and help with area can some one help please Im new and dont have a clue with c :sad:

Member Avatar for Bill T
0
132
Member Avatar for GDFans

Im writing a programme in graphics mode using BGI.I want to get inputs from user and display it on screen,like text mode does.But fuctions such as scanf() cannt work any more.Can anybody give me a solution?

0
126
Member Avatar for elspork

would there be any drawbacks, or would it simply be bad form, to divide the implementation of a particularly large class into several files?

Member Avatar for Chainsaw
0
80
Member Avatar for elspork

What I'd like to know is if there is a way to tell how much space I have available in the stack and put that size into a variable. ie long x = [stacksize] I think I may have a poor understanding of how memory management works, so forgive me …

Member Avatar for Chainsaw
0
171
Member Avatar for scott_6169

I just wanted to post this thread and let you guys know that I really appreciate the help you have given me. Your advice was great!!

Member Avatar for Stack Overflow
0
69
Member Avatar for Tomás

I'm useless at programming so could someone help with simple programes for calculating the aresa under a curve ie "Integral" and one for reading words from an infile sorting them alphabetically and prenting to an outfile??

Member Avatar for kc0arf
1
103
Member Avatar for meirre

troubled about this: i need help on how can i display the number of times a value appear in array ex: number[3][3]={{1,2,3},{2,3,4},{3,4,5}} 1 appeared 1 time(s) 2 appeared 2 time(s) 4 appeared 2 time(s) simple tips would do....thanks

Member Avatar for Dave Sinkula
1
90
Member Avatar for rdn2113

Just wondering about the best way to capture keyboard input from a CEdit or CComboBox control. Any ideas from those who have already invented this wheel would be appreciated. Thanks!

Member Avatar for rdn2113
0
130
Member Avatar for dhanashree

Hi I want to know... can we able to create array of files and how ?????????

Member Avatar for kc0arf
0
199
Member Avatar for dhanashree

how to increment file pointer .... suppose i want to read the 1st possition in the file and then the 64th position ..how to do that??????????

Member Avatar for frrossk
0
126
Member Avatar for smarkles

Our instructor asked us why its important to be able to replace values in a pointer........Here is what I came up with... By using a pointer, a block of memory is allocated at runtime, therefore a program can be more flexible than one that allocates all its memory at once(read …

Member Avatar for Stack Overflow
0
186
Member Avatar for Shahzad Shakoor

PLzz guide me.....How can i produce MIDI sound through external speakers using sound card..

0
78
Member Avatar for Transworld

I need to make a program for school and I have no idea how to make it. I am supposed to do: [QUOTE]A right triangle can have sides that are all integers. A set of three integer values for the sides of a right triangle is called a Pythagorean triple. …

Member Avatar for Transworld
1
7K
Member Avatar for lin-da

I had such code to copy three 2D arraya around by using pointers like below, but it seems all three pointers are pointing to the same memory address. How can I get it correctly? float **U_past, **U_future, **V_past, **V_future, **U_pp, **V_pp; In construct : U_past = new float*[a]; //a=100 U_future …

Member Avatar for Dave Sinkula
1
96
Member Avatar for johnny2k

I need help in creating a program in C which tells whether the user pressed the Insert, Caps, Numlock, Alt, Ctrol, Left Shift and Right Shift... I would appreciate any help.

Member Avatar for johnny2k
1
131
Member Avatar for danny_froud

Hi, I confess I am stuck. Can anyone see a problem with the following code, to be run under Linux, compiled with g++ ? #include <stdio.h> #include <sys/types.h> #include <sys/times.h> int main () { struct tms tmp; times(&tmp); printf("stime %d \n",tmp.tms_stime); printf("utime %d \n",tmp.tms_utime); return(0); } The code compiles and …

Member Avatar for danny_froud
0
123
Member Avatar for cford
Member Avatar for alc6379
1
113
Member Avatar for littletimmy

I have a problem which is outlined below. I get an unhelpful memory dump. I have 2 questions. Why doesn't the memory dump contain the line number as it should. And why am I geting memory dumps without ever using new or malloc or any such functions. This is being …

1
128
Member Avatar for big146

Im thinking of writing( or attempting to write ) a routing program for delivery trucks. I was wondering what the best way to go about this would be? I would like to use zipcodes, but I would also need that lattitude and longitude to be able route them in some …

Member Avatar for Chainsaw
0
93
Member Avatar for damionspencer

:mad: :mad: :( :( I've been trying to write this program that is suppose to read in a text file manipulate in and give the following out put infact here is the question Implement a program that uses a form-letter template to generate form letters. Your program should read in …

Member Avatar for Dave Sinkula
2
176
Member Avatar for Sukhbir

Can someone explain me how these character or escape sequence are treated while finding string size(through sizeof() operator) \0 \n \a \1 \2 for example char str[]="\1abc\0\0" pls explain me in detailed

Member Avatar for Dave Sinkula
0
142
Member Avatar for Guanajuato

Hi, I´m using Miracle C Workbench to create an administration project. I used several files to save my project in parts, one for main, one for sales, etc. In the main file I used "include" to join all files, but when I compile it, it shows "SOURCE FILE TOO BIG" …

0
98
Member Avatar for Asif_NSU

I can read which key is pressed using getch(). For example i can read whether left arrow is pressed or not. But i want know whether both left arrow and up arrow is pressed at the same time or not-- I want to move an object diagonally across the screen …

Member Avatar for gusano79
0
180
Member Avatar for BountyX

I have a list view report style. Im trying to sort by click on a header. For some reason it does nothing. This Peice of code is invoked when the column is clicked. [CODE] if (pnm->hdr.code == LVN_COLUMNCLICK) { //DialogBoxParam(ghInstance, MAKEINTRESOURCE(IDD_SORT), // NULL, (DLGPROC)SortDlgProc, 0); if(nSortDir[pnm->iSubItem]) nSortDir[pnm->iSubItem] = false; else …

Member Avatar for BountyX
0
911
Member Avatar for DietFist

Does anyone know of any good libraries that will handle establishing a HTTPS connection? I really don't have the time to get in and learn how to send HTTP packets let alone worry about encryption, so if someone could suggest something that would be great. I'm also looking to set …

Member Avatar for FireNet
0
107
Member Avatar for alexmejia92

I have my program until that point and I can't finished, please someone helps me to finish my homework #include <stdio.h> int main () { int x, y; x = 6; y = 2*x*x*x+5;

Member Avatar for Dave Sinkula
1
80
Member Avatar for alexmejia92

I need to write a C program `(a) declare two integer variables , and y` `(b) lex x = 6` `(c) find y value use the following algebraic fromula: y=2*x*x*x+5 ` and I only have until these part #include <stdio.h> int main () { int x, y; x = 6; …

Member Avatar for Killer_Typo
0
109
Member Avatar for alexmejia92

I really need help I'm student from college and I need to write a C program a) declare two integer variables x and y b) let x = 6 c) find y value use the following algebraic formula y=2x (third power) + 5

Member Avatar for Chainsaw
1
313
Member Avatar for fromchina

typedef struct _mib_info{ int mib_vartype; Bool mib_writable; Bool mib_varleaf; [COLOR=DarkOrange] int (*mib_func)( struct _mib_info *, char );//pointer[/COLOR] char *mib_func_param; struct _mib_info *mib_info_next; }mib_info; mib_info mib[] = { { 2, FALSE, NLEAF, [COLOR=DarkOrange]snleaf[/COLOR], 0, 0}, // } ; /*-------------------------------------------- There is a mistake in GetID():indirect call: parameters do not fit within …

Member Avatar for Chainsaw
0
111
Member Avatar for Brent_Ritterbec

I wrote a program that allows me to send data to a file if I wanted to do that by redirecting the data stream. The only problem is that I can't figure out how to make that work from the DOS prompt. Here is the program: /* echo_eof.c -- repeats …

Member Avatar for Chainsaw
0
155

The End.