49,761 Topics

Member Avatar for
Member Avatar for integer*09

Hi All, I just created a simple displaying of photos in a CLR window form application just like a slideshow of photos. With the code below that is within a button_click, however the form will displayed only the last pic (picgen(3)) after all the sleep time of 4.5s. What should …

Member Avatar for integer*09
0
101
Member Avatar for watz_uph

hi all, i need to read coordinate from a .txt file to draw lines , here is the example of the file [code=txt]1E20, 1E20, 1 154.0872,3703.414,1955 178.458,3719.069,1955 239.8909,3753.263,1955 1E20, 1E20, 2 2480.712,105.5662,1950 2486.905,144.5641,1950 2512.991,215.5622,1950 [/code] lines 1 to 4 is line 1 coordinate lines 5 to 8 is line 2 …

Member Avatar for watz_uph
0
154
Member Avatar for molocas

Hello every one, I am new in C++ and I have a new project. I have a text file with numbers that are coordinates x,y The text filesĀ“s format looks like this: X Y 234 5678 343 3456 193 235 and so on Steps, 1.- Put all this file in …

Member Avatar for Ancient Dragon
0
170
Member Avatar for Kanoisa

Hi guys, Im working through accelerated c++ book and in chapter 4 ex 2 i had to build a program that displayed the square of ints (i) 1->100 inclusive using setw() to align the results. this i did ok and it works fine like 3 lines of code. However in …

Member Avatar for arkoenig
1
178
Member Avatar for PixelExchange

Hello. I am currently creating a software that requires the detection of "cheating." While my software is open, players will not be allowed to have certain types of content open. Ex: --- Lets say that my software, is a Chess Server. In order to prevent cheating, my software must be …

Member Avatar for PixelExchange
0
106
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
272
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
183
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
95
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

The End.