15,539 Topics
| |
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: | |
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? | |
would there be any drawbacks, or would it simply be bad form, to divide the implementation of a particularly large class into several files? | |
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 … | |
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!! | |
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?? | |
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 | |
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! | |
Hi I want to know... can we able to create array of files and how ????????? | |
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?????????? | |
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 … | |
PLzz guide me.....How can i produce MIDI sound through external speakers using sound card.. | |
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. … | |
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 … | |
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. | |
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 … | |
How do I make a greeting a named constant rather than a literal constant? | |
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 … | |
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 … | |
: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 … | |
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 | |
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" … | |
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 … | |
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 … | |
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 … | |
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; | |
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; … | |
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 | |
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 … | |
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 … |
The End.