- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 4
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
Re:
When I try to compile the program below in Eclipse I get two erros, ‘const class Fraction’ has no member named ‘n’ & ‘const class Fraction’ has no member named ‘d’ When I compile it on the command line with g++ -Wall FloatFraction2.cpp Fract7.cpp -o FloatFraction I get more errors … |
|
Re:
Hello. I want to submit a code stuff with an explanation. It is not a valid code. Someone can help me to find error? <code> ** ** I'm trying to build a program that change numbers writen in decimal notation. If we consider each ranges of numbers: unities, 10-es, 100-es … |
|
Re:
what I am trying to do is store same letter to same node. For example: let say I have person, people is sent to be put into a node. This will create two node. I want to some thing like P: Person People Person and People are same note When … |
|
Re:
So, I have heard about code porting, basically where you take existing code from one language, and translate it to another language. What I want to know is how does this process work? Are there automated tools for preforming this type of thing, or is it always a manual process? … |
|
Re:
Hello Everyone! I am wondering about the thory behind the box blur. I have an assignment, and I wrote a program implementing the box blur the way it was described in my assignment which is "When centered on a pixel, its values are multiplied with each corresponding surrounding pixel values, … |
|
Re:
Ok, so right to it. int CSQLDB::Init(const char *host, const char *user, const char *passwd, const char *db) { //Init mySQL mySQL = mysql_init(mySQL); my_bool rec = 1; mysql_options(mySQL, MYSQL_OPT_RECONNECT, &rec); if(!mysql_real_connect(mySQL, host, user, passwd, db, 3306, NULL, NULL)) { printf("(!!!) mySql connection rejected!\n"); mysql_close(mySQL); return 0; } failed = … |
|
Re:
Hi Dw. I have a question of how can one detect a program attempting execute/run and also most importantly how to allow/deny programs to execute/run. I'm sure we all have came across with UAC where it ask you to allow or deny that program from running, normally this for elevating … |
|
Re:
I have four files in c++ 1. BankAccount.h 2. BankDatabase.h 3. Main.cpp //BankAccount.h #include <string> class BankAccount { public: BankAccount(int accNumber,const std::string& accName); void setAccNumber(const int accNumber); int getAccNumber() const; void setAccName(const std::string& clientName); std::string getAccName() const ; protected: int mAccNumber; std::string mAccName; }; BankAccount::BankAccount(const int accNumber, const std::string& accName):mAccNumber(accNumber),mAccName(accName){} … |
|
Re:
Hi, As we know constructor doesn't have any return value so it is not good idea to perform exceptional handling inside constructor.SO i would like to know if i am opening a file inside constructor and due to some reason (file not exist) failure happened inside constructor then how to … |
|
Re:
I'm working on a project for a tic tac toe game. I'm working on this with a partner (assigned) but he has kind of fallen by the wayside. Here is the assignment: Filenames: ttt.h, ttt.cpp, tttmain.cpp Your second project will be completed with a partner. For this project, you will … |
|
Re:
I have some source code done back when time first started and long before unicoding of a old gaming/chat system used mostly in 90s knowing to millons of young gamers as mplayer.com now questions I have is the server side was coded for Solaris Sparc/Intel server core using Sun workshop … |
|
Re:
I read about cherry-picking. It says: You have one branch x1 and branch x2. You want to take one commit from many commits of x2 and want to merge it with x1. You have 4-5 commits in x1 and now you take one commit or range of them and want … |
|
Re:
Write a function to take an integer and two character. Your function should draw a shape similar to the one below. For example: DrawShape( 5, '#', '*') Outputs the following *#### #*### ##*## ###*# ####* p.s: (without the(. at the begining) i added cous the shape wont set right if … |
|
Re:
hello guys i have to make a simple game project , i not know game programming , any body help me where to start game programming |
|
Re:
In below code, I expect 1 to be initialized in all the 10 elements in x array. But, it doesn't seem to be working. May I know what I am missing here int main() { int *x = new int[10]; //std::cout<<"address of x: "<<&x<<std::endl; for(int i =0; i <10; ++i){ … |
|
Re:
hello guys i make a simple calculator in window form application and i want to add it with a scientific calculator form how can i connect these two forms |
|
Re:
Good day to you all people. I personally like to use Visual Studio and Dev C++ to develop my c++ apps. Recently, I was introduced to a new environment, Textpad as the editor and Cygwin as the compiler. I found interesting that in Visul Studio and Dev C++ you are … |
|
Re:
Hi guys, after learning that MingW is newer than Cygwin, I immediately switched over to MinGW and deleted my Cygwin file. I have added the MinGW directory into my Path Variable and also separately downloaded the MSYS which contains the make.exe program. Everything seems fine... until when I ran the … |
|
Re:
Good day. I was surprised to see that there are no members on objects declared as IFSTREAM and OFSTREAM. I have this code; ifstream indata; ofstream outdata; indata.open(""); outdata.open(""); It can't seem to recognize the member "open". Why is that? Any solution? |
|
Re:
Hi guys! Just needing a little of your help here. I have been looking for a free IDE where I can program in C++ for the past months now after messing up my MSVS 2013 for Desktop. I found Netbeans to be a nice alternative. But I am having some … |
|
Re:
Hi, I have an `unsigned char c[16]` and I need to read 2 char at a time and put those in an index. Heres what I have so far. std::istream& function(std::istream& aIStream){ for (int i = 0; i < fSize; i++) { //this is not working.. // I tried static_cast<char*> … |
|
Re:
Hey everyone, I'm trying to convert some values to ASCII characters. I understand that this is possible through means of something like this: std::cout << (char)0x31 << std::endl; // prints 1 std::cout << (char)0x4C << std::endl; // prints L However, my problem is that i have char array that contains … |
|
Re:
Hey guys, I just learned the very basics of arrays and I have to write this program of a tic-tac-toe game. The requirements are this: Write a modular program that allows two players to play a game of tic-tac-toe. Use a two-dimensional char array with 3 rows and 3 columns … |
|
Re:
Hi guys, I would like to discuss my design with one query. below is the code snippet. It is clear from below code snippet that class pd is privately derived from AbstractClass as both are different classes and there is no relation between them.Now in my class pd i need … |
|
Re:
Average #include <iostream> #include <cstdlib> using namespace std; bool check(double element[], int count); int main() char redo; do { system ("cls"); double elements = 0, i = 0, j = 0, average_elements = 0; int k[1]; bool correct; cout<< "This program will show the average element of a sequence.\n\n"; cout<< … |
|
Re:
I've learned the basics of c++ Now, I want to develop and enter the graphics world, Any suggestions? |
|
Re:
Hello, I need to write a program that calculates how many days from year January 1, 0000 to any specified date including leap years. When I run the program that I have, I am off by a few days for any given date. Can someone please check out my code … |
|
Re:
So I have this so far, not sure how to make dollars * e^(rate*time) #include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { //declare identifiers double rate = 1; double time = 2; float dollars; float total=0.0; //initialize identifiers total= pow(exp(1.0), rate*time); cout << fixed << showpoint … |
|
Re:
Define a structure Ticket that holds data items of a carnival which includes: name of the carnival, total amount of tickets, price per ticket, total tickets sold and total sales. The total sale is based on the price per ticket and total tickets sold. Input the data into structure type … |