49,761 Topics
| |
ok, here's the scenario (and maybe i will finally get this assignment finished) ... i have a class IntArray. at the moment i have it all in a .C file. i have a little main section that has minimal testing in it (will do something more formal later). my prof. … | |
I am trying to teach myself C# and I have run into a problem with one of the chapter assignments. The problem is as follows: Create a class named *City*. Objects will be instantiated from this class. Include fields that hold the *City's* name, its state, and its population. Include … | |
in the skeleton code that my instructor provided, he has some assert (boolean statement) calls. is assert a keyword in C++ and is it a built-in method ...? do i need to put something at the top of my code to make sure it is called? at the top of … | |
i have been working on this all DAY LONG. i am new to C++ and Unix and need to write this little tiny code in both. i am tripping all over myself with references and dereferences and operator overloads .... if anyone could help me decipher what my problem(s) are, … | |
I need to extract the middle numeric number. It works for two order of numbers, for example: when I enter the numbers in this order 12, 14,6 it works...when I enter in this order 12, 6, 14 it works as well, but when I enter in this order 14, 12, … | |
hi, i am REALLY new to C++ and don't really understand much of anything about the pointers and references and the way the files are set up. HOWEVER, i have an assignment to do that SHOULD help me get a grasp on some of the key concepts before we go … | |
How do I extract the highest number of 3 user inputs in C++? thanks oldroad :) | |
Hello ladies and gents, I'm trying to write this little program in wich I have to enter by keyboard a certain amount of numbers (int) not floating points, and the program must count how many [U]different [/U] numbers I have entered, when the amount is equal to ten, it must … | |
I am seeking to learn C++. I am using the complex base class as source for this learning, by trying to adapt it to a template class. I am calling this class "plexmath". My effort follows ,but does not compile. I would like to retain the "protected" status of the … | |
Hi again. I'm here to [I]wreck[/I] your world. Just kidding. How's your new year, all of you? Going on swell? Eid Mubarak to all Muslims. Bypassing the small talk, I'm here to query you on a doubt I have in dynamic initialization. As I have learnt in school (correct me … | |
Hello i need help creting a class using an accessor funciton and a mutator function. Problem objective: i have to desing a general C++ class that will be used to represent "Building" objects, and meets the following criteria: 1. each building object has a number of rooms(integer value) 2. each … | |
Using C++, Can you take a variable from a text file to use in an if, then statement? As in, your program reads a text file from line, say: 5 column 8 to get the number, say: 1. Then use that number like: If 1 then change to 2 and … | |
i have dev 4.9.9.1...i will create a win 32 console application.. write some code omething basic like... //REMAIN.CPP #include <iostream.h> //necessary for cin and cout commands int main() { int dividend, divisor; //get the dividend and divisor from the user cout << "enter the dividend "; cin >> dividend; cout … | |
Can someone point me to a how-to to overload the matrix bracket operators in C++? I have a class that I want to iterate over like you would a matrix, calling image[row][col]. Thanks! - Josh | |
take a look at this code: --- void redundant_var() { char user_name[]=""; cout<<"insert name: "; cin>>user_name; swap_name(user_name); //another function not seen } --- now, the following code works fine, but i am SURE there is a away to pass in user_name without the need of storing it in a temporary … | |
Hello everyone... One of my friend strongly recommended me this Forum I see here I can get much useful things ... So actually I am new for programming and I just started learining C# language few weeks ago , now I got some understanding in C# ... I really need … | |
| |
hi there. i am new to C++ AND unix. this assignment that i have is really really easy, but the specifics of C++ and getting around in Unix is making it really hard and time consuming. i have a really small program that should be working, but i am getting … | |
Hello All, I'm very new to C++ and programming in general and am having probelms with an assignment i have been set. I've been using ?Blood dev C++? ( i dont know if this is any good?) I have basically finished the program and am getting one syntax error that … | |
**I use Microsoft Visual Studio .NET 2003's compiler I having trouble trying to create a 10x10 2D array. The user is supposed to give me a starting number and then it fills the array from top to bottom with ascending numbers. I am terrible at arrays and this task doesn't … | |
this prog. is supposed to demonstrate a strcpy error...however im getting an error and it wont run....once again im suing a dev c++ bloodshed compiler. and heres my code....once again i know it has a strcpy error thats the reason for writting the program..to demonstrate a char array overflow. strerror.cpp … | |
I have this recurring (read annoying) problem with Turbo C++. I've a program which uses graphics, and for some reason, the minute I run the program, it exits TC with a dialog box saying: "This program has performed an illegal operation and has to exit." The illegal operation on inspection … | |
I have been working on updating a program that was written by someone else in Microsoft Visual C++ 6.0 to Microsoft Visual .NET 2003 (7.1 compiler). After fixing all of the minor syntax errors I came accross one that I wasn't real sure about: c:\DFC\dfc\source\DFCTfo.hpp(422): error C2491: 'DAssociationFile<KEY,VALUE>::getNextAssociation' : definition … | |
i need some direction for a decent free c#/c++compiler...please advise. | |
I received this message while compiling a program w/ multiple header/.cpp files : c:\Documents and Settings\Fiona Chandra\My Documents\CS32\Project1\CombinationLock.h(0) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for … | |
I am learning/relearning C/C++. I have created a template class with various working functions. I have a problem when I try to use code that works for a char datatype with an AnsiString. If I call a template class function by calling a template function and passing a variable "Data" … | |
There is no support for the inport and outport functions in borland C++ win32. Are there any alternative functions avaliable. | |
Hi i'm new to c++. I can sort of make simple programs, but everytime i try to making a program with a GUI the black windows box keeps coming up and sitting in the background. Does anyone know how to get rid of it? I've found some snippets on other … | |
I've created a class Fraction and am trying to use it in a main () but keep getting an error in my compiler that says "main must return int". My teacher says it's fine but i need to compile and run so i know that it works. Any suggestions? Thank … | |
Hi everyone, I just came home from a software conference in nagoya, Japan where they had any kind of software you can think of on this planet. There was one talk i went for and i think its quite interesting to have it discussed fully here. Alot of the companies … |
The End.