49,761 Topics
| |
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 | |
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 | |
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 … | |
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]; … | |
I don't know how to insert a string into a listbox.I hava added a extended style as gridlines for listbox. | |
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 | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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] … | |
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, … | |
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 … | |
[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 … | |
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 … | |
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 ) … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 #? |
The End.