Beginners - April 2013 (Page 62)

Test a Class type & Heritage
 
Hi everyone ! I encountered a problem while I was coding a game in C++ about Class types and Heritage. My raw question is the following : Is there a way t...
[1 reply] : Do you really need player spaceship and enemy spaceship be two differe... (by MiiNiPaa)
by Arkips
Assigning a character to an argument?
 
How can I assign a character to argv? In a broader scope my problem is that I need to use input from the command line (as opposed to using cin) to determine ...
[5 replies] Last: Aah, i see. Thanks Chevril. Vlad, it turns out i'm an idiot. I've set... (by Arkips)
by Maissa
is it possible ?
 
lets say we have a class animal //which is base and we have a class dog,cat,horse that inherits the class animal can i make a pointer from the type animal an...
[4 replies] Last: oh sorry , now i get it thank you very much ! (by Maissa)
by suraya
inheritance and using constructors
 
hey guys i wrote this code this is the header file #ifndef VAR_H #define VAR_H #include <iostream> #include <cstring> using namespace std; class ...
[3 replies] Last: thank you guys :) (by suraya)
text file to arrays
 
so iv'e been going in circles for a while now and i just gave up lol so it goes something like this. there is this txt file on the inside it has: student1 ...
[3 replies] Last: thank you guys for your answers i would use struct's and vectors but ... (by natsu546)
Using new operator in class constructor
 
#include <iostream> using namespace std; class numbers { private: float data; public: numbers(int x) // Constructor { float ...
[2 replies] Last: Try this: class numbers { private: float* integers; public: ... (by Stewbond)
Reliability Issue
 
I am trying to write a program that simulates the configuration shown below, using a component reliability of 0.8 for components 1 and 2, and 0.95 for component...
[4 replies] Last: Sorry! It says " 17:16: error :'time' was not declared in this scope" ... (by tanyacjones)
by Fyah
Someone please help me understand VOID in C++? (1,2)
 
hello i recently learned about the VOID function in C++ but even though i asked questions i was still left confused about it. people have given me examples but ...
[29 replies] Last: well honestly i have created a practice code to practice the void type... (by Fyah)
Question about references
 
Why does the following compile in VC++11: int const& val = 5+5; What does this mean ? Specifically, where is the reference pointing?
[2 replies] Last: Ah ok, I really should read up about this lvalue/rvalue business. Than... (by ausairman)
Broken program
 
I need to create a function that can find the average score. I came up with this #include <iostream> #include <iomanip> using namespace std; // This program...
[2 replies] Last: Thank You! (by rjryan94)
by SlatA
Fill 2D Array
 
I have already fixed the code. Look at other post
[3 replies] Last: ^^ That is how I worked out the code. It works and compiles properly. (by SlatA)
swap elements in a column
 
Hi , i need help here .. i have to write a function that swaps elements in one columns for a matrix , for example : 1 3 4 3 5 9 if i choosed column #3 ...
[5 replies] Last: Thank you guys , but i can't say colA and colB , i want even if the r... (by becomingEng)
Need Help for Mapping / Searching addres in Array 2D
 
My Teacher wants me to make a science project with C++. the project that he wants from me is "Mapping / Searching Address in Array 2D". please everybody help ...
[no replies]
by elmurp
Problem with a function
 
I'm currently having a problem with the void function getdata in my program I'm writing. I'm not quite sure what I'm doing wrong and I could use some help. I'm ...
[5 replies] Last: Straightforward enough. 'listSize' wasn't declared anywhere. (by Zhuge)
hello everyone, i need some quick help
 
hello everyone im doing this assignment for my class. i need to find the height, distance, and time of a projectile thrown. the user has to input the angle and ...
[12 replies] Last: @Chervil thank you so much you just saved me another whole day of hitt... (by ssandhucodewiz)
Help implementation
 
I need help with two questions. I need more time to do it myself, as I'm beginner, but I would appreciate it if someone could do the following two questions. 1...
[1 reply] : Erm, I don't see a good reason to do your homework for you. :/ (by Zhuge)
Need help with Tic Tac Toe game
 
having trouble getting the program to loop until someone wins. my code: // ------------------------------------------------------------------ // Purpose: ...
[1 reply] : bump (by byronflds)
PLEASE PLEASE HELP WITH C++ CLASSES.
 
Here's what i haD to do ? 1) Write a program which simulates the rolling of pair of 6-sided dice and computes the % occurrence of a specific dice roll val...
[no replies]
Something is wrong with my code?
 
The following is a game of battleship, but after a few rounds it stops completely and only displays the battle ship... I don't know what the problem is with my ...
[17 replies] Last: Stroustrup said he's not happy with the operator precedence in C++, bu... (by LB)
Recursive backtracking question
 
So, in short I'm working on a knight's tour program. If you don't know what that is, the knight gets put on the chess board and you have to move it to every spo...
[no replies]
April 2013 Pages: 1... 6061626364... 83
  Archived months: [mar2013] [may2013]

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