49,761 Topics

Member Avatar for
Member Avatar for nehemiascr

Can anyone help me with the algorithm for the height of a n-ary tree, I have been looking and could only found for a binary tree, thanks in advance.

Member Avatar for Unix*
0
646
Member Avatar for tiara

Hello guys.. i am really new to C++. I feel a bit confused with the using of const in this code. [CODE] class B { private: int x; public int func() const { return x; } } [/CODE] Viewing at that source code,, what is really functions of const ?? …

Member Avatar for Ancient Dragon
0
109
Member Avatar for maey_kich

hello, I can't figure out how to create an array that can be called from any module. Global or public sounds familiar but they don't work. Cheers.

Member Avatar for Tom Gunn
0
91
Member Avatar for soffie

Need to make a random size (x = rows, y = columns) matrix which is filled with random numbers (only 0 or 1). So, if I don't know the size of the matrix, I use dynamic array. So far I have made this far, but obviously it isn't quite correct... …

Member Avatar for soffie
0
2K
Member Avatar for dadytzu4all

hy i m new in c++ and have a problem to resolv, actually 2... anyway could anyone help me, with results an axplanations too. first one--------------------------------------------------------------------- Create a console application. Make a class "Geometry". Derive a class Circle and a class Rectangle from Geometry. Make a class Display which is …

0
49
Member Avatar for PoRco1x

Hey guys, This is my first post here :) I have to compare to strings and then continue on with the loop.. [CODE]void HighScore::removePlayer(const string& name) { int i,j = 0; cout<<"Attempting to remove " << name<<endl; while (i<d_nPlayers) { if (d_players[i].name==name) { cout<<"Found : " << name<< "at slot: …

Member Avatar for PoRco1x
0
86
Member Avatar for kiryoku

[CODE] #include<iostream> #include<conio.h> using namespace std; int n[10],i,ns; string c; main(){ for(i=0;i<10;i++){ cout<<"Enter a number:"; cin>>n[i]; } cout<<"Number to search:"; cin>>ns; n[i]=0; for(n[i]=0;n[i]<10;n[i]++){ if(ns==n[i]){ cout<<"Searched Number is Found!"; } else{ cout<<"Searched Number is Lost!"; }} getch(); return 0; } [/CODE] help pls the output is repeating...

Member Avatar for Ancient Dragon
0
97
Member Avatar for sfuo

This program asks for integers from the user and stores them into a multidimensional array that adjusts its size.

Member Avatar for VernonDozier
0
1K
Member Avatar for 17ashis
Member Avatar for abhipro

Hey guys, I am trying to implement something in VC++ and have to use a library for this purpose. This library is in C++ and the authors have provided a seperate download for VC++ How exactly do I use the functions provided in this library in my own code? They …

Member Avatar for Tom Gunn
0
142
Member Avatar for ayaskant
Member Avatar for snowland

hello~ I have writed some program, but I unknew, What is the difference in win32 debug and win32 release in Microsoft visual c++? or some conclusion? please help thanks.

Member Avatar for necrolin
0
86
Member Avatar for newsguy

Within the next five years, Citizen Developers will be responsible for building at least 25% of all new business applications. That is the rather startling claim being made by Gartner analysts ahead of the Gartner Symposium and ITexpo in Cannes, France next month. So what is a Citizen Developer then? …

0
334
Member Avatar for nurmuhamad88889

how to make implementation of member function to read message received from others

0
46
Member Avatar for peekamalts

I am not an IT student however, a student of Healt and Human services and this IT class is an elective. I do not know any thing about programming but I am struggling to get through this class I read the text and disiffer some things. But as for the …

Member Avatar for jasvir
-1
313
Member Avatar for MyRedz

well here i am just starting to do some coding about handphone to smartphone object..it's an inheritance project but not mine..;) so i would like to share here about the errors and others. any help is appreciated... now my uml diagram i want to transfer to handwritten coding.so.. [QUOTE] Handphone …

Member Avatar for foze_skate
0
128
Member Avatar for kingstrider

Write a C program which takes number of integers to sum and gives following output: Enter the number of integers you want to sum: 5 1 = 1 1+2 = 3 1+2+3 = 6 1+2+3+4 = 10 1+2+3+4+5 = 15 remember v can use only iostream and the loops v …

Member Avatar for sfuo
0
87
Member Avatar for Alice86

Hi, all.. i'm now using Visual c++ in Visual Studio 2005 for my project. i faced problem in getting other tab value in main tab ..Below are details of my problem. In the main tab control(CTabDialogControl), i have another sub tab . IDD_MACHINE is my other dialog ID while the …

0
60
Member Avatar for skumar.idea

I want to implement according to the following specification: [B][COLOR="red"]FindFirst[/COLOR][/B] Search a directory for a file or subdirectory whose name matches the specified parameter. long FindFirst(LPCTSTR ItemName) Parameters ItemName [in] string that specifies a valid directory or path and file name, which can contain wildcard characters, such as * and …

Member Avatar for dkalita
0
79
Member Avatar for hmortensen

Hi all, Im trying to read an int from a binary file.. (As I have done many times before) [CODE] int chunkLength=0; fileRead.read (reinterpret_cast<char*>(&chunkLength),sizeof(chunkLength)); [/CODE] I know (and can see) that the file contains the bytes 00 00 00 0D, so to the best of my knowledge the int should …

Member Avatar for hmortensen
0
146
Member Avatar for fali

Hi all, I have the following situation: I created a program with Visual C++ 2008 express which receive and interpret data from a µC. Now I want to send this data from the Visual C++ program to an OPC server. Both programs run on the same PC. Therefore I need …

0
49
Member Avatar for I_Empire

i am writing a function to convert fractions to intgers for example: .636 -> 636 or .45 -> 45 [CODE] int ret_int(double input) { while(true) { // this line is for debugging only cout << input << " " << floor(input) << endl; if(input == floor(input)) return input; input = …

Member Avatar for I_Empire
0
147
Member Avatar for selvamellumalai

i am these kind of problems while using embedded vc++. 1.spawning error 2.failed to instantiate platform manager. someone please give me some solutions to solve this.

0
44
Member Avatar for duliprb

Hello , There is a problem with compiling the project of outcall. I want to test it. because i am very interested about project but Before do customisation I wanted to compile it. [url]http://outcall.sourceforge.net/[/url] If there is a good C++ person please help me. Thank you very much. early response …

Member Avatar for duliprb
0
325
Member Avatar for PriusDriver07

Hello, I am wondering if I am chasing my tail, but is it possible to convert the numbers 1-26 to their respective letter of the alphaber by using the call char(1) where it will return the letter a, char(2) will return b, char(c) will return c, etc... Thanks,

Member Avatar for PriusDriver07
0
41
Member Avatar for edwar

Anyone knows how to open a text file and write the content of it to a text file with command line or arguments, i mean using the argc and argv. thanx for answer!

Member Avatar for Ancient Dragon
0
266
Member Avatar for lovelyfire322

Hi, I was wondering how to get the computer to randomly select between 0, 1, or 2.

Member Avatar for noodlecode
0
94
Member Avatar for HolyVenom

As the title specifies, I would like to know how to remove a surface once applied. Pretty new to SDL and it would be a great help if you could spare some information. Thanks

Member Avatar for sfuo
0
32
Member Avatar for goody11

Hey, I was just wondering how do I make my edit boxes so that when the the tab button is hit the cursor will go on to the next edit box in windows API. I've done some research on functions that deal with the cursor but I can't string them …

Member Avatar for goody11
0
200
Member Avatar for Reprise

I have a templated class set up like so: [code=CPP] template<typename T> class treeNode { public: bool operator==(const treeNode<T>&) const; bool operator>(const treeNode<T>&) const; void print(); T field; int key; }; [/code] Using the > operator as an example of my problem, I have it overloaded like this: [code=CPP] template<typename …

Member Avatar for xxjay922xx
0
92

The End.