Beginners - June 2012 (Page 44)

by R23MJ
how can you get your battery life in c++
 
Hello there, my question is: Is there any possible why to have c++ tell you what your battery life is? example output: Computer: What would you like? U...
[17 replies] Last: The number of seconds of battery life remaining, or –1 if remaining... (by Lowest0ne)
Keep getting Warning
 
Hi everybody, glad to join, and will be around for a long time to come hopefully. I am debugging this code, and I keep getting this warning. So far I have eli...
[12 replies] Last: If you want accurate answers, use floats for your variables, there is ... (by Volatile Pulse)
container or what do i need to learn?
 
Hi i need to create a program where i have to ask for a name then ask for a number. multiple times. in the program i made before i did: # include <iostream...
[1 reply] : struct User { std::string name; //Note the use of string, and not a ... (by BlackSheep)
not getting space? reversing a string
 
This is what I have, but I have no idea why it doesn't work if I add a space to the string! #include <iostream> #include <string> using namespace std;...
[2 replies] Last: Ohhh... I didn't know that, thanks! (by strupan)
by CMinus
Euler 28
 
I am trying to solve Project Euler Problem No.28 Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follow...
[6 replies] Last: The best way to solve this question is math 57 58 59 ... (by eklavya sharma 2)
Basic Fully Functional Calculator
 
For all beginners and 12-year olds out there (just like me, 12 years old)... I just developed this simple calculator, which adds, subtracts, multiplies and div...
[4 replies] Last: ^^ Shouldn't he be programming for a droid or something? :) (by Lowest0ne)
20 Problems Edited
 
I was asked to simplify the question page since a poster previously said that it was too 'messy'. Thanks for the tip! Problem 1: How do you use the scope resol...
[6 replies] Last: For Problem 3, I believe the question is asking about multiple conditi... (by Volatile Pulse)
Include issues (cyclic inclusion)
 
Can someone help me include everything in one file and then have my other files link to that one file? As an example, I have many classes/.h files that need to...
[14 replies] Last: The functions for iostream exist in already compiled binary files that... (by Moschops)
Reference, Copy C'tor etc.
 
matrix_columns MUST point on the same vector as matrix_rows. Copy constructor copy the vector: unacceptable. Move constructor destroy vector of matrix_rows:...
[6 replies] Last: It's still undefined behavior and therefore incorrect. Even if it see... (by Athar)
What do parameters in main() do?
 
E.g. int main( int argc, char** argv ) ? I am running into code like this: int main( int argc, char** argv ) { // If necessary, give the user instr...
[3 replies] Last: Adding to Moschops' answer: argc is an abbreviation for argument... (by closed account zb0S216C)
can someone else try compiling this
 
I need to use the log polar function but have been unable to get it to work. I haven't had any problems with other transformations. when I plug in source whic...
[5 replies] Last: Ne555 yeah I noticed that part was incorrect and just pulled it out. ... (by Dan Feerst)
Arguments v.s. Parameters
 
What is the difference between arguments and parameters when it comes to functions? May I please have an explanation and an example, thanks.
[4 replies] Last: Same as firedraco, where formal parameters are in the signature of t... (by moorecm)
Can attributes be virtual like methods in polymorphism ?
 
Hi all, all is in the title.
[5 replies] Last: Thanks coder777, In my real world, I am constrained to use the data s... (by lalebarde)
by Joking
Address not sticking
 
I have an issue while copying an array, goes like this: --------------------- In main: --------------------- int size = 5; Blah ** array = NULL; array...
[7 replies] Last: Oh. =) Thanks... (by Joking)
how do i include .Equals()?
 
Hey recently i tried .Equals() on my small test calculator, but it doesnt seem to find it ;( Maby .Equals isnt even in c++? here is my code; #include <iostrea...
[2 replies] Last: Thanks! (by wiggertolsma)
by Joking
Passing around a pointer
 
Hello, I'm having issues when trying to pass around a pointer. Here's the code, explanation and question afterwards... ... class CommonList { private: strin...
[4 replies] Last: Guys, here's my feedback on how I solved it, still using dynamic alloc... (by Joking)
stream?? what does it mean?
 
ok I'll use this thread of mine to post new questions from time to time if I encounter a programming term that I don't understand. I know the meaning of "riv...
[1 reply] : hah.. it turns out that this very site explains some of the terms.. ok... (by inablink)
C++ program not outputting what i expected...help?
 
#include <iostream> // for I/O #include <iomanip> // for formatting output #include <cmath> ...
[5 replies] Last: For simple things, a good, general rule is that if it's inside braces ... (by koltonaugust)
Looking to start a 'Beginner' team, to help grow our skills and collab together.
 
I am just starting out in C++. I have basic programming logic. And was thinking that it would be fun, while I am learning C++ to have someone else that is also ...
[18 replies] Last: @clandest Hey, I'm really interested in your group, I've got about 2 m... (by bloisch)
game of life help
 
Hello I just need some help with the bool Life(BoardType Board, int Row, int Col)function. Im not looking for the answer looking for some guidance Descripti...
[5 replies] Last: Sorry, I didn't notice the code in your If and Else statements, change... (by Volatile Pulse)
June 2012 Pages: 1... 4243444546... 51
  Archived months: [may2012] [jul2012]

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