49,766 Topics
![]() | |
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. | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Having return types of constructor means taking address of constructor(which is illegal)...can u explain me this.... | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Can anyone pl. mail turbo c++ setup as attachment to << moderator edit: email snipped >> | |
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 … | |
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, … | |
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 … | |
: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; } | |
[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() { … | |
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 … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
| |
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]___________________________ … | |
[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 … | |
![]() | 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 |
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. | |
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 | |
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: ___________________________ … |
The End.