49,761 Topics

Member Avatar for
Member Avatar for melmakrani

Could somebody help me please?! I'm trying to include math.h in a simple program an it doesn't work. I got following errormessage:"fatal error C1083: Cannot open include file: 'math': No such file or directory". I've checked if math.h is in the include directorie of visualC++, and it is. Here is …

Member Avatar for bbman
0
1K
Member Avatar for duq_nies

Actually, I'm still new in programming. So that, please help me to do this job. This is for my mini project. I've search before, but didn't found the code that use Microsoft Visual C++ 2010 Express Edition as a compiler. Please,.A.S.A.P.

Member Avatar for Ezzaral
0
43
Member Avatar for akshayinbox

Hello. I've learned programming in Visual Basic 6 followed by turbo C++. I was able to make COMMERCIAL software using VB6 but not with C++. The thing is I need to learn a language (for software development) that has syntax and logic similar to C++ BUT COMES WITH AN INTERFACE …

Member Avatar for John A
0
232
Member Avatar for lochnessmonster

WriteProcessMemory(processHandle, address, name.c_str(),sizeof(name.c_str()),NULL) | | is this third argument valid for this function? if not how would i make my std::string return the start address of a c string??

Member Avatar for Narue
0
99
Member Avatar for pete_g

Hi guys (and gals) I'm pretty new to c++ and programming, but I am keen as hell I bought a boot to start learning by Bjarne Stroustrup - Programming - Principles and Practice using C++ I am up to Chapter 3 and doing the 'exercises', only I am stuck on …

Member Avatar for pete_g
0
168
Member Avatar for landercat

I have a problem where I need to display a seating assignment for an airplane. It will have 13 rows and 6 columns. If the seats are empty, it should display * and if the seat is taken it should show an X. There will eventually be 3 different types …

Member Avatar for malakago
0
305
Member Avatar for rancosster

I am having a problem with my backtracking function it loops with certain data I can't write here the whole program code but can put here my function. [CODE]bool shareMoney(int quantity, int *values, int index, int moneyA, int half, bool *ifChosen) { if(moneyA == half) return true; else if(index >= …

Member Avatar for rancosster
0
129
Member Avatar for Tursup

Hello, I am trying to write a program that will reverse the numbers inputted by the user. It doesn't seem to be having the desired outcome and I don't know why. Here is the code I am using, [CODE] #include <iostream> #include <conio.h> #include <string> #include <sstream> using namespace std; …

Member Avatar for Tursup
0
134
Member Avatar for plang007

I need help with this program. I do not know how I would calculate to find out the gallons as well as the cost as pictured in my output. How would you do this? Here is my output: For each student, you will get the gallon of paint Input the …

Member Avatar for Ezzaral
0
239
Member Avatar for triumphost

This is the function in question... What happens is the user opens notepad, if notepad is open then they are required to type a password.. If its invalid, notepad is closed.. if the password is valid, it continues.. else if the user hasn't entered a password within 10 seconds, timeout.. …

Member Avatar for Narue
0
335
Member Avatar for yozzie

I am doing some code challenges from a book and am stumped on this particular challenge. I am supposed to pass an array to a function, use the function to determine the minimum, pass that value back to main and print a response varied by the returned value. The problem …

Member Avatar for yozzie
0
170
Member Avatar for emreozpalamutcu

How can I change the image on the picture box when the mouse is over the picture box I know how to end the application when the mouse is over the picture box but what is the code for changing the picture C++ (I need to use mouse enter class) …

Member Avatar for emreozpalamutcu
0
621
Member Avatar for ac20734

Hello! I am trying to write a program using recursive functions to identify the path to a given maze. The thing that I am confused about is how to move to the next direction in order to check which way the path goes. For example: 000000 011100 010100 010110 0S00F0 …

Member Avatar for gerard4143
0
232
Member Avatar for atticusr5

Hello all, So I am having trouble figuring out a runtime error I am getting in my code. Essentially I read in data and push it into two lists (using the STL list). Then I use the .sort() function to sort the data by average. However I am having a …

Member Avatar for atticusr5
0
179
Member Avatar for cppgangster

I have just started learning Gtkmm basics, and I the box widget is doing my headache, and here is the problem: [CODE] #ifndef NEWFILE_HPP #define NEWFILE_HPP #include "gtkmm/window.h" #include "gtkmm/scrollbar.h" #include "gtkmm/adjustment.h" #include "gtkmm/box.h" #include "gtkmm/label.h" #include "gtkmm/scale.h" #include "gtkmm/togglebutton.h" class window:public Gtk::Window{ public: window(); ~window(); private: Gtk::VScrollbar bar; Gtk::Adjustment …

Member Avatar for musiord
0
221
Member Avatar for drumboy354

Hello, I'm not new to C++ but I usually program in Linux. I'm currently programming in Microsoft Visual Studio 2010. I just installed the Magick++ x64 binary library. I've read the "detailed" installation instructions on what to do next but honestly I am completely lost. In the .pdf it says: …

Member Avatar for tamoghnaroy
0
142
Member Avatar for reemhatim

I'm writing a program that inputs the amount of money and outputs it preceded by dollar sign and divided by commas into groups of three digits I'll enter the money as string and call function called mstold()and returns an equivalent number as long double so my problem is how can …

Member Avatar for Ancient Dragon
0
383
Member Avatar for tamoghnaroy

Hi, I am a rookie coder. My goal is to incorporate the magick++ features of reading and converting different image files to an existent project. So how do I go about this? Should I download the binary installer or the source files? And what to do after that? I am …

0
183
Member Avatar for sandersfm

// Does anydody can help me with this program and make it work. // this is the main //Now just need to write average functions. [CODE]#include<iostream> using namespace std; // function prototypes. void getScore(); void calcAvg(); void findLowest(); int main () { int Score; //ret is for return :) another …

Member Avatar for sandersfm
0
153
Member Avatar for plang007

After your program works correctly for one student, add a loop so the user can process any number of students. Prompt the user for the number of students to process; use that value to control the loop. *How do I prompt the user for the number of students to process …

Member Avatar for NathanOliver
1
810
Member Avatar for cousinoer5

I thought this program was as good as done, turns out, it's more broken than I thought! Right now I'm in a panic, since it's due tomorrow, and I have a few big problems with it. Problem 1: I need to either open an existing file, or a new one …

Member Avatar for cousinoer5
0
209
Member Avatar for thecoolman5

hey, this code I wrote wont work. The 2nd and 3rd buttons wont show up in the program. [CODE] #include <windows.h> /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /* Make the class name into a global variable */ char szClassName[ ] = "WindowsApp"; int WINAPI …

Member Avatar for thecoolman5
0
2K
Member Avatar for VasquezPL

I know how to replace part string... [code]if (linia->Contains("system_token")) {poprawka = linia->Replace( "system_token", systems );}[/code] but what should I do, If i need to replace ENTERs (linebreaks)... For example: User type in textbox [code] Hey, I am Michael [/code] The result (taken as variable) should be: [code]Hey,</br>I am</br>Michael[/code] Thx!

Member Avatar for VasquezPL
0
92
Member Avatar for aaronmk2

I want to read in multiple lines from a file, but I am only able to get my program to read the first line. The program prints out two other lines but the values are zero. [CODE] double cost[3]; int lowerRange[3]; int higherRange[3]; bool active[3]; ifstream inClientFile("ad.txt", ios::in); for (int …

Member Avatar for jonsca
0
153
Member Avatar for beejay321

[CODE]int userChoice(){ int choice; cin>> choice; while (choice!=1 && choice!=2){ cout<<"that is not a valid choice please choose again "; cin>>choice;} return choice; }[/CODE] the whole point of this is that if a user doesnt enter 1 or 2 then it tells them to enter 1 or 2 and wont …

Member Avatar for Crutoy
0
246
Member Avatar for CronosAkroma

[CODE=c++]#include <iostream> #include <fstream> #include <string> using namespace std; int main() { string linea; ifstream fileIn("input.txt"); ofstream fileOut("output.html",ios::out); //working with the input text if (!fileIn) cout<<"\nERROR: Unable to read the file!\n"; else { //working with the output text if (fileOut.is_open()) { fileOut << "<html xmlns=\"http://www.w3.org/1999/xhtml"; fileOut << "\" xml:lang=\"en\">" << …

Member Avatar for WolfPack
0
137
Member Avatar for Alice1990

Hi, its an assignment i need to do. The while loop working on well when i input an integer but when a letter is being input, the while loop run for infinity. I had seen through the other thread but still cannot understand how to do. Please help... [CODE]while(choice!=1&&choice!=2&&choice!=3&&choice!=4) {cout<<"The …

Member Avatar for jonsca
0
316
Member Avatar for plang007

I can not seem to figure out how to drop the lowest score. When I run it it says the lowest score dropped was 0. How do I fix this? [CODE]#include<iostream> #include <string> #include <cmath> using namespace std ; string getName (); int averageScores( int); void printMessage (string, int); void …

Member Avatar for plang007
0
628
Member Avatar for kas04

So this is my first post. I looked everywhere and can't find any help. Here is the problem: Create a 2 dimensional array of integers with 3 rows and 8 columns. Fill this array with 0’s and 1’s (binary numbers) randomly. Each row represents a byte. You are to add …

Member Avatar for kas04
1
137
Member Avatar for beejay321

first off i apologize for my ignorance but i cant seem to find a clear answer to this question, if i have a function with variables in it, do those variables reset every time i call the function for example if i write code to build a game and then …

Member Avatar for sfuo
0
137

The End.