49,756 Topics

Member Avatar for
Member Avatar for Matt Tacular

I need a way to get a number from the user, break that number up (eg. 1128 into 1 1 2 and 8), and then manipulate each number. Here is what I tried to do, failed horribly: [code]#include <iostream> #include <string> #include <cmath> int main() { string str; int a …

Member Avatar for hinduengg
0
101
Member Avatar for krnekhelesh

Hi, I was using borland 5.5, and I tried introducing graphics using the followig code [CODE]#include<iostream.h> #include<graphics.h> $void main() { int driver,mode; driver = DETECT; initgraph(&driver,&mode,"\\tc\\bgi); circle(25,35,12); closegraph(); } [/CODE] But I get the error [I]graphics not supported with windows[/I]. So I tried [B]TURBO C++ 3.0[/B]. And it worked perfectly …

Member Avatar for krnekhelesh
0
575
Member Avatar for gattispilot

This is Orbiter: Ok what is wrong? I have start =0 at the beginning. then this: [code=cplusplus] case OAPI_KEY_K: // start if (start=0) start=0; else PlayVesselWave3(MySoundID,START,NOLOOP,255,22100); start=1; return 1; [/code] So start should be 0 until K is pressed. If K is pressed then the wav is played and start …

Member Avatar for gattispilot
0
196
Member Avatar for jenymaru08

Please help me what is linked list in C++?i need to know this because we have a report about this topic....i really dont have any idea on this.. please kindly give me a detail about linked list and if you have any recommended site that explaining what is linked list …

Member Avatar for WolfPack
0
71
Member Avatar for parthiban

Hi all , I have one doubt when i read a book to understand type conversion concepts . Here's the listing used in that book to demonstrate : [code=cplusplus]// strconv.cpp // convert between ordinary strings and class String #include <iostream> using namespace std; #include <string.h> //for strcpy(), etc. //////////////////////////////////////////////////////////////// class …

Member Avatar for Bench
0
111
Member Avatar for game_fan

Hi, this program is supposed to get data from an input file, have the user add new data, then output the new data in an output file. There are also supposed to be inheritance classes for the different titles. The 2 derived classes should be a fiction one and a …

Member Avatar for Bench
0
118
Member Avatar for m_meena

hi, i m building the code in VC++6.0. (win32 unicode debug) i m getting the following error in the RPC call error C2664: 'UuidToStringW' : cannot convert parameter 2 from 'unsigned char ** ' to 'unsigned short ** ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or …

Member Avatar for Ancient Dragon
0
52
Member Avatar for mauro21pl

Hi Quick question. Is it possible to find the source code for the predefined functions in C++ Tnaks

Member Avatar for krnekhelesh
0
80
Member Avatar for avaholic1973

I am working on this c++ app for class and have hit a wall. I have been trying to get the average to display with decimal points for accuracy but have had no luck. Here is the code. Thanks for any help. [code=c] //************************************************************************* // Include Files //************************************************************************* #include <iostream> …

Member Avatar for ndeniche
0
116
Member Avatar for driplet

Hi guys: I am using Borland C++ Builder to make a window application. I need to use a list box to display the items I selected. Besides, I need to chang the order of the selected items in the box. Could any body please give me a clue how I …

Member Avatar for WolfPack
0
534
Member Avatar for bapef

ok here is an example of the type txt file I am trying to read 12345678901234567890123456789012345678901234567890 Bugs Bunny Jr. 1234 1001.01 Dr. Wiley Coyote 2345 1002.02 Taco Speedy Gonzales3456 1003.03 Billy the Goat 4567 1004.04 Porky Pig 5678 1005.05 what I am trying to do is skip the first line …

Member Avatar for Tight_Coder_Ex
0
5K
Member Avatar for krnekhelesh

I read that vectors and arrays are almost the same. Could you explain this to me?

Member Avatar for JRM
0
265
Member Avatar for jhayrald

i am new in c++ and i quite need help in writing the code for this peoblem.This program needs to list the numbers from 0 to 25, their squares, and the fourth power. The output should be in the neat 3-column format. Number Square 4th power 0 0 0 1 …

Member Avatar for ndeniche
0
542
Member Avatar for bluebird

9. Which of the following operator has the highest precedence? (1)* (2)== (3)=> (4)+ [B] Ans : 4 If I have to answer that question, I will choose the answer *. Does + has higher precedence than *? Please explain me. [/B]

Member Avatar for Salem
0
192
Member Avatar for mauro21pl

Hi again You gonna hate me, so many questions :). I will try with that one. I am working on tokanization ,it's work for many delimiters except the space. Does anyone know how may I make it work. Its have to make excutly what function strtok() does. I have to …

Member Avatar for Ancient Dragon
0
73
Member Avatar for unclepauly

I've been learning about aggregating COM objects. I dont understand why we 'need' 2 IUnknowns (ie the delegating IUnknown and the Non-delegating IUnknown). Surely the same effect can be achieved with just the 1 usual IUnknown? Eg, The outer component implements interface IX and aggregates interface IY, which is implemented …

Member Avatar for unclepauly
0
165
Member Avatar for complete

I have an MFC SDI application and I want to send a message from the MainFrm class to the View class. How do you get a view class from an associate MainFrm class in MFC?

Member Avatar for Ancient Dragon
0
107
Member Avatar for complete

I am used to VC 6.0 and the class wizard. Now I am using Visual Studio 2005. How do I launch the class wizard from a menu command. I have found that if I double click on a dialog box, the class wizard comes up. But how do I do …

Member Avatar for Ancient Dragon
0
164
Member Avatar for kodiak

Hi, I was inspired by cygwin to code my own little shell that allowed you to use ksh or bash commands(haven't decided yet.). Should I go about doing this by using the system() function, or some other way?? Thanks, Kodiak -

Member Avatar for kodiak
0
112
Member Avatar for adotl

Im starting a course next year which will cover a C++; I was wondering whats the best software to start coding in C++? I noticed my college use NetBeans which is an IDE which may be a start? Any help appreciated.

Member Avatar for jbennet
0
137
Member Avatar for mauro21pl

Hi to all I have a quick question. How can go through the integer to find if there is any specific number. For example my input would be 234446 (integer is of type long),and now I would like to check that integer and find how many 4's are in there …

Member Avatar for mauro21pl
0
107
Member Avatar for egboy

I hope any one help me find a tutorial for programing microcontroller with C or C++ i need this really.

Member Avatar for egboy
0
316
Member Avatar for Akilah712

Hi, I am working on a program that reads through a file, gets the words, and finds all the anagrams in the file. For example if the input is Pans stop pots pots Sits it's snap I have no trouble reading the words from the file. I create a signature …

Member Avatar for iamthwee
0
285
Member Avatar for kodiak

hi, i need help with the system() function. I need to open up a command line instance, change directory to a certain file, and open a file there. Problem is, every time call the system() function, it calls up a new command line instance. I need to do as i …

Member Avatar for Bench
1
2K
Member Avatar for minigweek

[B]char *(*c[10])(int **p); [/B]Ok, what does the above mean ? I compiled it fine. But I can't figure what it means :( Also, how to make sense of any such questions ? I know pointers, and have a concept of it. But this one really baffled me ! Can anyone …

Member Avatar for minigweek
1
115
Member Avatar for ace5798

PLEASE HELP.... I was wondering if someone could help me. I am taking a programming class and I am having alot of problems. When I began my class we were given a copy of Visual Studio 2003. I had alot of problems with it and when I would go to …

Member Avatar for quintoncoert
0
111
Member Avatar for m_meena

Hi, On building a windows service, i m getting the 57 errors and 11 warnings. All the errors are about structure redefinition. Given below are some of them. :\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winsock2.h(112) : error C2011: 'fd_set' : 'struct' type redefinition C:\Program Files\Microsoft Platform SDK for …

Member Avatar for m_meena
0
257
Member Avatar for Elfshadow

For a program I'm writing I only need two digits past the decimal.I was a c programmer and the way I would have done this was [code] printf("%2f",variable); [/code] Is there anything like this in cout?

Member Avatar for GreenDay2001
0
58
Member Avatar for tralfas

i need to know how to use powers in c++. so if i enter to and then 3 for the power i get 8. this is what i have so far [code]#include <iostream> using namespace std; double power(double,int); int main() { double n; int p; cout << "Enter a number …

Member Avatar for krnekhelesh
1
169
Member Avatar for jenco

I am struggling with how to make an Item selected from a ComboBox change the color of a square on the form. If I enter code in the OnClick event of the ComboBox, then as soon as I click the box the square changes color. But there are also Circle, …

Member Avatar for Killer_Typo
0
101

The End.