49,766 Topics

Member Avatar for
Member Avatar for jahowell01

This program is supposed to print the sum, average, product, smallest and largest of three numbers. Please look at this and tell me where I am going wrong.

Member Avatar for jahowell01
0
251
Member Avatar for altheastronut

Hello, I need to write a script for a program I am running and I have never written on. I don't even know what commands scripts use, or what they even look like. Does anyone know any tutorials or example I could modify to fit my needs? Thanks, -Al

Member Avatar for Raven11
0
227
Member Avatar for JuanPabloD

I have got thsi program that is meant to help with a coursework project but i do not understand it fully, and consequently its not much help. The initial section confuses me the most. Is this just simple definitions for double arrays? I have annotated the lines in the code …

Member Avatar for jwenting
0
208
Member Avatar for Drowzee

Hello. Can anyone point me to a tutorial on how to properly organize header files? What I have (this time, I really can't post the code itself) is an MFC document class that contains a vector of classes that have an instance of a pointer to a base class (defined …

Member Avatar for Dave Sinkula
0
510
Member Avatar for finalyearGurL

Anyone knows if there's a program to automatically convert from C++ to matlab? Or are there functions in matlab which i can use such that i can call the c++ program in matlab environment? I got a huge chunk of programming codes, coded using perl and c++. From the matlab …

0
59
Member Avatar for iamboredguy

I have this project to do and I want to use coloured text and some simple shapes, etc. But the problem is that my compiler does not support graphics.h or dos.h. Even my tclite doesn't (I usually use BC5 windows version). Is there any way of correcting this problem? Or …

Member Avatar for vegaseat
0
162
Member Avatar for aripaka

Hi, I am new to this forum and this is my first message. I want to know can we accesss a database though C or C++. Are there any library files as such for the same. Its nice to see that there is a lot of knowledge sharing in this …

Member Avatar for proghelper
0
254
Member Avatar for SpS

Having return types of constructor means taking address of constructor(which is illegal)...can u explain me this....

Member Avatar for Narue
0
348
Member Avatar for sara.rythm

Hello Everyone, This is my first day here. I've not browsed the site yet. But I wanted to know the answer of these questions. I'd be glad if anyone of you can help me. 1.Write a C++ program without using any loop (if, for, while etc) to print numbers from …

Member Avatar for Dave Sinkula
0
942
Member Avatar for evilsilver

hey all, i am programmin in c++ (just so we are all on the same page lol) and using Borland compiler 3. ok here's my problem, i know how to open a file and save variables to it in order to save them for future program reference but i can't …

Member Avatar for Ancient Dragon
0
84
Member Avatar for Somfy

Hello, this is my first post ever sow please don't kill me right away but I am looking for some code to get started with ... I am a hardware guy :o but I would like to start using my basic knowledge on C++ for one of my personal project …

Member Avatar for Somfy
0
125
Member Avatar for ramcfloyn

Hello I'm interested in manipulating a *.tif file using C++. I am aware of libtiff which features library files and utilities for tiff manipulation but this seems largely C based and also i'm having trouble setting up the environment in borland builder 6. Does anyone have any other alternatives to …

Member Avatar for ramcfloyn
0
128
Member Avatar for kokopo2

Hi guys, do any of u know how to extract a certain amount of bits from a parameter(instruction) and return the bits as a integer in a range . for example i would like to extract the opcode field i would extract from bits 31 to 26. but if i …

Member Avatar for Dave Sinkula
0
1K
Member Avatar for shashankk

Can anyone pl. mail turbo c++ setup as attachment to << moderator edit: email snipped >>

Member Avatar for kc0arf
0
385
Member Avatar for leonn

i gat a mmogame called RF online but the game is in korean some pp translated a little of it but i wont to know how to do it so i can finsh it its a EDF file and i wont to add more maps to the server becouse the …

Member Avatar for kc0arf
0
98
Member Avatar for Sembiance

Hi folks :) I've been working on a C/C++ Source Code search website for over a year now, and just thought I'd let you all know that I put recently. It allows you to search over 136 million lines of open source C/C++ source code. It actually understands C/C++ syntax, …

Member Avatar for Sembiance
0
107
Member Avatar for bops

hi again people, im working on a simple program to look into a text file and output details about it. It seems to work fine for the first part but at the end of a while loop the code seems to stop working, i have had a little play about …

Member Avatar for bops
0
252
Member Avatar for Busted

:confused: Could any one justify why is the result of the following code 100 100 100 99 99?? main() { static int arr[]={97,98,99,100,101,102,103,104}; int *ptr=arr+1; print(++ptr, ptr--, ptr ,ptr++ ,++ptr); } print( int *a, int *b, int *c, int *d, int *e) { cout<<*a<<" "<<*b<<" "<<*c<<" "<<*d<<" "<<*e<<endl; }

Member Avatar for Ancient Dragon
0
93
Member Avatar for neologic

[code] class String { char* pData; public: String(); //default constructor ~String(); //default destructor String( String&); //copy constructor const String& operator=( String&); //overloaded assignment operator void operator==( const String&); //overloaded compare operator String operator+( String); //overloaded concat operator void operator[]( int); //index operator String( char*); //one argument operator char* GetBuffer() { …

Member Avatar for Stoned_coder
0
122
Member Avatar for JuanPabloD

I am trying to write a program to perform the laguerre method of finding roots of polynomials. To get me started i have found various texts to help. One of the texts demonstrates code for a very similar problem however it uses an undefined function 'laguer'. Is this a function …

Member Avatar for Ancient Dragon
0
146
Member Avatar for iamthwee

Hi guys i have abadoned my ofther assinement becoz it woz 2 hard to learn classes and i stil need 2 learn a function proberly.my teacher said if i not understand functions yet then i wait to learn classes. tank u again 4 your help. Now i need to do …

Member Avatar for iamthwee
0
225
Member Avatar for cjm771

ok so last time I was here, I was programmin tic-tac-toe and its great. Now I have programmed hangman! :D . Anyways right now its for two players only. So I want it so the computer will choose a random word from a text file and assign that to my …

Member Avatar for cjm771
0
4K
Member Avatar for winbatch

Here's what I'm trying to do: create an empty/NULL char * in one place, pass it to a function who will populate it (and tell me the size), and then use the char * elsewhere. However, when I get out of the function.. Here's the function that expects the char …

Member Avatar for Narue
0
272
Member Avatar for vancasas
Member Avatar for charlie_help

I want to fetch data from SQL Server 2000 using tcp/ip connection and display on the client. Q : How do i fetch data from SQL Server 2000 and put the data on a combo box. Q: My server user interface will have "Fetch" button ? Client User Interface: [code]___________________________ …

Member Avatar for charlie_help
0
240
Member Avatar for Sutanu

[FONT=Trebuchet MS]Dear all: I've created TCPsocket in linux using C++. It receives an array of unsigned characters. I need the corresponding hex values in character format. i.e. "ABC" in hex it is "414243". Now I want to treat each of "414243" as character. So I have done the coding as …

Member Avatar for Sutanu
0
2K
Member Avatar for iamthwee

Hi everione, my next assinement is 2 do with classes. I dun no what they are tho and why u will use them? Can any1 explain them to me I would B greatfull. God bless. :o

Member Avatar for proghelper
0
382
Member Avatar for sleevetrick

hi. can anyone tell me how to disable blinkin cursor from my WIN32 console Application. i have created a console app.. using vc++ but i see the cursor blinkin all the time which is not what i want. please help thanks in advance.

Member Avatar for sleevetrick
0
1K
Member Avatar for Mahen

do you know of any api in c++ that could give me time in this format: hh:mm:ss I used strtime in lccwin32 but it is not compatible with other compilers

Member Avatar for vegaseat
0
177
Member Avatar for charlie_help

I want to fetch data from SQL Server 2000 using tcp/ip connection and display on the client. Q : How do i fetch data from SQL Server 2000 and put the data on a combo box. Q: My server user interface will have "Fetch" button ? Client User Interface: ___________________________ …

0
107

The End.