49,757 Topics

Member Avatar for
Member Avatar for Tank1970

Hi all I am receiving these errors when compiling my code, I am new to C++ programming and have trouble with the actual writing of codes. Here are the errors I am getting. I am not looking for an answer but a step in the right direction to get the …

Member Avatar for jonsca
0
270
Member Avatar for Nulled

I am trying to release a console program I made, and when I tried on another computer it did not work, It told me I needed to download a .dll, I downloaded it, and it gave me some other error. So what am I missing, What do I have to …

Member Avatar for Aranarth
0
90
Member Avatar for vinochick

Here is what I have so far. I understand the middle portion of it. I'm just having a hard time understanding which variables to stick in the voids. [CODE]#include <iostream> #include <iomanip> using namespace std; //function prototypes void getFahrenheit(); void calcCelsius(); void displayCelsius(); int main() { //declare variables int fahrenheit …

Member Avatar for Andreas5
0
1K
Member Avatar for xan517

I have NO idea what I'm doing... I need to link an exe to my c++ project. The problem is, I don't know the code! Help if you can.

Member Avatar for xan517
0
33
Member Avatar for aukeebler

There's no error. The code just stops after you enter the fahrenheit [CODE]#include <iostream> #include <iomanip> using namespace std; //function prototypes void getFahrenheit(int &); void calcCelsius(int, double &); void displayCelsius(double); int main() { //declare variables int fahrenheit = 0; double celsius = 0.0; //get input item getFahrenheit(fahrenheit); //calculate Celsius calcCelsius(fahrenheit, …

Member Avatar for sfuo
0
125
Member Avatar for CHRISTTY MAE

need help again>>> hi! i need c++ codes that will translate a sentence into another language using only arrays and pointers.. all help will be very much appreciated.. thanks..

Member Avatar for daviddoria
0
88
Member Avatar for gutiarfanatic7

I'm trying to make a blackjack game but I'm having a little trouble with a do/while loop. Maybe a do/while loop isn't the right kind of loop to be using? I dunno, you tell me. Here's the code: #include <cstdlib> #include <iostream> #include <string> #include <sstream> #include <ctime> using namespace …

Member Avatar for gutiarfanatic7
0
115
Member Avatar for khaled mohamed

[CODE] struct patient { int ID; char name[60]; char adress[60]; char age[4]; }patients; cout<<"your ID"<<endl; cin>>patients.ID; [/CODE] i want to make file to every patient , my question how to make file with the ID that every user will Enter it please help

Member Avatar for abdelhakeem
0
91
Member Avatar for mamabear

A string consisting of letters and digits. How do you do that? How do you code that?

Member Avatar for Fbody
0
77
Member Avatar for jonnyflash

I'm writing an app that requires a list from Python to be read into an array in C++. The problem I'm having is that I can't get my code to work under any version of Python after 2.4, and I don't think I'm using any deprecated functions. It runs fine …

Member Avatar for Gribouillis
0
1K
Member Avatar for yan_yan

[QUOTE=Ancient Dragon;278809]create a bool flag before the loop starts and set it to false. when a swap is made change the flag to true. on next loop iteration if the flag is still false then no swaps were performed during the previous loop iteration. and please next time use code …

Member Avatar for mike_2000_17
0
72
Member Avatar for Luther von Wulf

What are good name conventions for classes. How for example should the name be different between a base class and a derived class or an abstract class and a concrete class?

Member Avatar for mike_2000_17
0
182
Member Avatar for Duki

Hey everyone, I'm starting a new job on Monday, and I asked if there were any topics I should re-familiarize myself with. Along with the typical data structures, they also mentioned STL. I'm not sure that we ever used STL during my college work (like most classes I assume, we …

Member Avatar for Duki
0
70
Member Avatar for computerdummy30

I need help. Directions: Write a program called powersOf2.cpp and save it in your programs directory. This program should ask the user to input an integer value. It will then raise 2 to all the powers from 0 up to and including the user entered value. For example, if the …

Member Avatar for Fbody
0
105
Member Avatar for ShadowOfBlood

I'm working on an assignment for Computer Science 121. The assignment is to write a program that prompts a user to input an integer and then outputs both the individual digits of the number and the sum of the digits. For example, it should output the individual digits of 3456 …

Member Avatar for 1stDAN
0
4K
Member Avatar for bleedi

Hey! I've got a little problem I have no idea where to begin with. I've got a string and I need to check the insides of it. The string should be formatted like <letter><number>, for example "A1" or "F4". The letters can only be from A to F and numbers …

Member Avatar for Ancient Dragon
0
132
Member Avatar for khaled mohamed

hello, i want to do window by graphics mode in borland c++ but there is a problem when i want to take data from user it isn't appeared in the window i want to appear this data in the screen please help

Member Avatar for Kanoisa
0
94
Member Avatar for sabareesh

class CShape { // store serial number public: static int mnSerialNum; // constructor CShape(); // function declaration virtual int getSerialNum(); // create virtual pure function virtual double Area(double dWidth, double dHeight) = 0; virtual double Perimeter(double dWidth, double dHeight) = 0; virtual void DisplayClassName(); }; error LNK2001: unresolved external symbol …

Member Avatar for sabareesh
0
228
Member Avatar for shanbady

Greetings, i am pretty new to C (a few weeks experience)and i can program some complex programs and small database apps yet i don't know how to program guis in C. Are there any tutorials to program guis for windows in C? (not C++). many thanx if u cn find …

Member Avatar for Nick Evan
0
159
Member Avatar for tennis

If I declared a static variable in a header file, and the header file is included in a couple of .c files. Is there any problem? Thanks

Member Avatar for Nick Evan
0
86
Member Avatar for tkmandanna

Hi, i'm looking to interface C++ programs with matlab image processing and AT commands that are used for sms..The project i'm creating involves a user sending an sms which acts as a trigger, the program should read the data from the sms(it's stored in memory),it should then start a matlab …

Member Avatar for mike_2000_17
0
145
Member Avatar for Scu

I am making a program with list of classes. I have this situation that I'm not aware of how to use: [CODE=c] class clsMyClass { private: unsigned int id, nodStart, nodStop; float pipeLen, pipeDiam; public: void AddElement(clsConducte element); [/CODE] In another part of program I will have a variable list …

Member Avatar for Scu
0
112
Member Avatar for Mafia619

I am making a program in which a user has to enter his username and password inorder to access the main program.....i am making the user enter the password using the [B]getpass[/B] function and i have included the necessary headerfiles i.e. <conio.h> [CODE]do { cout<<"\n\n SIGN IN \t\t"; cout<<"\n\n\n Username …

Member Avatar for jonsca
0
115
Member Avatar for aranjan

Hey guys. Okay so here is a new assignment I have...at the moment I am not sure how to go about taking a vector representing a set and converting it into a tree. Also won't I need to create a new tree for every set? Any help or hints would …

Member Avatar for AkashL
0
129
Member Avatar for Fasola

In my old C++ programming classes I would often trip up on theses basic concepts when things got more and more complicated: 1. Arrays 2. Functions 3. Inheritance 4. Call by Reference 5. Call by Value 6. Pointers I kind of know how they work but don't really know what …

Member Avatar for A.Rehman Amjad
0
1K
Member Avatar for bmos

I was assigned to write a program that will verify a password entered by the user. The program should verify that the password has 6-10 characters and atleast 1 uppercase, 1 lowercase, and 1 numeric digit. The program runs, but will only display the length of the password entered and …

Member Avatar for Anyzen
0
6K
Member Avatar for jokulmorder

hi i'm new and i've got this problem i can't figure out when overloading the assignment operator for a queue object. here's what i've got so far: [CODE]nodeType<Type> *current, *newNode, *last; //pointers for adding nodes bool doneOnce=false; if(this!=&otherQueue){ //no self copying destroyQueue(); if(otherQueue.queueFront==NULL) //if queue is empty, save some time …

1
49
Member Avatar for Luther von Wulf

What are some good exercises for an experienced programmer new to C++? I have found lists and suggestions on the web, but they are always simple or I have already completed them in other programming languages like C or Basic. Something that will help with learning modern C++ is best.

Member Avatar for mrnutty
-1
2K
Member Avatar for rowley4

I need to modify my linked list to hold integers instead of strings by modifying the Node, List, and Iterator class. Don't know how to start this. This is my code. [CODE]#include <string> #include <iostream> #include <cassert> using namespace std; class List; class Iterator; class Node { public: /* Constructs …

Member Avatar for rowley4
0
102
Member Avatar for Auraomega

Hi there, I'm in the process of moving some code into Visual C++ 2008, the code works fine when compiled with Mingw however crashes when compiled with VC++: [CODE=c++] s_cell **cell; *cell = (s_cell *) malloc(sizeof(s_cell) * MAP_X); for(int loop = 0; loop < MAP_X; loop++) { cell[loop] = (s_cell …

Member Avatar for Aranarth
0
165

The End.