51,593 Topics

Member Avatar for
Member Avatar for Jennifer84

I assigned String ^ Box1 like this. [code] String^ Box1; Box1 = comboBox1->SelectedItem->ToString(); [/code] What I am trying to do now and wonder is if it is possible is to put [COLOR="Green"]"comboBox1->SelectedItem->ToString()"[/COLOR] to a vector. For the std:: it would look like this: [code]std::vector<string> StdVector; StdVector[0] = "comboBox1->SelectedItem->ToString()"; [/code] My …

Member Avatar for Jennifer84
0
174
Member Avatar for virus.exe

Hey it's been a really long time since I have been to the site or since the last time I have done anything in c++. I was wondering is if was possible to make a program that opened up a website and copied some information such as text off the …

0
85
Member Avatar for farag

i want to make a c++ program to run or compile a c++ source file stand alone from hard disk thanks in advance

Member Avatar for farag
0
165
Member Avatar for Ryuji5864

I am currently taking C++, and I just want to know why it says,"Illegal Else without if," and I would like to know how to fix it so I will not encounter this problem again. I would like to know where to put the brackets, "{ " Here is the …

Member Avatar for Ryuji5864
0
175
Member Avatar for begyu

Hi, I should printout the value(s) of the "sum" of the end of the code... But i don't know...:( I am not good at C++. Please help! The code is not so difficult: it generates random 3 dimensional vectors, e.g. number of 5. Then makes a matrix of 3x3 from …

Member Avatar for Lerner
0
137
Member Avatar for Greg123

Hello, I have dynamically allocated memory that I would like to share across threads. More specifically, I have an ACE thread pool, which I use to process requests on dynamically allocated ACE_Method_Request objects. These objects are created once at startup, and then processed throughout the system's running state (i.e. the …

Member Avatar for Greg123
0
171
Member Avatar for Moporho

I need to build a simple integer caluclator that perform arthmetic functions of addition, subtraction, multiplication, modulus and disvision. The calculator contains an Accumulator that stores the current result. The Accumulator is also involved with each operation. Make sure that you define a class for this program. Once started, the …

Member Avatar for WaltP
0
191
Member Avatar for sfurlow2

Here's a problem we're supposed to do for my class: Input five numbers from the user and print the highest, the lowest positive number, the highest (closest to zero) negative number and the lowest number. If the user enters all positives or all negatives, print "none" for the missing output. …

Member Avatar for WaltP
0
93
Member Avatar for Dr_Pepper

Hello everybody. I want to ask for some help. I need to type program that calculates areas of rectangle, triangle, circle and ellipse ( user input: rectangle = lower left corner point, length and width; triangle = top point, height, base; circle = radius and center point; ellipse = center …

Member Avatar for hammerhead
-1
525
Member Avatar for nsoni

Hi Everyone, I am new user for this community and as a trend when we are in trouble then we remember friends. Don't mind . My Question: My application creates trace.txt file which contain debugging information when app. is running but in real production there may be a problem because …

Member Avatar for Ancient Dragon
0
147
Member Avatar for bleonard989

These are the errors I am getting. I have never worked with classes before, I posted before but have done some work to it since then, and have gotten less errors. The main problems are the push function, the copy constructor, and the function that creates a new stack. prog4.cpp: …

Member Avatar for bleonard989
0
212
Member Avatar for sfurlow2

For my homework assignment, I'm supposed to get five numbers from a user and print the highest one using a loop. I'm not sure what to do. Any suggestions?

Member Avatar for sfurlow2
0
469
Member Avatar for debuggit

I need to write code to: 1. receive user input 2. output to an html table - 3 columns user integer input, 4th column sum of the three 3. if the integer is negative, it needs to print out red 4. if the user enters a zero, I need the …

Member Avatar for debuggit
-1
101
Member Avatar for Tinemelk

Hi! Im trying to make a program where I fill an array with elements from my defined class cars in cars.h /cars.cpp, and then sort the elements by using the selectionsort algoritm. Im guessing I have to replace my filling of the tab with random numbers with something like Cars<int>Cars[10]? …

Member Avatar for Ancient Dragon
0
134
Member Avatar for slayman89

Ok i apologize in advance for my ignorance but i have just started learning c++ and my first program went off without a hitch now this one that im doing completely on my own is giving me some hiccups. The best i can tell is that im just having some …

Member Avatar for Ancient Dragon
0
83
Member Avatar for ulasu

hi, i want to link to dll files in my project. I have the header and implementation files and object library file to that dll file. I don't know how to call the functions out of the dll file. I am using Visual studio.NET C++ IDE. Any help will be …

Member Avatar for twomers
0
161
Member Avatar for Jboy05

Given the following variable declarations and function prototype. How do I write three different calling statement to the MyFunction function without declaring additional variable. int I; bool B; double D; double MyFunction (bool, int&);

Member Avatar for Jboy05
0
101
Member Avatar for cbattagler

Hello, I need to overload my comparison operators such as == and < so that I can use things such as std::sort and std::unique on a vector of some user defined classes. I know how to overload them globally. The problem is I need to overload these operators as member …

Member Avatar for cbattagler
0
111
Member Avatar for namanithi

can anyone help me to convert this project to VISUAL C++, i am unable to convert this to the new visual c++ as i am doing a assignment in converting this. I have tried everything i know as i am a diploma student but unable to get any answers please …

Member Avatar for Dave Sinkula
0
72
Member Avatar for landercat

I can get the code to compile, and essentially do what I want it to. The problem I'm having is in my getData(int choice) function. I want the function to keep asking the user to enter a valid number (1-8) if they enter something else. If I put an if...else …

Member Avatar for landercat
0
4K
Member Avatar for manzoor

Hi i have to complete a program which do the following If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 …

Member Avatar for manzoor
0
113
Member Avatar for Jennifer84

I am trying to delete what is written in a textBox like this in C++ .NET. When pressing the button the text/Numbers I have written in the textBox doesn´t deletes. I beleive 0 is the index from where to begin the delete wich should be from the first character in …

Member Avatar for Jennifer84
0
185
Member Avatar for wasde

Hello Please provide me the list of software development companies specialises in the development of custom software applications which deals with custom programming, database design, client-server and internet/intranet software application development on all platforms including windows, Linux, Mac.

Member Avatar for ithelp
0
38
Member Avatar for bleonard989

I am pretty new to c++, and have never worked with stack or templated classes before. I have started this program, but I am not done, I was wondering if I am at least on the right track, because I get a ton of compile errors. The assignment: Implement the …

Member Avatar for mitrmkar
0
530
Member Avatar for behnaz

hi, i have 1 question ebout this file : in the program , when we include this file? #include<dos.h> #include<graphics.h>

Member Avatar for WaltP
0
68
Member Avatar for sfurlow2

For my homework assignment, we were asked to: Prompt the user for a positive number and get it from the user. Print each integer from 1 up to and including the user's number and the sum of all the integers from 1 up to and including each integer. Your output …

Member Avatar for codeaa
0
153
Member Avatar for jesseb07

hi, this should be a fairly simple question to answer. I have a function in my program that takes the content of a text file and populates an array with all the information. First it has to see how many lines the file has (as it can change) so it …

Member Avatar for jesseb07
0
6K
Member Avatar for gabs

[COLOR=#555555]Hi all![/COLOR] [COLOR=#555555]Can anyone tell me where can I find a source that will help me learn visual c++ win32, without com and mfc, just pure basic, visual c++?[/COLOR] [COLOR=#555555]I already programmed different programs, but I am having trouble, when I try to add more windows to my program, I …

Member Avatar for reddy_rajesh100
0
77
Member Avatar for farag

Hello Please, i need someone to help me doing this simple program I want a program that keeps tracking of the profile of program execution Input: A source code Process: Keeps track of the the profile of program execution Output: Display the original source code with line number and profile …

0
53
Member Avatar for angellove40

Q .1 )An election is contested by five candidates. The Candidates are numbered 1 to 5 & the voting is done by marking the candidates number on the ballot paper.Write a prog to read the ballots and count the votes cast for each candidate using an array variable count. In …

Member Avatar for vmanes
-1
125
Member Avatar for tones1986

Hey folks. I am working on a project that adds additional information to previous projects. Basically, for ezch project i have added another header file with cpp file. For example, originally we just had an Employee.h and Employee.cpp file which contained a class for employees containing name, department, and SSN. …

Member Avatar for tones1986
0
159
Member Avatar for kylcrow

Hello, I have to write a shopping cart class in c++ and I am getting a core dump, and I have no idea why. I know where it is core dumping. Its dumping at 2 places-> Shopping_Cart::Print(Shopping_Cart* head) and Shopping_Cart::TotalPrice(Shopping_Cart* head) Here are my 3 files... shopping.h [CODE=C++] #ifndef SHOPPING_CART_H …

Member Avatar for Ancient Dragon
0
317
Member Avatar for prushik

What is the easiest way to get a user input string (char array) from within an OpenGL program? It doesn't have to look good, this is just for debugging purposes. Thanks.

Member Avatar for prushik
0
86
Member Avatar for Jboy05

Consider the following function prototypes and variable declarations: void Func1 (double, char &); bool Func2 (double, double); double Func3 (bool); double d1, d2; char c; Without additional function or variable, how do I write ONE C++ statement to call ALL THREE functions: Func1, Func2, and Func3?

Member Avatar for vijayan121
0
118
Member Avatar for Nemoticchigga
Member Avatar for Barbarrosa

Hello, I've been trying to figure out this problem for a while now and cant figure it out. What im trying to do is assign a value to a location in an array. SIMPLE! isnt it. well heres my problem. int main(){ int array[1][1]; . . . array[0][1]=-1; array[1][0]=-2; cout<<array[0][1]<<" …

Member Avatar for Ancient Dragon
0
111
Member Avatar for behnaz

Hi , I Want To Khow About How I Can Start The Turbo C++, I Want To Develope This Program: Develope A Graphical Analog Clock . You Should Be Able To Set The Clock Alarm And Your Clock Should Ring At The Time Set. Please Help Me About This Program.

Member Avatar for Duoas
0
161
Member Avatar for CoolGamer48

Hey, So, my understanding of header files so far are that they're basically code that can be used by multiple .cpp files. But if you have a prototype in a file.h that's declared in a file.cpp that includes file.h, and then FILE.cpp includes file.h, does FILE.cpp have access to the …

Member Avatar for Ancient Dragon
0
179
Member Avatar for cosmos22

I'm trying to open a file, using the ifstream function. I'm using a .jpg image as an example, but it doesn't work, any ideas? Thank you. [code=c++] int main(int argc, char *argv[]) { char file[20]; strcpy(file,"C:\\Fraps\\1.1.jpg"); ifstream outfile; outfile.open(file); return 0; } [/code]

Member Avatar for Ancient Dragon
0
213
Member Avatar for behnaz

when we use this file: #include<graphics.h> #include<stdio.h> #include<conio.h>

Member Avatar for Ancient Dragon
0
106
Member Avatar for rwagnes

I am using MFC and C++... I have a dialog of type CDialog containing several objects including a CPropertySheet called m_dlgPropSheet (which does not have it's own class beyond CPropertySheet). This property sheet contains three identical pages (with different data) of type CPatchSummaryPage which inherits from CPropertyPage. I am trying …

Member Avatar for mitrmkar
0
1K
Member Avatar for cosmos22

Hi, I was wondering how you might go about deleting all of one certain file type in a folder. For instance, say asked the user if he wanted to erase all text entries(.txt) to clear up his folder, and it would do it all at once. Thanks! :)

Member Avatar for Ancient Dragon
0
64
Member Avatar for look@me

in this program iam going to remove all the element in the list and find the minumum number in the list this is my try but the result is wrong Implementation .cpp [code=cplusplus] #include <iostream> #include "arrayListType.h" using namespace std; int main() { arrayListType<int> intList(100); //Line 1 int counter; //Line …

Member Avatar for Ancient Dragon
0
95
Member Avatar for rohoni

what is operator overloading ? how many types i have? can any one help me with some example.

Member Avatar for farag
0
150
Member Avatar for brsowmya

somebody please lemme know wats the meaning of the following class declaration in c++ class A B { . . . } plz note 'A' is a macro n 'B' is actually the name of the class

0
50
Member Avatar for tonyaim83

Hi My current editor is Dev-Cpp 4.9.2.2 .My test program which runs fine looks like dll.h [code=c++] #include <windows.h> #include <stdio.h> #include <stdlib.h> #ifdef __cplusplus extern "C" { #endif __declspec(dllexport) void HelloWorld(); #ifdef __cplusplus } #endif [/code] And dll.cpp [code=c++] #include"dll.h" void HelloWorld () { MessageBox (0, "This is a …

Member Avatar for Ancient Dragon
0
128
Member Avatar for invincible_king

hey guys, i would really appreciate if you can give me links to some good C tutorials online or some good books , esp with regard to pointers and other advaced C topics...........i wish to learn C properly and then move on to C++, although i have started C++ already.....

Member Avatar for Ancient Dragon
0
112
Member Avatar for meen08

hello, I'm using builder c++ for a sniffer application. I have a TThread object in a file called unit4 which show the packets in a TreeView. [CODE]__fastcall ThreadPackets::ThreadPackets(pcap_t* adhandle) : TThread(false), adhandle_(adhandle) { FreeOnTerminate = true; } void __fastcall ThreadPackets::Execute() { while (!Terminated) { ....do something... } }[/CODE] I have …

0
39
Member Avatar for chocl8drop

I am working on a program that will read a list of words from a file. For each word, I have to build a key which is basically the word with all of its letters sorted (i.e. dorw is the key for word). I need to build an array of …

Member Avatar for dougy83
0
127
Member Avatar for sgw

Sometimes when I use a lab PC for visual C++, even when a program is very simple and absolutely correct, and sometimes passes the compiler, but when i try to run it, it shows "Fatal error... can't find path...." what's the reason?

Member Avatar for mitrmkar
0
113

The End.