49,761 Topics
| |
Hi, all i have big assignment and don't have any compiler problem just have runtime bug--this make more headache. Here is the driver; [code=cplusplus] int main{ int * values2 = new int [ARRAY_SIZE * 2]; values2[ARRAY_SIZE * 2 - 2] = 8; values2[ARRAY_SIZE * 2 - 1] = 5; stack.pop … | |
i need to make a program that will identify the values of ABCDE that will result to EDCBA if you will multiply it with 4. looks like this: ABCDE x 4 = EDCBA i already have the values, it's 21978 x 4 = 87912 but i dont know how to … | |
Hi, I wish to embed an existing executable file within my executable and execute it. I am using Visual C++. Is there a way to do this ? Any reference or idea will be greatly appreciated. Thanks | |
Hi, i am trying to make an algorithm that will read the nodes of a graph. Then i should find the shortest path that i have to follow in order to pass from all the nodes. I am trying to make it so the algorithm will calculate every possible path … | |
im looking for a code that shows how the directed graph is being implemented in C++ classes. i havent figured out the algorithm to be used. all i know is the concept of directed graph. edge() and vertex() function will be created in a class. all i need to know … | |
I have to find the sum of the prime numbers below 2million so here is the program that i have written. [code=c++] #include <iostream> using namespace std; bool is_prime(int); int total=0; int main() { int num=2000000; for(int x=1;x<=(num);x++) { if(is_prime(x)==true) { total+=x; cout<< total<<"\n"; } } cout<< total; return 0; … | |
hi all, can you tell me what is the difference between visual c++ & ANSI c++ ? Thanks | |
Hi all. I am finishing up a project previously posted. I am to create a student 'database' that consist of one student and X number of classes the student has taken. My problem now is that i cannot run a test on the linked list correctly. I am to check … | |
I'm using Visual C++ 2005 Express Edition I'm suposed to make the message box say "The Mallard Cafe is 3 stores to your left" when the button is clicked. I was given a hint but I have no idea as to where to put it. [code] Private Sub MallardCafe_Click(ByVal sender … | |
I am having a couple issues with the following code. Any help with understanding what I am doing wrong is worth its weight in gold rather than handing me the answer. My problem with the following code is I can Add a Flight to the database but it seems to … | |
I've read about 6 tutorials on this but for some reason it makes no sense to me. Could someone possibly work with me to help me understand this concept? Such as how would you overload something like this: int result = 2 + 5; | |
can anybody help me? i am new in c++.please.. ++ -- *= += -= | |
As we know priority queue is known for its first element is always the greatest of the elements it contains but how can I make the first element to be the lowest element of them all? [CODE]// priority_queue::push/pop #include <iostream> #include <queue> using namespace std; int main () { priority_queue<int> … | |
i am new here,still not familiar with the code.So my Question is i have been given an assignment on how to design a class,pointType , that can store and process a point in the x-y plane. The program should perform setting and printing coordinate of the point, returning the x- … | |
Doesnt matter if i build, rebuild, clean and do all again, if i want to debug it will ask again and build it before execute the program... I dont know what happened, I have been like a month away from my pc, and now i returned and visual studio(2005 pro) … | |
Hi people Can someone introduce me a website or e-book (but not a book) that explains each windows API function or data type or...one-by-one? thanks | |
Alright everyone, I'm a little behind in my programming class and I missed the lecture on functions. I'm not asking for anyone to do my work for me but a little help on where to start would be nice. thanks :) alright well here's the question... Write three C++ functions … | |
I am trying to program a microprocessor using c/c++ with assembly subroutines. I have a working assembly subroutine, Button_Push, that returns a 1 if a button has been pushed. I have tested this subroutine in an assembly language program. I am really having trouble using the subroutine in C though. … | |
Hi, my company have a big project now. Which we have some video detection software and could create some investigation figure. We want to do plug-in into the Powerpoint and i am kind of junior here. But i really want to do more in my company. So i want to … | |
Hi, I'm a beginner in C++ and I need some help how to get a website's source code and save it into a string. Oh, and also: how can I then search the source for a specific keyword AND how can I "extract" a word between 2 keywords ? Here's … | |
hello, what i'm trying to do with this program is take something like 123456 and have it turn into this 1*x^2+3*x^4+5*x^6. i have code but i'm just lost in the whole idea of how to do it. so my code is probably completely wrong. if anyone knows how to do … | |
Hi All! I am currently stuck on a c++ program I'm working on. So the program will have the user input data into a 2-d array. sample dialogue: BLOB SIZE CALCULATOR- Enter coordinates for each filled cell; e.g 2 3 Do not enter commas or parentheses. Enter -1 -1 to … | |
How can access to a web page with c++? | |
I am doing a project on steganography ( I hope you know what it is :) ) I have to convert a text file (if possible a RTF File) to an image file like jpg or gif etc. But I do not seem to get around this problem and I'm … | |
The question is (Package Inheritance Hierarchy) Package-delivery services, such as FedEx®, DHL® and UPS®, offer a number of different shipping options, each with specific costs associated. Create an inheritance hierarchy to represent various types of packages. Use Package as the base class of the hierarchy, then include classes TwoDayPackage and … | |
Ok, the program allows me to input every value and everything executes, but heres what comes back when the calculations at the bottom are supposed to happen. take a look. Please help? [ICODE] For your 1st class please select the appropriate number for your grade. For an A, select 1. … | |
Hello Everyone. Congratulations for the Forum. Ok... How can I print a external file ( and .doc document for example) using C++??? The document I wanna print is a .lbl extension. A zebra printer label model, and I'm using a seguential number on this label and every time I right-click-print … | |
So, I'm dynamically allocating a char array in a function, then returning that array to an un-allocated char array in main(). Code: [code=cpp] #include<iostream> using namespace std; char* cc(char*,char*); int main(){ char* strMain; char* str1="Well, hello there, "; char* str2="How are you?"; strMain=cc(str1,str2); cout<< strMain; } char* cc(char* str1,char*str2){ char* … | |
Just a note, were not using arrays or functions, other than main. We've only covered the basics and started to get into <iomanip> and the stuff thats in that liabrary. Thanks in advance. [ICODE]#include <iostream> using namespace std; void main () { const double A = 4.0; const double B … | |
Hi. was asked to add the definitions of the function to overload the operators from this: [code] void monthsSet::unionSet (monthsSet &B) { for (int i=0; i<12; i++) if (B.months[i]) months[i] = true; }; [/code] Ive been trying for hours. Ive read my textbook and gone over my notes. Unfortunately i … |
The End.