49,755 Topics

Member Avatar for
Member Avatar for daniel1977

Greetings friends: I have the following question: It looks like to use the "listcont.sort()" function of the list container I will obviously need to overload comparison operators. it uses the "<" operator. Will I need to overload any other operators for this to compile and run successfully? I am planning …

Member Avatar for arkoenig
0
29
Member Avatar for Lelly

Hello, How can I do this: Implement the MergeSort algorithm in C++, Generate random numbers into a text file to read as input. The 2 parameters to the program are the input and output text files Thanks

Member Avatar for Lelly
-1
2K
Member Avatar for mugenoesis

Okay i have tried everything please can someone help me i am trying to restart this program so i have used a do while loop. The problem is that when i say n to terminating it just asks the question again do i wish to terminate every time i click …

Member Avatar for mugenoesis
0
129
Member Avatar for sheennave

When i insert value into table row (data type float), smt rounds decimal values into zeros. Here is the dramatically simplified code in order to see the situation.Interestingly, assigning a single array value into a variable (as usual) doesn't work here ! Is this a SQLite bug ??

Member Avatar for sheennave
0
291
Member Avatar for pdk123

i am a c programmer, 6 month old for c++. i am trying to add some feature to a huge c++ base code !. stuck at this funtion . ( function names/varibles names modified ) void MCE::AddM( int Cid, int Tid, int Rid) { TrInstEntry* pTrInstanceEntry = (TrInstanceEntry*)m_MappingList->find(Tid); if ( …

Member Avatar for griswolf
0
182
Member Avatar for l1nuxuser

[CODE] char *CHuser, *CHpass; CHuser = user_user.GetBuffer(0); //user_user its CString verb CHpass = password_user.GetBuffer(0); // password_user its CString verb [/CODE] i need to convert the CString to char but is not woking if someone can help me its gon be very useful ks biny

Member Avatar for l1nuxuser
0
250
Member Avatar for MasterGberry

I read something online about being able to make my patch run as an administrator by default by using XML code? How would i put this into my program? This patcher is going to be put into a larger source code of a client, and will just be called by …

Member Avatar for MasterGberry
0
60
Member Avatar for rdt_01

[QUOTE]I cant figure out what should i do so that in case one, if i choose to continue buying, not to start from the begining, but just to do the remaining calculations. also if it is possible to help me with a function outside main so that i calculate the …

Member Avatar for rdt_01
0
89
Member Avatar for rmlopes

Hi everyone I've been looking into boost and c++ reference, as well as some googling, and I cannot find a way to get a thread's execution time, all options I found are related to system time and I need only the execution time for the thread (inside the thread's context). …

Member Avatar for JohnDiego
0
5K
Member Avatar for frogster

Hi! In my direct 2d game i want to draw a big background picture entered by the user. Im currently trying to do this as described on [url]http://msdn.microsoft.com/en-us/library/ee719658%28v=vs.85%29.aspx[/url] . Altough it gives me read error at pos 0x0000. Heres the code: [CODE] RECT rc; GetClientRect(hWnd, &rc); using namespace D2D1; //Render …

Member Avatar for frogster
0
277
Member Avatar for indrajeet6

Hi, I've been trying to compile the following code in visual c++ 2010 Express Edition. But the output window just says: 1>------ Build started: Project: Ans7, Configuration: Debug Win32 ------ ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Code Follows: [CODE]/*Program to dynamically allocate a 2D array*/ …

Member Avatar for indrajeet6
0
442
Member Avatar for vanalex

Hello everybody, I wrote a test source code about 2 classes point and circle. These classes illustrate the center of a circle (point class) and its radius (circle class). Circle class inherits point class. Here's the code: [CODE]#include <iostream> using namespace std; class point { private: int x, y; public: …

Member Avatar for vanalex
0
167
Member Avatar for Duki

Hey everyone, We're trying to figure out if it's possible to use winsock on an AIX system? If not, is there any native support in C++ for unix based machines and e-mail support, without importing 3rd party libraries?

Member Avatar for synxmax
0
168
Member Avatar for Szeth

Hello Daniweb, I'm obviously very new to the programming world. I'm trying to make the popular Guessing random numbers game. The things I'm having a hard time with is getting the input validation to work. When characters are input instead of numbers, the program goes into an infinite loop. I'm …

Member Avatar for Szeth
0
370
Member Avatar for chamika.deshan

Hello Is this safe? In a API I am using have a protected inheritance of a class [CODE] class B { public : method(); } class C : protected Class B { }[/CODE] I need to access those pulbic methods in Class B So is this ok and safe? [CODE]C* …

0
61
Member Avatar for JordanHam

I am just having trouble with the beginning stages here. I am just very confused on different syntax terms. I have a book here "Microsoft Visual C++.net" with all the installation and whatnot with it. It doesnt use the normal cin and cout but used Console::WriteLine and what not. Is …

Member Avatar for JordanHam
0
131
Member Avatar for lisaroy1
Member Avatar for Fbody
-2
95
Member Avatar for Scharl

I am using libhash++'s getHashFromFile() as seen in [url=http://hashlib2plus.sourceforge.net/example.html]this[/url] example to get the hash from files. When the file is a simple text file I get the same result as I get with md5_file() in PHP and the program [url=http://www.pc-tools.net/win32/md5sums/]md5sums[/url], but when it is a binary file I don't get …

Member Avatar for rbross
0
84
Member Avatar for VasquezPL

I have a question. I worte frontend application to manage Active Directory. It uses AD commands like "dsquery,dsget etc" I use them this way: system ("dsquery *"); What i need to do is to write a code that will capture all text viewed by commands in system("") or to capture …

0
45
Member Avatar for zabra

Morse code Converter Morse code is a code where each letter of the English alphabet, each digit and various punctuation characters are represented by a series of dots and dashes. Write a program that asks the user to enter the string: “Yesterday, I slept most of the night. I saw …

Member Avatar for daviddoria
0
2K
Member Avatar for do vale

[CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int num[5],high=0,high_num=0,low=0,low_num=0,a=0; for (int a=0;a<5;a++) { cout<<"enter number "<<a+1<<":"; cin>>num[a]; } for (a=0;a<5;a++) if(num[a]<high) { high=num[a]; high_num=a; } cout<<"highest number is.."<<high_num<<"\n"; cout<<"highest number is.."<<high; getch(); return 0; }[/CODE] please CORRECT this Code the problem is.. "PROGRAM THAT CAN ACCEPT 5 …

Member Avatar for Moschops
0
191
Member Avatar for remuladgryta

Hi, i'm a new learner of the ways of COM and, when trying to recode a code example found in [I]Automating Office[/I] by Lori Turner from just a demo of Word interaction into a c++ class (which i will be using in my program) i come across these linker errors: …

Member Avatar for DJRoss
0
3K
Member Avatar for iwannalearn

hey i am in a great confusion plz help me out.I have done basics of c++,and now i am in a confusion that whether i should continue c++ or to start with java???? plz suggest me

Member Avatar for Moschops
0
142
Member Avatar for youLostTheGame

in my C++ class we were given an assignment (as follows) and i only have one last objective with it. the user is given an option to be able to see the entire queue list and i don't know how to get the program to show that. does anyone know …

Member Avatar for youLostTheGame
0
143
Member Avatar for uclaEE

Hello all! I am having trouble writing this code where I am supposed to take integers and output them as strings. When i try a number like 67 it outputs it correctly like sixty seven. However, when i try 467 it only outputs four hundred sixty. Suggestions appreciated! [CODE]#include <iostream> …

Member Avatar for ravenous
0
114
Member Avatar for svatstika

Hi everybody! In my TMemo (name: MemoMain) there are following datas: 3 0 1 1 1 0 1 1 1 0 I must read them to a variable int and an array int A[][]; After reading: n==3; A[0][1]==0 A[0][2]==1 A[0][2]==1 A[1][0]==1 A[1][1]==0 A[1][2]==1 A[2][0]==1 A[2][1]==1 A[2][2]==0 I did like this: …

Member Avatar for svatstika
0
261
Member Avatar for w1mark

Hi, I have been working on this program for a while, and it is just getting plain frustrating. I'm trying to make a class(called numberType) which can take a number with up to 100 digits using a 100 integer character array and then be able to add that class with …

Member Avatar for w1mark
0
116
Member Avatar for kamotekid08

Hi there somebody please help me to create a record file using c++.. The project is similar to a record. Ex. A product(goods) record. Where you can search for a certain product using the code number of the product, add product, remove product and view all the records. the task …

Member Avatar for jonsca
0
3K
Member Avatar for cppgangster

I am getting the same problem with the languege. How to craete graphical user interface on windows platform without Qt? MCF is not anymore included in Visual C++ isn't it?

Member Avatar for jonsca
0
112
Member Avatar for caut_baia

Hi everyone i'll keep it brief.Say i have [code] template <int k> struct A { enum {key=k}; }; template <int t> struct B { std::vector <A<y>* > vec; B () { vec.push_back (new A<y> ()); B <t-1> (); } }; template <> struct B <0> {}; int main () { …

Member Avatar for caut_baia
0
94

The End.