49,761 Topics
| |
#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 … | |
hi everyone...can any one tell 10 advanteges and disadvanteges of c-language plzz urgent | |
what is the programe to solve the even ordered magic square? | |
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, … | |
[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 … | |
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 | |
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 … | |
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. … | |
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 … | |
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, … | |
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 … | |
------------------------------------------------------------------------ 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 | |
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: … | |
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 … | |
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 … | |
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 … | |
can u pls tll me the main difference b/w base class libraries f c# n library functions f c & c++ | |
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? … | |
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 … | |
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 … | |
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 … | |
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 … | |
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"; … | |
#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 … | |
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 … | |
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 … | |
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, … | |
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? | |
How would I be able to iterate through each character in a file? The file is of type ifstream. | |
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, … |
The End.