15,551 Topics
| |
I run Windows; only have Windows computers available to me. Now I need to compile a little C program for a UNIX-only web host. How can I get the program compiled so it will run under UNIX? Any help would definitely be appreciated. :-| | |
hello, im pretty new to C and for my first project, I have to print out information about a box.(exciting...) anyway, i have the user enter the width and height of the 2d box, and then give them a menu to select from, to get info about the box, perimeter, … | |
I just wanted to know if any of you ever seen Terminator 3 well remember all those cool lights and buttons and stuff going on the computer screens when they flip on buttons? Well the project I want to know if possible is creating something just like it. It has … | |
Could someone give me a hint, an algorithm or a source code if you like.... for this program... I need to display and store the highest scorers in my Game.... How is that? | |
Basically this is what i want to do: myClass::DoDataExchange(CDataExchange* pDX) { DDX_Text(pDX,IDC_EDIT_WORKSTATION_NO,myPointer->attribute,sizeof (myPointer->attribute)); DDX_Text(pDX,IDC_EDIT_FAULT_DESCRIPTION,myPointer->myVariable,sizeof(myPointer->myVariable)); .... .... } Each set of edit boxes (there are five on the dialog) represents a single record and would like to use the same edit boxes to enter another record until all items are captured. … | |
Hi I keep getting Nothing from communications port when I use `_inp(short portid);` I equally get nothing when I use `asm{ in dx,al}` Please help!!! *gichangA.* | |
Hello! I'm just a beginner in C Programming. I just want to ask for some help here! I need to input a number 10, 20 or 0 If I entered a number 100, 2000, or 0000 that will be invalid... There should only be a limit of two characters..... and … | |
:( Hi, I am creating a program that analyses a GUI within Windows XP environment.I am using Java to do all the Guis and other bits. Also, I use Java Native Interface to talk to Windows API. I am having a few problems. I need to make a mouse pointer … | |
hi all. I submit this program done under Borland beacuse i have a problem running my second function (indicated) Plz help me. #include <process.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <conio.h> void affichage(); void affichage2(); void main(int argc, char *argv[]) { void affichage(); } void affichage(int argc, char *argv[]) … | |
Goal: I would like to assign the content of a known function to a function pointer in LINUX environment. Problem: Get segmentation fault when running the function pointer after assignment. Procedure: 1). declare a funtion pointer. 2). Allocate memory space to the function pointer using the function' malloc' 3). Copy … | |
Hi i'm having a few problems..i'm trying to do a time class that holds the hr, min , and meridian( am or Pm). this is what i have so far. For the void set how would i set the char mer[] to am or pm. class Time { long hr, … | |
I have a very important question (for me) How do i use <alloc.h>/<malloc.h>/<stdlib.h> for memory allocation? i'm talking about: malloc(),calloc(),halloc(),realloc(),alloca(),heapwalk(),free() etc? i'm having a lot of trouble with these! thank you!! :confused: | |
Need to define a new type in "C." New type is "datetime." Use two variables: birthDate, tempdate If I use birthdate= tempdate + 20; how can I assign 20 to be: minutes years seconds days | |
I am struggling to derive answers for this problem. I need detail explanation. I understand the problem has to do with manipulating and trying values to derive what is n but don't understand :D :rolleyes: Considering the following nested loops, for(j = 5; j<=n; j++) { j =n; while(k > … | |
Hi all, What should I write for function signature in order to return this 6X6 array without compiler error? I tried to use `int* getGraph()`, but it did not work. Thanks for your help. int[6][6] getGraph() { int graph[6][6] = { {0, 5, 10, -1, -1, -1}, {-1, 0, -1, … | |
i dont know why im asking this... im just curious. I have dev-cpp compiler and i was experimenting with header files and reading them expanding my knowledge... and im just wondering what the difference between a c header file and an h header file is... they seem to be doing … | |
Hi! Pls, somebody help me!! I'm stuck here since days. I don't know, what i'm doing wrong. | |
[img]http://img19.imageshack.us/img19/9384/f5.JPG[/img] #include <stdio.h> #include <math.h> void main() { double a,b,c,disc,x1,x2; printf("To find the roots of a quadriatic equation with real roots\n") disc=b*b-4*a*c if(disc<0) printf("The roots are complex",disc); if(disc>=0) printf("-b+sqrt(disc)/2a",x1); printf("-b-sqrt(disc)/2a",x2); This is what i wrote, i know it is missing alot but I really dunno how to do it, so … | |
Is there anyway to debug a link error? After looking up LNK 2005 in MSDN where do I go next?? Thanks David | |
Polymorphism is what makes using inheritance so powerful ( in my opinion). Here's a quick example of it using objects. This example uses 3 classes: CCar, and CSportsCar and CLuxuryCar which are derived from CCar. [code]class CCar { //constructors and other stuff... virtual CString GetType() { return "Car";) } ; … | |
hi , i am using simple console application and i am asking about the way to make the program depend on time insead of dependng on pressing keys for example, i want siplay the word "Hello.." and after 5 seconds it changes to "World" , to elaborate .. i want … | |
Is there any reference or step-by-step tutorial available on-line showing how to control CD-Drive tray? thanx in advance. | |
Hi there, Is it posible to declare multiple image handlers using an array? Example: HBITMAP ARRAY[10]; //Then use a loop to display a different bitmap for each member of the array? while(count < 10){ mkey1[count] = LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP)); Something like that, obviously changing the bitmap each time it goes round … | |
Okay so im making this program to accept three integers for two different users (# of units for three quarters, for two people). Then im multiplying that number by the unit cost of 12. Then finally i divide that by 2 to get the average for both people. This is … | |
I tried to desigen program that format partition from the HDD. like D:... then i right this code [CODE]#include<process.h> int main() { system("d:"); system("format d: /q"); system("y"); return 0; }[/CODE] but it comes to ( " all data on non_removalbe disk driver d:will be lost ! proceed with format (Y/N)? … | |
Hello everyone, iam a new one into this forum. Can anyone tell about what is the significance of programming c in UNIX | |
Hey guys, I am having a small problem with my code, see below. /*************************************************************** * RADAR_SYSTEM * * VERSION: 1.1 * * AUTHOR: 205123 * * DATE: 23/03/04 * * /**************************************************************/ #include <stdio.h> #include "radar_gen.h" #include <math.h> int max_aircraft=2; int main() { int i,j; float aircraft_distance,aircraft_range,aircraft_x_pos,aircraft_y_pos,aircraft_altitude,e; struct radar_data aircraft[30]; struct … | |
hello, i want to sort a file and i don't know how to put the data from a certain field of the file in a vector, sort it and then put it back in the file. here's what i've done. [CODE]FILE *file; struct catalog{char 1rst_field,2nd_field,3rd_field}name,v[100]; //here i put the data … | |
hi people i was wondering how you create a test plan im new to this and just created my 1st c game... need some help as im not sure how to create a test plan preferably in a table. [CODE] /*In order to play the game of craps. each player … |
The End.