49,761 Topics

Member Avatar for
Member Avatar for jems000

when i am using graphic in my program and copy the .exe file in another computer where c++ is not available its return a graphics error(EGAVGA.BGI) is not found. why?? and how can i solve this problem.

Member Avatar for jems000
0
154
Member Avatar for monogana

hi all, if you look at the code below you will see that i am trying to get a template function to return an iterator based on the type type of one of its parameters, i cant seem to get it to work i dont want to have to pass …

Member Avatar for monogana
0
172
Member Avatar for AutoC

Hi, I need to write C++ code to find the factors of a polynomial.For eg. X^2-1 should return x-1 and x+1...anyone have any ideas on how to do this?

Member Avatar for ddanbe
0
108
Member Avatar for STUDENT#101

hi I have crreated a conde to try and take input rom a user as a string then break it up into bits and pass it o it's functions but the values are not releacting at the functions and anyone has any other way o converting a string into a …

Member Avatar for Ancient Dragon
0
244
Member Avatar for Jennifer84

I am encounter a problem that I dont understand what is happening. I use the Form application where I from Form4 will open Form22 like this wich works. [code] #pragma once #include "stdafx.h" #include "Form22.h" Form22 ^form22 = gcnew Form22; form22->ShowDialog(); [/code] What I need to do now is to …

Member Avatar for Jennifer84
0
111
Member Avatar for oling

I have trouble with getting the correct number of characters displayed when returning this simple function. Does anyone see what I am doing wrong in the function (the cout function outputs -2 instead of 4 which is the lenght of "test")? Thanks: [code] #include <iostream> using namespace std; int mystrlen(char …

Member Avatar for oling
0
102
Member Avatar for vijay.mv

Hello Sir/Madam.... I have recently joined a company in which they have asked me to study vc++ tool.. IF there are any websites that you would suggest for me to go through and author of any good books for vc++ which are available, it would be very helpful.. Thanking you …

Member Avatar for Denniz
0
50
Member Avatar for skatamatic

I'm writing a class for simple equation parser. I've completed the - and + operators, and am currently working on implementing brackets. They seem to work most of the time, except I occassionally get strange results, such as with 10 - ((10 - 20) + (10 - 20)) returns 40! …

Member Avatar for iamthwee
0
131
Member Avatar for Levio91

I am a 17 year old beginner to C++ I want to find a beginner project that I can set my mind on so I can have a clear goal. What projects do you recommend? Please make them beginner friendly. I am having a huge problem with lessons, so I …

Member Avatar for ithelp
0
70
Member Avatar for Bhoot

My project is to develop a 2D LAN ( 2- player) game in MFC. Would anyone of you recommend a game which would be easier to develop?

Member Avatar for Freaky_Chris
0
53
Member Avatar for gwenky

Hello, I am working on this program and am having problems trying to figure out how to display my results. I know I need to create a void display() option, but I'm not sure what to define within it.... Here's what I have.... [code=cplusplus] class Complex { public: Complex(int r …

Member Avatar for vmanes
0
89
Member Avatar for gangsta gama

Hello all, I was wondering how I could make this with larger numbers instead of scientific notation or whatever it is. I have attached my code and here is what I did: 1. Typed in E for exponent and hit enter. 2. Entered 9 and hit enter. 3. Entered 9 …

Member Avatar for ArkM
0
168
Member Avatar for lightzoutdeuce

Can't figure out a for statement that will make this function work...help please ASAP Receives nothing from main Returns an even integer Ask the user for an even integer Read in the user’s input value. Repeat the prompt and input for any invalid numbers until a value of the correct …

Member Avatar for gwenky
0
143
Member Avatar for sinner
Member Avatar for Ancient Dragon
-1
51
Member Avatar for sinner
Member Avatar for Ancient Dragon
0
50
Member Avatar for clutchkiller

after you switch (variable) case 1: etc.... if the switch defaults, how do you return to repeat the switch case? do you just do a simple cin>>var and it will reset or you have to loop it? Sorry if question isnt clear

Member Avatar for clutchkiller
0
81
Member Avatar for aksshe10

hey i need this for my exams the gave me a summary about a program which gets password from the user an saves it inside the exe itself.you can also give me help for encription please do write the source code

Member Avatar for aksshe10
0
131
Member Avatar for imput1234

Hey guys, I've got a beginner question about this for some reason the getline function will not work, does anyone know why? I can't seem to figure it out [code]int main () { string studentname; int test1, test2; cout << "Enter first test score"; cin >> test1; cout << "Enter …

Member Avatar for imput1234
0
93
Member Avatar for shiniboy

[CODE] #include <cmath> #include <iostream> #include <fstream> #include <iomanip> using namespace std; bool InitializeBoard(int** connectNBoard, int numRowsInBoard ); bool MakeMove(int** connectNBoard, int numRowsInBoard, int player, int columnChosen); bool DisplayBoard( int** connectNBoard, int numRowsInBoard); bool CheckWinner( int** connectNBoard, int numRowsInBoard, int numConnect, int columnChosen, int player); int main() { int numRows, …

Member Avatar for ff4930
0
70
Member Avatar for mmeyer49

I am having a tough time grasping functions =/ the book we use is pretty much useless. My problems are 1) Knowing what to put into the function ( ) 2) How to validate it ( nothing in the book about it) Any help or ideas I will greatly love …

Member Avatar for freudian_slip
0
180
Member Avatar for lightzoutdeuce
Member Avatar for Smed

I'm currently working on a project that manages multiple notepad windows in a MDI client area. It runs just as I want it to, except that the notepad windows seem to freeze up and become glitchy inside of the parent window. I was told to look into using InvalidateRect, but …

Member Avatar for rdjusr
0
173
Member Avatar for swbuko

I'm currently writing a program that takes in a function such as ( 7x+19 ) and I need to evaluate the function that user inputs at range of numbers. I've got the loop figured out to loop through my desired numbers, but I don't know what to call the function …

Member Avatar for skatamatic
0
235
Member Avatar for WesFox13

Hey all I've been writing a program that cheks an ISBN number as valid or invalid as an assignment for a class but I need a little bit of help. I get these errors when I try to compile it: error C2275: 'std::string' : illegal use of this type as …

Member Avatar for VernonDozier
0
97
Member Avatar for Lukezzz

How is it possible to put a picture before the listviewItem. Under C: I have a picture.bmp that I would want before "Item" in the listView1. I use "details" as for the property in the listView. "Item" comes up 5 times in a List but no picture. What could I …

Member Avatar for Lukezzz
0
98
Member Avatar for localp

i want to write a line of code that could extract a text ending with the character " - " example flower - // the out put i want is also flower in this text file there may be a lot text written in different formats, but i only want …

Member Avatar for ArkM
0
35
Member Avatar for localp

i need to write a c++ function that could read in the values of a text file, but in the text file we need to eliminate duplicate values; for example we may have values like ;;;; this is a text file, and it contains the above students, there first name …

Member Avatar for iamthwee
0
141
Member Avatar for Seamus McCarthy

Hey i'm trying to use this trim function i wrote but its going wrong for me. I can trim from the front but not behind, e.g. if i enter **bob it works but if i enter **bob** it just prints nothing. please help [CODE]#include <iostream> using namespace std; void trimFunction( …

Member Avatar for iamthwee
0
574
Member Avatar for localp

i have a text file as follows; james nnnnnnnnn mmmmm kristy llllllllllllllllll oooooooo james pppppppp ppppppppppp james iiiiiii kkkkkkkkkkkk now for the out put, i want it as follows ;;;;;;; james nnnnnnnnn mmmmm pppppppp ppppppppppp iiiiiii kkkkkkkkkkkk kristy llllllllllllllllll oooooooo the code i wrote for this is as;;;; [icode] void …

Member Avatar for iamthwee
0
575
Member Avatar for twek

Hello, im not necessarily new to c++ but i cant seem to find a good way to get input from other devices other then the keyboard. To get keyboard input i have been using [ICODE]GetAsyncKeyState();[/ICODE] i was wondering if there was a similar function to get input from other input …

Member Avatar for twek
0
242

The End.