49,761 Topics

Member Avatar for
Member Avatar for +_+man

Hi Everyone i want help making a Library Management Software So I can Make Command line and i need help for making it in Visual C++ Because i am new to Visual C++ Regards +_+ man

Member Avatar for Ancient Dragon
0
139
Member Avatar for subkin13

Hello, I need a way to get a function return type during preprocessing or compilation(meta...). [U]example:[/U] [CODE]int f() { MACRO_OR_META_WHICH_RETRIEVES_FUNCTION_RETURN_TYPE[/CODE] Thanks, Leonid

Member Avatar for subkin13
0
194
Member Avatar for moonL!ght

hi,im seeking for some help i want the member of my class to be of type string.. so, some of my member function to return a string but an error is keeping occuring .. iv tried to include the string heder file in the class heder file. it says missing …

Member Avatar for moonL!ght
0
124
Member Avatar for invisi

What does int* resizeArray do that int resizeArray doesn't, what' the deference? And why do I delete nArray, and not newArray? [CODE]#include <iostream> using namespace std; void printArray(int* nArray,int size) { // code printing array } int* resizeArray(int* nArray, int oldsize, int newsize ) { int* newArray = new int[newsize]; …

Member Avatar for Greywolf333
0
111
Member Avatar for dineshcbe

I don't know how to insert a string into a listbox.I hava added a extended style as gridlines for listbox.

Member Avatar for ganesh_IT
0
57
Member Avatar for ekailan

is three a way to mesure the amount of memory required during the execution of a C++ program , I am using visual studio 2008. Thanks

Member Avatar for Unimportant
0
235
Member Avatar for dorien

Hi, I have just installed CPLEX, and this has installed correctly. It put it's header files under: /home/dorien/ILOG/..../include/ Now I am trying to compile an example, which has: [CODE]#include <ilcplex/ilocplex.h>[/CODE] but I got: [CODE]/home/dorien/C++/cplex-build-desktop/../cplex/main.cpp:35: error: ilcplex/ilocplex.h: No such file or directory[/CODE] First thing I did was lose the .h... to …

Member Avatar for dorien
0
451
Member Avatar for Christ1m

Okay. This problem is from "Objects,Abstraction,Data Structures and Design using C++" by Elliot Koffman and Paul Wolf Gang pg127. #2 Implement an array- based program application that manages a collection of DVDs. The data for each DVD will consist of a title , a category, running time, year of release, …

Member Avatar for Unimportant
0
209
Member Avatar for yesamin

hello how can i do a for loop .. for a guessing game... and the only 5 oportunities to answer..... forexample no you wrong u have 4 guess left" heres my code !!1 this one just keeps giving me an unfishing loop grrrr!!! [CODE]#include <iostream> #include <string> #include <cstdlib> #include …

Member Avatar for Unimportant
0
2K
Member Avatar for Garrett2011

Consider following function: [CODE]void func(const char & input){ //do something }[/CODE] Apparently it makes sense for the parameter to be constant value not reference to constant, Now may a compiler optimize that to constant value so that it'll be the same as following ? [CODE]void func(const char input){ //do something …

Member Avatar for Narue
0
135
Member Avatar for stevanity

Hi Guyz, Here is a really tough problem to solve. Anyone can help out? You need to encode and decode a message in a parallelogram matrix. Eg. If input message is, "This is a problem" then you must put it inside a odd order matrix whose order is determined by …

Member Avatar for stevanity
0
386
Member Avatar for jogieglenmait

i know that its so easy. but i dont know how to do it. ive tried ifstream and ofstream to add a line in a text file. and im sure someone in the past may have already posted this kind of problem. can anyone give me a link to that …

Member Avatar for jogieglenmait
0
122
Member Avatar for malvi

Hello, I am working with rs232, and i have to write program in visual c++ which reads continous data from rs232. For that first i need to open available com ports from pc. I have COM3 in my pc, but i have to write com3 manually in my program. Is …

Member Avatar for peteratoce
0
3K
Member Avatar for Morbane

I have a basic knowledge of C++ but mostly in a limited fashion. I am building an API and I need to send the resulting string to a text box in a Modal Dialog. I will not need to manipulate the string beyond sending it to the text box. The …

Member Avatar for Morbane
0
2K
Member Avatar for bakks

i gto some prob to create this c++.. my Qs this year the club will have an election by assuming that this club have 236 members where 3 will be the candidate of a club president. every member will vote only 1 candidate using the following code : candidate code …

0
40
Member Avatar for MikexDetroit

Hey all, I've spent the last couple hours looking at other posts with the same error and have still yet to figure out what is wrong. I'm just learning C++, I have a bit of experience with Python but, still just getting my feet wet. Here is the code. [CODE] …

Member Avatar for MikexDetroit
0
938
Member Avatar for Intrade

I followed this guide for VC++ 2010, [url]http://msdn.microsoft.com/en-us/library/ms235636.aspx[/url] and apparently I either have a missing module/component or I did something wrong. I followed everything smoothly up until step 6-- "6. To build the project into a DLL, from the Project menu, select MathFuncsDllProperties…. On the left pane, under Configuration Properties, …

Member Avatar for Intrade
0
268
Member Avatar for limergal

Hi, I have a code, but I don't get what I'm doing wrong, can you please help me with this Write a switch statement that tests the value of the char variable response and performs the following actions: if response is y , the message Your request is being processed …

Member Avatar for bhemz11
0
564
Member Avatar for mannuel1021

[CODE]#include<iostream> void selectsort(int*,int*);//function prototype int *smallest(int*,int*);//function prototype void exchange(int*,int*);//function prototype void printlist(int*,int*);//function prototype using namespace std; void main() //this will ask the user to give five integers inside the array and will display it { int *name; const int size=5; int size2=5; name = &size2; int ary[size]; int *plast; plast …

Member Avatar for csurfer
0
193
Member Avatar for burcin erek

this program is trying to add from 1.. to x with return function. but when I enter 10 sum is 54 which is wrong. 1,2,3,4,5,6,7,8,9,10 = 55 [CODE]#include <cstdlib> #include <iostream> int burcin(int); using namespace std; int main(int argc, char *argv[]) { int x; int ft=0; cout << "enter the …

Member Avatar for burcin erek
0
104
Member Avatar for baltair

Hello, I am trying to create a shop where the user can pick an item to add to their cart and after they pick the item, I want to remove it from the list, but I can't seem to remember on how to do it. [CODE] int main( void ) …

Member Avatar for baltair
0
101
Member Avatar for Christ1m

The book Im using. Pg 108 - 124 Objects Abstraction, Data Structures and Design using C++ Author: Elliot Koffman and Paul Wolfgang I copied the example from the book, but the code is not working. I got a lot of errors in Phone_Directory.cpp. I dont know what to do [CODE] …

Member Avatar for Intrade
0
263
Member Avatar for YingKang

I keep getting compiler errors. Could anyone help please? Thanks This is the error message: F:\DPR226\Homework\Student\main.cpp In function `int main(int, char**)': 39 F:\DPR226\Homework\Student\main.cpp invalid conversion from `int' to `int*' 39 F:\DPR226\Homework\Student\main.cpp initializing argument 4 of `void Student::setStudent(std::string, std::string, std::string, int*)' F:\DPR226\Homework\Student\Makefile.win [Build Error] [main.o] Error 1 [code] // main.cpp #include …

Member Avatar for vidit_X
0
118
Member Avatar for Ferny84

I'm having problems with this c++ program. I need to read a file containing years on each line, and determine if the year is a leap year. The isLeap function looks fine, i'm just having problems actually reading the file and implementing the function. Can anyone help me out? [CODE]#include …

Member Avatar for Ferny84
0
130
Member Avatar for power_computer

Hello all, I am given a project and would like some help/guidance from the community. I am not asking for any code just a direction and little advice on how to approach this project or how these things work per-say. I am behind in my classes due to me having …

Member Avatar for VernonDozier
0
1K
Member Avatar for NV43

I'm having a problem being cause by what I believe to be my getMonthValue function which is resulting in my output always being "Saturday." Can anyone give me any reason this is happening? Thanks. [CODE]#include <iostream> #include <string> using namespace std; bool isLeapYear (int year); int getCenturyValue (int year); int …

Member Avatar for goldzero
0
132
Member Avatar for jtxay

Okay well i'm having trouble understanding this program ..in which our professor doesn't even explain..I'm so lost.. I hope somebody can help me please.. here's the problem... I have to write a program in c++ that computes the number of days between two dates using the Julian day number which …

Member Avatar for Akill10
0
259
Member Avatar for bigwhiteegg

for some reason the following function has return numbers of error such as 1. new types may not be defined in a return type 2. two or more data types in declaration of `initialize' 3. ambiguates old declaration `GrowableArray initialize(GrowableArray&)' [CODE]void initialize(GrowableArray &a) { unsigned zero=0; a.elements=zero; a.element=NULL; }[/CODE] and …

Member Avatar for bigwhiteegg
0
3K
Member Avatar for mcook228

I have an assignment to write code to calculate a cubic spline. The values for my coefficients are correct, but the Gaussian elimination part of my program has me really confused. I was given code in C by my instructor, but am struggling in making it work with my code. …

Member Avatar for iamthwee
0
1K
Member Avatar for alex55

So i have a string say string A = junk#crap i want to separate it to separate strings b=junk c=crap how would i go about doing that while throwing out the #?

Member Avatar for alex55
0
146

The End.