49,761 Topics

Member Avatar for
Member Avatar for axed

#include <iostream> #include <sstream> #include <fstream> #include <vector> #include <string> using namespace std; class PriceFeed { public: PriceFeed(vector<string>& tickers) { // init(tickers); } } int main () { vector<string> tickers; tickers.push_back("AAPL"); tickers.push_back("XOM"); //PriceFeed(tickers); PriceFeed pf = new PriceFeed(tickers); [COLOR="Red"]// Error on this line[/COLOR] system("pause"); //return 0; } Can you please …

Member Avatar for axed
0
247
Member Avatar for ahsanmujtaba

hi everyone...can any one tell 10 advanteges and disadvanteges of c-language plzz urgent

Member Avatar for crunchie
0
73
Member Avatar for dwith
Member Avatar for dwith
-3
35
Member Avatar for royalbow

I have a calculator program and I want to add a progress bar. The progress bar is for visual effects only; I want it to animate for just enough time so that it will be noticed everytime I hit the "=" button. I'm a newbie in making forms and actually, …

Member Avatar for royalbow
0
69
Member Avatar for brant_chen

[B]Why I can't compile a helloworld with Unicode supported by wxDevC++? [/B] I made a test programm. But I can only compile it by GCC compiler (library type is static lib) without wxwidgets Unicode support. If I checked the Unicode support at compiling setttings, it said ld error, can't find …

0
135
Member Avatar for adhruv92

I have a huge amount of home work that my c++ teacher gave me at school, can you do that questions while i have to study chem and phy and maths for the exams. just post the answers. i have attached the questions. thanks

Member Avatar for triumphost
-3
367
Member Avatar for luskbo

OK, I'm trying to write a program that uses a circular linked list. I have been playing around with a linked list program all day, and kinda understand it. Here it is, and yes it does compile. [CODE] #include <iostream> using namespace std; struct node { char name[20]; // Name …

Member Avatar for luskbo
1
254
Member Avatar for priya_esu

Hi, I need to copy a file from one location say c:\a\abc.txt to c:\b\abc.txt. I used the following below code #include <stdio.h> #include<fstream> int main() { if ( rename("c:\a\abc.txt","c:\b\abc.txt") perror( NULL ); system("pause"); return 0; } when i ran this code, the original file in the folder "a" gets deleted. …

Member Avatar for WaltP
0
150
Member Avatar for triumphost

Ok So Im writing a program to setup another program... And now Im stuck cuz I want make "my program" click the next button on the "setup" and then I want it to click the radio buttons on the "setup" program... how would I got about being able to send …

0
47
Member Avatar for ShadowScripter

Hi, [? 1] How do I create an API for a game? [? 2] If this subject is too hard for a novice/intermediate programmer, where do I best find tutorials/resources about API's? [1] I asked myself this question, as well as google, yet no easy answers or explanations popped up, …

Member Avatar for triumphost
0
209
Member Avatar for vileoxidation

Hello, and thank you for taking the time to help me with this! I am working on a program that keeps information about staff members, such as volunteers and employees. The problem I am having is that when I run the program (everything compiles fine), I enter a members, and …

Member Avatar for triumphost
0
159
Member Avatar for sonaxi

------------------------------------------------------------------------ Item No. Cost Quantity Amount ------------------------------------------------------------------------ 1 40.00 1 40.00 2 150.00 10 1500.00 3 2000.00 20 40000.00 4 10.00 10 100.00 ---------------------------------------------------------------------- Total 41640.00

Member Avatar for triumphost
-3
78
Member Avatar for genDisarray

Having decided to brush up on my programming, I wanted to try and make a Yahtzee game, only console based. It is object-oriented for the most part. My trouble is with generating different numbers for each die. I will post my Dice class to help show what I am doing: …

Member Avatar for vmanes
0
831
Member Avatar for Fragmad

Hi. (If you don't feel like explaining, please tell me what I need to read up on. Derived classes? Polymorphism?). I have got this assignment from school, in which we are handed a main.cpp file and we are supposed to write the class for it. But there's a few thing …

Member Avatar for vmanes
0
114
Member Avatar for infinities

What's the simplest way of being able to build Qt Applications using C++? notepad? specific IDE? HOW do I do it? Can someone PLEASE walk me through it. I found instructions online for integrating MS Visual C++ with Qt. I ended up taking 5-6 hours out of my time to …

Member Avatar for jbennet
0
200
Member Avatar for robgeek

Hi guys, Please can someone explain me how would I split a string into groups. In other words, I have a string of numbers, as such: 123456789 I am supposed to store them in linked list nodes as such: node 1: 1 node 2: 2345 node 3: 6789 I was …

Member Avatar for Lerner
0
95
Member Avatar for pavan146
Member Avatar for ddanbe
-1
123
Member Avatar for lexusdominus

id like to write a function that checks if an object's variables have been changed. the only way i can think of is to create a duplicate object and compare each variable. im really lazy, and this seems like alot of effort. can anybody help me think outside the box? …

Member Avatar for mrnutty
0
100
Member Avatar for triumphost

Yes I know its a long code and it will get longer but there is a compiler error in the [COLOR="Green"]int main ()[/COLOR] First Visual C++ 2008 Express edition error [QUOTE] ------ Build started: Project: MAC ADDRESS, Configuration: Debug Win32 ------ Compiling... MAC ADDRESS.cpp warning C4603: '_WIN32_WINNT' : macro is …

Member Avatar for triumphost
0
761
Member Avatar for C++NOOOB

Hi, I have class which has two bool vectors: [CODE] typedef vector<bool> my_bool_vector; class MyClass{ private: my_bool_vector bvec; my_bool_vector another_bvec; public: explicit MyClass(unsigned int size) : bvec(size, false), another_bvec(size, false) { } }; MyClass MyObject (10); [/CODE] I want to be able to access bvec and another_bvec in the following …

Member Avatar for Dave Sinkula
0
154
Member Avatar for sebassn

Please, I'm not sure about this exercise, if someone can help me, thanks! I know it's something about .find() or .size(). and return the variable. Here is the exercise: ______ Write the code that prompts the user to enter a home web page address of the website that is used …

Member Avatar for sebassn
-1
111
Member Avatar for Sphero

Hello, I created a new maskedtextbox and gave the mask property the value 000.000.000.000, which should act as an IP address box. Now, when I open my configuration panel and configure my IP address, it jumps to the next mask while pressing the . key. Is there any way to …

0
44
Member Avatar for th3learner

Can anyone tell whats wrong in below code? I m learning c++ ..so maybe this ll be very easy solution for you guys[code]Hello i m learning c++ ..so maybe this ll be very easy solution for you guys #include<iostream.> #include<conio.h> void main() { int a,b,c; clrscr(); cout<<"Enter Your 1st Value"; …

Member Avatar for th3learner
0
147
Member Avatar for bliya123

#include <stdio.h> #include <math.h> #define PI 3.141593 // prototype of function to find the great circle distance between two points double gc_dist(double, double, double, double); int main(void) { double lat1, long1, lat2, long2; printf("Enter latitude north and longitude west "); printf("for location 1 : "); scanf("%lf %lf", &lat1, &long1); printf("Enter …

Member Avatar for VernonDozier
0
194
Member Avatar for jeevsmyd

hi friends, I am an amateur C++ programmer... I am using turbo c++ V4.5.. after reading about the google code breaking thing on the internet, i became interested in simple substitution cipher.. the one using a keyword..I know the logic behind the program. yet I need your guidance about execution …

Member Avatar for jeevsmyd
-1
432
Member Avatar for jp071

Hi, I want to split a char string. We can use “strtok” function for split a string by using token. But in my problem, there is no specific separation/token between each value. The data directly come from an external device through the serial port. I used “ReadFile” function to read …

Member Avatar for iamthwee
0
110
Member Avatar for redrum237

Hi As part of a project, I am required to create an interactive 3D immersive world using whichever method I want. I'm thinking about making the world/map using UnrealEd 3.0, but wondered if this limits me in what I can do. I want to be able to talk to NPCs, …

0
63
Member Avatar for tomtetlaw

I want to be able to extract the file info of music files(title, artist, album, genere, ect.) and then rename the file to the title of the music track. But I don't know anything about this and have no idea where to start, can someone tell me?

Member Avatar for iamthwee
0
58
Member Avatar for tomtetlaw

How would I be able to iterate through each character in a file? The file is of type ifstream.

Member Avatar for iamthwee
0
27
Member Avatar for ayan2587

Hi frndz... here's my doubt.. if i pass a decimal or hexadecimal integer to a function from my main function..and then have to decide in that function whether the argument is a decimal or hexadecimal value..how shud i go bout it?? for ex: int main() { int count=2; int x[]={0x620058, …

Member Avatar for ayan2587
-1
73

The End.