49,761 Topics

Member Avatar for
Member Avatar for vandadm

Hello, I'm working on an assignment for class, in which: 1) I need to display a menu for fruit selection. 2) After selection is made, program asks for quantity (double). 3) Program should enter selection in class array (this seems fine). Where I'm having the problem is in the do …

Member Avatar for vandadm
0
112
Member Avatar for deltamaster

I want to compose a Matrix class template. Matrix objects need to copy data very often, such as in copy constructor or assignment operator overload function, so it need to be efficient. For most cases, I should not escape the assignment operator overload function of each data item, but for …

Member Avatar for mike_2000_17
0
119
Member Avatar for runge_kutta

Hello, I am new to the programming game and have a question for you seasoned veterans: I have a data collection device whose API is c++ based. When I want to write a program whose first step is to initialize the system, I write "InitializeSystem(); " In a C++ IDE …

Member Avatar for runge_kutta
0
2K
Member Avatar for becool007

Hey so my project is an Average Calculator to calculate the average of a set of numbers. Anyways, I must make it in a GUI and I have chosen Win32. My problem now resides while trying to do the following: - When there is a paint request, to paint anything. …

Member Avatar for becool007
0
177
Member Avatar for vidit_X

I'm a lot confused with multi-dimensional arrays and pointers. I tried searching, found and read some articles. But there are still some doubts. We can not use a double pointer(int **) for a two dimensional array, right? Instead we need to have an array of pointers with the length equal …

Member Avatar for vidit_X
0
174
Member Avatar for justinclev

well im trying to create a notepad in the win32 Api with C++ and at the moment im trying to set up the Open and Save As dialogs but the open Dialog works and the Save As doesn't, yet when i comment out the Open Dialog the Save Dialog works …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for JordanHam

[CODE]int number=0, subtranslines=50; string term[]={"Jordan"}; //string term="Jordan"; string voltage= "69"; string line; size_t found; while (! data_file.eof() && getline(data_file,line).good() ) { //cout<<line<<'\n'; for (int i=0; i <=subtranslines; i++){ if( (found=line.find ("term[i]",0)) !=string::npos && (found=line.find (voltage,0)) !=string::npos) { number++; cout<<line<<'\n'; out_file<<line<<endl; }}} //To find the number of outages and subtract the …

Member Avatar for JordanHam
0
192
Member Avatar for barevhayerable

hello everyone.. please answer me , if you can give me working code I thought about something... I know that everything in our machines have addresses.. I thought about watching everything in my computer's random access memory(RAM) But I don't want to see the information in view of garbage , …

Member Avatar for Ancient Dragon
0
197
Member Avatar for pseudorandom21

Okay, so the problem is: I need a way to display a graphic with a few lines of text over the picture. An amount determined at run-time of these will be created. They also needs to be contained in a scrollable container, and scroll properly. It sounds simple but I'm …

Member Avatar for pseudorandom21
0
144
Member Avatar for GDICommander

Hello! I need help to construct a regular expression in Python that will help me get the file name of a include directive in C++. I think that regular expressions are a good way to solve this problem, but I'm open to new ideas. Consider these following includes: [CODE] #include …

Member Avatar for GDICommander
0
311
Member Avatar for dcasmac418

hi! i'm having a hard time in understanding the "bubble sort", can anybody please help me in creating a programming that allows the user to input 10 integers and gives them an option whether it will display from "hi to low" or "low to hi". thanks in advance.

Member Avatar for dcasmac418
0
88
Member Avatar for TailsTheFox

Hello, I am wondering how you read input from a text box in microsoft visual studio Forms. I'm trying to make a program that reads text box data and tells you the readout, but I don't know what to type to return the data typed in a text box. Please …

Member Avatar for TailsTheFox
0
105
Member Avatar for Vallnerik25

I have some questions about the logical not operator in C++ and Visual C++. I have posted another question relating to the logical not operator. I just can't seem to wrap my head around the uses of this operator. From what I have read so far the logical not operator …

Member Avatar for pkunzip1234
0
230
Member Avatar for jshoot

Hi everyone! I'm triyng to develop a program whith this functions: 1 - Read data from text file 2 - Put the data from file to a variable(ignoring comments in the file) 3 - Tokenize the data e transform the variable into another variable(like float) 4 - Make the calcs …

Member Avatar for jshoot
0
605
Member Avatar for KKR_WE_RULE

Well guys.. Here goes my first post here :) I've coded few ECC methods that are very frequently used in Cryptography. I've tested the code with the examples posted in certicom website & it works well. But then I implemented ECDSA_Sign() --> Elliptic Curve Digital Signature Algorithm using my own …

0
179
Member Avatar for becool007

Hello, So I am using microsoft visual C++ 2010 and I was wondering is there a way to avoid using .NET implementations? If so, what would I need to do and what are the drawbacks. Thanks

Member Avatar for jonsca
0
115
Member Avatar for DubyStev
Member Avatar for frogboy77
-1
96
Member Avatar for svatstika

Hello everybody! I've made an application in borland C++ builder 2006. Then I tried install it in another computer. borland C++ builder 2006 is not installed in this computer. So I got the message: can not open my application because missing file vcl100.bpl . I searched in google.com but still …

Member Avatar for jonsca
0
121
Member Avatar for saumya_kapila

Hey, I have to write a code,which reads a file and finds anagrams in it.The output is a set of anagrams(the output I am getting from this code) again to be printed in a text file. Can you please tell me how can I delete the repeated anagram sets from …

Member Avatar for HeartBalloon
-1
185
Member Avatar for pkunzip1234

[CODE]/* My problem is I do not understand the following statement in 45. used[minIndex] = [COLOR="Red"]true[/COLOR]; // Record minimum as used boolean array used[] can sort array values[] by minimum when we set "[COLOR="Red"]true[/COLOR]" ? */ // Soln4_4.cpp : main project file. #include "stdafx.h" using namespace System; /* This uses …

Member Avatar for pkunzip1234
0
196
Member Avatar for lisako

Hello everybody! I’m new to C++. Need some help. I am trying to prompt the user to enter the file name. File itself includes list of 5 emails. After user enters the file name, program should check the list of emails and output all emails that have wrong email format …

Member Avatar for jonsca
0
322
Member Avatar for andimiami

Hello... I am still a newbie! I have an assignment to write a C++ program to cover a series of ASCII character digits into numbers. Like if the input (that I have ti input from a saved file) was $1,9,56#%34,9 it would output 1956 349 on two seperate lines ignoring …

Member Avatar for WaltP
0
177
Member Avatar for deanus

Hi, Can private static data members of a class be accessed through non-static methods of that class? I'm asking this (dumb) question because on a C++ book I've read that a class's static data members can only be accessed through a static function, but when I tried doing it with …

Member Avatar for deanus
0
176
Member Avatar for Lemonader

When converting Roman Numerals, how do I tell the code to consider the fact that the letters are also used for subtraction? Like, X=10 and L=50, but XL is 40 and not 60. How do I do this ( instead of listing all combination )? [code] include <string> using std::string; …

Member Avatar for WaltP
0
1K
Member Avatar for chamika.deshan

Hello This is my base [CODE]class BaseClass { // base has no body };[/CODE] and child [CODE]class ChildClass : public BaseClass { public: void testMethod(); };[/CODE] I do [CODE]BaseClass* base = new BaseClass(); ChildClass* c = static_cast<ChildClass*>(base); c->testMethod();[/CODE] Above compile and ChildClass::testMethod() executes fine. my memory is allocated by BaseClass …

Member Avatar for mike_2000_17
0
137
Member Avatar for Mayank23

can someone help me, each time i send my friend a program he says tht the windows goes away once he enters something. please help.

Member Avatar for Nandomo
0
143
Member Avatar for juanp

I'm having a lot of trouble getting my code to compile. It basically has this structure: [CODE]Headers: a.h, b.h, c.h CXX: a.cxx, b.cxx, c.xx[/CODE] And my main.cpp of course. The problem is that my classes link each other, ie. a uses something from class b and b uses something from …

Member Avatar for Fbody
1
107
Member Avatar for DKDeath

Hey all! I'm the owner of an upcoming gaming network and we have a private server in development. However the games client files are encrypted into dpk files. the dpk files are somesort of archive files. I'm looking for a coder whos willing to code a dpk tool for decrypting …

Member Avatar for becool007
0
91
Member Avatar for becool007

Hey daniweb forums, Okay so my question is, what is the difference between VC++ (visual C++) and C++ with any other IDE (or none at all). I know for a fact that VC++ is an IDE but according to some people that I have met. They say, stay away from …

Member Avatar for becool007
0
254
Member Avatar for skips

I am not looking for an explicit answer to this question, and I have googled/searched this site for hours trying to find an example to work off of. What I can't figure out is how to write a nested "for loop" that will allow the user to input one number …

Member Avatar for skips
0
140

The End.