51,593 Topics

Member Avatar for
Member Avatar for babu02021964

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

Member Avatar for Salem
0
123
Member Avatar for mimis

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 …

Member Avatar for mimis
0
405
Member Avatar for noty1

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 …

Member Avatar for VernonDozier
0
109
Member Avatar for Sky Diploma

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; …

Member Avatar for Sky Diploma
0
129
Member Avatar for steve.callen
Member Avatar for jencas
0
81
Member Avatar for tones1986

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 …

Member Avatar for DemonGal711
0
715
Member Avatar for ooyellowchicoo

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 …

Member Avatar for dmanw100
0
112
Member Avatar for MentallyIll5150

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 …

Member Avatar for MentallyIll5150
0
124
Member Avatar for spo-apt

Hi guys i really appreciate someone can help me out with this book (C language, not C++): [img]http://www.deitel.com/bookresources/chtp5_200h.jpg[/img] [url]http://www.deitel.com/Books/C/CHowtoProgram5e/tabid/1704/Default.aspx[/url] # ISBN-10: 0-13-240416-8 # ISBN-13: 978-0-13-240416-7 Someone can share please, or PM me. i really need Thanks in advanced Regards

Member Avatar for Ancient Dragon
0
293
Member Avatar for neoseeker191

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;

Member Avatar for neoseeker191
0
170
Member Avatar for sarifah
Member Avatar for ace_man

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> …

Member Avatar for StuXYZ
0
218
Member Avatar for xonxon

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- …

Member Avatar for Stefano Mtangoo
0
152
Member Avatar for Icebone1000

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) …

Member Avatar for Icebone1000
0
172
Member Avatar for massivefermion

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

Member Avatar for death_oclock
0
107
Member Avatar for JDsmith

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 …

Member Avatar for JDsmith
0
117
Member Avatar for jakethesnake86

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. …

0
89
Member Avatar for shasha821110

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 …

Member Avatar for shasha821110
0
151
Member Avatar for keyser soze

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 …

Member Avatar for ArkM
0
121
Member Avatar for BranRam

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 …

Member Avatar for ArkM
0
86
Member Avatar for moshe5

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 …

Member Avatar for Lerner
0
115
Member Avatar for masterlion
Member Avatar for ChroNoS

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 …

Member Avatar for Salem
0
404
Member Avatar for tksrules

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 …

Member Avatar for VernonDozier
0
353
Member Avatar for tpetsovi

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. …

Member Avatar for Nick Evan
0
152
Member Avatar for Tiago Santos

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 …

Member Avatar for Ancient Dragon
0
217
Member Avatar for winrawr

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* …

Member Avatar for winrawr
0
124
Member Avatar for tpetsovi

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 …

Member Avatar for Comatose
1
128
Member Avatar for hurbano

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 …

Member Avatar for hurbano
0
79
Member Avatar for scott_s58

Can somebody help me with this? You are burning some music CDs for a party. You've arranged a list of songs in the order in which you want to play them. However, you would like to maximize your use of space on the CD, which holds 80 minutes of music. …

Member Avatar for Comatose
0
161
Member Avatar for Udxero

Modify your week 5 assignment to include a function for both A and B. The function for A should have the quantity of numbers passed in as a parameter and needs to return the largest number. The function for B should have no parameters and return the smallest number. Here …

Member Avatar for shasha821110
0
252
Member Avatar for VBNick

Im having a very strange problem that I can't explain =/ this is what the compiler is saying: 1>------ Build started: Project: 3d, Configuration: Debug Win32 ------ 1>Compiling... 1>RENDER.CPP 1>Generating Code... 1>Compiling... 1>GEOM.CPP 1>MAIN.CPP 1>MOVEMENT.CPP 1>Generating Code... 1>Linking... 1>MAIN.obj : error LNK2005: "struct OBJECT * obj" (?obj@@3PAUOBJECT@@A) already defined in …

Member Avatar for VBNick
0
298
Member Avatar for vaid.abhishek

Dear Folks, I have a fairly complex problem at hand. I need to be able to define various class hierarchies, which are causing me a lot of trouble. I wanted to know a few of C++ features to clear out my confusions. Firstly, lets us suppose we I need to …

0
77
Member Avatar for C++.java

5. Write a program that adds up the squares and adds up the cubes of integers from 1 to N, where N is entered by the user: Upper Limit: 5 The sum of Squares is 55 The sum of Cubes is 225 Do this by using just one loop that …

Member Avatar for death_oclock
0
192
Member Avatar for nijju_31

[code] #include<iostream> #include<conio.h> #include<string> using namespace std; int main() { int i,len,t; cin>>t; char a[100],b[100]; while(t>0) { cin>>a; len=strlen(a);len=len-1; for(i=0;i<=len;i++) { b[i]=a[len-i]; } cout<<"value of a\n"<<a<<"\n"<<b; if(strcmp(a,b)==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; t--; } getch(); return 0; } [/code] every time the loop runs the garbage value of char b; remains. . …

Member Avatar for Comatose
0
111
Member Avatar for confused_in_CO

Hello, I have been lurking on this site for a while, reading other people's programming questions and answers in the hopes that I'll learn something. I'm in my first programming class right now, and I think I'm confused about nested loops and how to keep a program looping until it's …

Member Avatar for confused_in_CO
0
79
Member Avatar for StandardsDT

I'm having some trouble with my while loop in my code. If I enter in 20 and then enter in 14 for the coupons I want to redeem, it goes into a constant loop and doesn't stop. However I did stop it from doing this by putting in a [icode]break;[/icode]. …

Member Avatar for StandardsDT
0
153
Member Avatar for k2k

My program should find any 4 letter words and change them into string "love" ... i have successfully found all the spaces and modified any 4 letter words before the spaces... however, the last word before the '/0' doesn't change... please help. btw, is there any string class function check …

Member Avatar for VernonDozier
0
129
Member Avatar for GadiK

Hi Guys, I'm trying to write a program (MFC) that while working displays a log to the user. For this log I thought I'd use an Edit Box because I can set it to be "multiline". What I had in mind is to display each new log entry in a …

Member Avatar for GadiK
0
1K
Member Avatar for shahab.burki

Hi, Can we use structures within classes as data type? if yes then please give some examples? Thanks

Member Avatar for Comatose
0
79
Member Avatar for winrawr

How would I write a function with an undefined number of arguments? Like, how when using printf(), you write the string in the first argument and in the string use format identifiers. Then, for each format identifier you use is an argument specifying what should be put there in the …

Member Avatar for ArkM
0
518
Member Avatar for rudasi

Hi, I have been trying to figure this out and I know it must be something simple but I cant get it. Why does the following code give an answer of 1. double a=8; cout<<pow(a,1/3); I would think it should be 2. Thanks

Member Avatar for rudasi
0
158
Member Avatar for friollano

hello, i need some help. i have an assignment that i need someone's opinion on. this is what the assignment is about: A soft-drink manufacturer produces several flavors of drink—for example, cola, orange, and lemon. Additionally, each flavor has several versions such as regular, diet, and caffeine-free. The manufacturer operates …

Member Avatar for VernonDozier
0
81
Member Avatar for Innercoder76

Hey everyone, I need help with my program it is an ipod simulator that goes like this: [CODE]/* FUNCTION - void initaPod Initialize all the slots to blank and 0 size memory*/ void initaPod (); /* FUNCTION - int addSong attempts to add a new song to the aPod returns …

Member Avatar for ArkM
0
100
Member Avatar for azwraith69

hello everyone.. thx for droppin' i need to write a program, a recursive sudoku solver and this is what i have so far... [B]main.cpp[/B] [icode] #include <iostream> #include <vector> #include "sudoku.h" using namespace std; int main() { vector< vector<char> > rows; // Load grid rows=load(); // Check if grid is …

Member Avatar for azwraith69
0
155
Member Avatar for Stefano Mtangoo

Please anyone help me on classes. I have written this class example and keep getting error on that the function is private. I though variables in functions are private but mmh, I think I'm wrong. Can anyone clarify how to rectify this? Also, could you explain to this New Bee …

Member Avatar for Stefano Mtangoo
0
86
Member Avatar for shamila08

Hello! here c++ program. my problem is i need to find the permutation is even and odd. However the value +1 (even )and -1(odd) is not appear for each permutation. [code=cplusplus]= #include <stdio.h> #include <stdlib.h> #include <iostream> #include <memory.h> #define MAX 100 char num[MAX + 1]; int n; using namespace …

Member Avatar for shamila08
0
114
Member Avatar for viswa_007

how to create desktop applications in c# using http requests and http response with iis

Member Avatar for sknake
0
144
Member Avatar for Xtreath

First of all hi to evryone. I tryed to make a exe work on most pc's but it only works on mine. My friends got a error when they try to run it. "The application cannot be started because the configuration of the application is wrong. ( or something like …

Member Avatar for cikara21
0
80
Member Avatar for mattwaab

hey, i am working on this project, and have made it to the end of the hard coding part. Now i need to work out the bugs / get the thing to compile. I am having some trouble though as i am getting error messages that i dont understand. here …

Member Avatar for StuXYZ
0
96

The End.