19,876 Topics

Member Avatar for
Member Avatar for vistatic

How can i write the coding for a reversive of a given integers. for example: char str[] = "012345"; Reverse( str ); printf( str ); then the output will be displayed as [B]"543210" [/B] i need pointer as well to null-terminate string as a parameter and reverses this string. then, …

Member Avatar for meabed
1
361
Member Avatar for vienne

i'm having a problem with below recursive code. there are 4 chars stored in a array, 'a', 'b', 'c', 'd'. input is between 1 and 16, and output should look like this: when input is 1: a b c d when iput is 2: aa ab ac ad ba bb …

0
62
Member Avatar for Naveen

Hi. can anyone tell me where to find a good tutorial for modem and i/o port programming?

Member Avatar for meabed
0
74
Member Avatar for Fili

I want to have a class LIST -- a dinamic list of rational numbers (defined previously in my RATIONAL class). I want another class STACK to inherit LIST's root and end pointers for my list.(STACK also is dinamical) Please help because it says that STACK cannot access the root and …

1
108
Member Avatar for yadi

hi everybody i have a homework to write a program which displays leapyear it is for tmorrow pls anybody send it for me thanks in advance

Member Avatar for alc6379
0
146
Member Avatar for acidburnt

weight fast-post normal courier <500g RM0.80 RM0.45 RM0.65 500-999g RM1.20 RM1.00 RM1.10 1kg-4.999kg RM1.50 RM1.35 RM1.60 >=5kg RM2.75 RM2.00 RM2.65 "Base on the cost of postage above,we have to write a c program for the mailing pakage. here i have some problem about the codding of c programming.i'm a computing …

Member Avatar for Killer_Typo
0
125
Member Avatar for abd2

hi, This is the code to be changed to conditional operators: #include <stdio.h> main() { int x, min, max; printf("Enter val for max and x\n"); scanf("\n%d%d",&max,&x); if(x>max) min=max; else min=x; printf("%d\n",min); } the above code is runing but problem is when changed to conditional operators: #include <stdio.h> main() { int …

Member Avatar for Dave Sinkula
0
163
Member Avatar for dennis_89

Is there a way to modify an exe file if you don't know what program the file was created in? I guess what I am asking is if there is a generic program to modify/change information within an exe program? Dennis

Member Avatar for bentkey
0
92
Member Avatar for Eddie
Member Avatar for Milou

BEGIN +$#Using online Help To identify a tool or control: Position the pointer over a tool or control and pause. A tool tip appears showing the name and keyboard shortcut (if any) for the item. If tool tips don’t appear, the preference for displaying them may be turned off. See …

Member Avatar for samaru
0
90
Member Avatar for NIHAR RANJAN

[COLOR=DarkGreen][SIZE=6][B]POINTER[/B][/SIZE][/COLOR] [COLOR=DarkOrange][SIZE=3]INTERDUCTION::[/SIZE][/COLOR] [SIZE=2][COLOR=DarkOrange]Pointer is a variable that can hold address value. Pointer to integer is not type of integer A questain may arises to your mind that why Pointer variable is not declare like “pointer

0
65
Member Avatar for RaftingBear

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. :-|

Member Avatar for alc6379
0
104
Member Avatar for abr
Member Avatar for nufanvandal

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, …

Member Avatar for red_evolve
0
276
Member Avatar for MAD_DOG

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 …

0
88
Member Avatar for datk0m

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?

Member Avatar for meabed
0
70
Member Avatar for pheks

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. …

0
68
Member Avatar for gichangA

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.*

0
69
Member Avatar for datk0m

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 …

Member Avatar for red_evolve
0
154
Member Avatar for oujmjyu

:( 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 …

Member Avatar for oujmjyu
1
355
Member Avatar for awmp-jansen

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[]) …

Member Avatar for Dave Sinkula
0
130
Member Avatar for Richard Wong

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 …

Member Avatar for Chainsaw
0
82
Member Avatar for COTSIOS

I keep getting the same error message when Windows XP starts: C:\system32\bridge.dll module cannot be located. I have run hijackthis and my log is as follows: Logfile of HijackThis v1.97.7 Scan saved at 04:33:48, on 24/06/2004 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP1 (6.00.2800.1106) Running processes: …

Member Avatar for crunchie
0
185
Member Avatar for mike3x1

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, …

Member Avatar for K-1
1
192
Member Avatar for Fili

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:

Member Avatar for Fili
0
224
Member Avatar for EvilSp0rk

Okay. I have windows version 2000, Service pack 4. Custom built computer. Last few programs are...well Trillian Pro, and bit torrent. My problem is that everytime I start my computer I get the error "C:\WINNT\system\bridge.dll Cannot be found" I read on another thread on this site that It's spyware, and …

Member Avatar for DMR
0
159
Member Avatar for minnie

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

Member Avatar for FireNet
0
106
Member Avatar for fasteddie19793

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 > …

Member Avatar for fasteddie19793
0
171
Member Avatar for tlee

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, …

Member Avatar for tlee
0
175
Member Avatar for Bleek

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 …

Member Avatar for FireNet
0
154
Member Avatar for onickel
Member Avatar for onickel
1
116
Member Avatar for stevo823

ok i got a problem i used adaware 6.0 and deleted a lot of problems now i keep getting this error message C:\system32\bridge.dll module cannot be located ....i have hijack this.....here is a copy of my registry........can someone please help me.........thanks

Member Avatar for DMR
0
120
Member Avatar for ht1

Hello, can anyone help? I keep getting the message: C:\system32\bridge.dll module cannot be located on start up of windows XP. I've run Ad-aware 6 and Hijackthis and this is my log: Logfile of HijackThis v1.97.7 Scan saved at 09:47:59, on 05/06/2004 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: Internet Explorer …

Member Avatar for ht1
0
162
Member Avatar for hkpkguy

[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 …

Member Avatar for Killer_Typo
1
228
Member Avatar for dw85745

Is there anyway to debug a link error? After looking up LNK 2005 in MSDN where do I go next?? Thanks David

Member Avatar for FireNet
1
121
Member Avatar for BlackDice

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";) } ; …

Member Avatar for Dani
0
113
Member Avatar for dooda man

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 …

Member Avatar for FireNet
0
153
Member Avatar for LittleTomboy

[B]I keep getting the same error message when Windows XP starts: C:\system32\bridge.dll module cannot be located. I have run hijackthis and my log is as follows: Logfile of HijackThis v1.97.7 Scan saved at 2:20:32 PM, on 5/22/2004 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP1 (6.00.2800.1106) Running …

Member Avatar for DMR
0
361
Member Avatar for Saleh

Is there any reference or step-by-step tutorial available on-line showing how to control CD-Drive tray? thanx in advance.

Member Avatar for Yzk
0
113
Member Avatar for keir.whitlock

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 …

0
95
Member Avatar for FattMarrell

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 …

Member Avatar for FattMarrell
1
155
Member Avatar for meabed

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)? …

Member Avatar for meabed
0
184
Member Avatar for priya

Hello everyone, iam a new one into this forum. Can anyone tell about what is the significance of programming c in UNIX

Member Avatar for alc6379
2
86
Member Avatar for sboothman

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 …

1
73
Member Avatar for meabed

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 …

0
135
Member Avatar for bones

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 …

Member Avatar for infamous
0
209
Member Avatar for FireNet

How many of you guys belive it is possible to program a server and create within it a simple environment in which people can write their own pieces of code and complie it without problems. This server should be capable of using multiple 'plugins'(the pieces to code which others write …

Member Avatar for FireNet
0
162
Member Avatar for dirs

Blackjack class is derived from card class ( see attached playingcard.h and blackjack.h) I have problem with: void blackjack::DealCards() function. I want to use function deal_hands from card class to set the value of pcard1 pcard2, dcard1 and dcard2. How could I do that???

Member Avatar for BlackDice
0
136
Member Avatar for keir.whitlock
Member Avatar for marceta

Hi guys, im new to this forum but congratulations, i looks great Im making a game for a TAFE class (which i will gladly send to any1). The game is a text based Role Playing Game. I am finished early so i am going to improve my current game. I …

Member Avatar for marceta
0
295

The End.