49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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, … | |
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.. | |
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 … | |
[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 | |
A string consisting of letters and digits. How do you do that? How do you code that? | |
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 … | |
[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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.