Beginners - May 2014 (Page 6)

Suggestion on finding a mentor or a team
 
Hello all! I'm full time worker and student. I earning a degree in CIS with a concentration in Web Game Programming. This includes, Interactive Web Page Scripti...
[7 replies] Last: Actually, I'm just trying to get one project finished. If all goes wel... (by Daleth)
Creation of a member object
 
Is it possible to create an object outside the initializer list? (I have an idea, I have seen it in another post, but I am not sure) Example: class Bar...
[4 replies] Last: No, I was just asking, no problem for now. Thank you. (by closed account jvqpDjzh)
Comunication between classes
 
Hi everyone. I have 3 files on my proyect, Doctor.h, Appointment.h and main.cpp. The main.cpp includes a menu and calls Doctor.h and Appointment.h methods. B...
[9 replies] Last: See if this helps: http://www.cplusplus.com/doc/tutorial/arrays/#array... (by Zhuge)
reading from a file
 
I need to a 7x7 matrix read from a file , but it isn't working.. Any idea why? bool LoadGame() { ifstream myfile("file".txt"); if (myfile.is_open())...
[2 replies] Last: Array indices start at 0. So a 7x7 matrix has indexes from 0 to 6. Yo... (by dhayden)
fstream - cannot read file
 
so my code cannot read my file even though i had created a record. when i search for the record, it says record does not exist. here's the code. The part where ...
[2 replies] Last: I tried this program, (though I trimmed some of the input to save typi... (by Chervil)
by mlf
Scope of a set allocated on the stack
 
Hi I am looking for someone kind enough to send me a refresher on memory allocation in c++ in the following case. The following code seems to work. However "std...
[6 replies] Last: Thank you so much. (by mlf)
Calling another constructor (delegating or not) from a delegating constructor
 
Is it possible (C++11) to call another constructor from the list of initializers of a delegating constructor? (I've tried, and it seems that we can't!) Somethi...
[2 replies] Last: You can delegate work of initialization to another constuctor. So yo... (by MiiNiPaa)
Save Game
 
Hi Im a c++ beginner so i'm creating a game in which people throw the dice and according to the number they get, they get's money, its a well user friendly cons...
[2 replies] Last: get your game working first, do the dice rolling and the winnings allo... (by Jaybob66)
Connect four advice needed!
 
Hi guys, i'm currently trying to create connect four in C++, however i'm having a little trouble discerning why my win check going vertical declares a winner d...
[2 replies] Last: Thank you very much! I know my code is a little messy, Thrown myself i... (by garethjohn)
Beginner needs help with matrix.
 
Hello world! I was searching online for a solution but couldn't find a specific answer. I need to write a code in c++ that multiplies a square matrix with ...
[1 reply] : I would usually know how to transpose a matrix What makes you think ... (by keskiverto)
Help! hash table
 
problem with searching. it has infinity loop when try to search.. and what should i use if i wan to change the user input to internal array, using strcmp? any...
[3 replies] Last: I'm assuming that you mean each node has a key and a value. I'm also a... (by dhayden)
by ak16
Size of Class
 
why satic data member not consider in size of class? class Test { static int i; }; int main() { cout<<sizeof(Test); } OutPut:- 1 ...
[11 replies] Last: sizeof() tells you how much space must be allocated to store an instan... (by dhayden)
by ak16
Serialization and Deserialization
 
Hi friends I have to sore the object into data base. That object having at least 70 members. If I create table having all these members then column become 70 ...
[2 replies] Last: yes, you can serialize the object into a stream and save the contents ... (by Jaybob66)
Adding Hexadecimals
 
I have to write a program to perform addition of two hexadecimal number each with up to 10 Digits. If the result of the addition is more than 10 Digits long, th...
[8 replies] Last: Your solution can be broken to these steps. 1. Input the hex numbers a... (by a k n)
delete function
 
Hey guys I'm having trouble creating a delete function. First I need to scan an array and delete any line I want. Please help. Ill post the whole code that I cr...
[7 replies] Last: sorry, I forgot to check back on the post. I'm a bit confused at the ... (by closed account 2UD8vCM9)
by Rockyy
TypeCast Problem
 
Hello All I am getting error in my below code. const unsigned char DD = {0x12, 0x01, 0x00,0x01, 0x00,0x0...
[6 replies] Last: Exactly as Disch has stated. Are you intending to modify DD in the ... (by closed account j3Rz8vqX)
by swikir
variable equals vector object
 
how I can make variable equals vector object #include <iostream> #include <ostream> #include <string> #include <fstream> #include <vector> #includ...
[12 replies] Last: thanks so much , now everything is ok (by swikir)
by honett
vector problem
 
Im creating a panel bank class,Banks, derived from SolarPanel class. SolarPanel class is supposed to take a vector of doubles for its parameters. i had no pro...
[1 reply] : From your first code snippet: for(unsigned int i = 0; i < Years; i+... (by Daleth)
by swikir
write vector to file
 
Hi, I have lots of problems in my program, but now I need some one to tell me what is wrong with writing the vector to the file I have tried this way out side t...
[9 replies] Last: So, I am assuming you did the below: ostream& operator<<(ostream& os,... (by closed account j3Rz8vqX)
by csharp
sort function
 
I am trying to write sort function, sort's job is to rearrange a, b, and c so that a is the smallest #, c is the largest #. I wrote one and it worked but it ...
[6 replies] Last: At this point you have to think about what you've been told so far. (by Duthomhas)
May 2014 Pages: 1... 45678... 55
  Archived months: [apr2014] [jun2014]

This is an archived page. To post a new message, go to the current page.