
please wait
by kmtompkins
battery reader
|
Hello I just recently posted a question of how to read processor stats and I was also wondering how I could read the battery %. thanks |
Feb 22, 2014 at 2:14am
[4 replies] Last: i don't have code i have no idea what i would use to be able to read o... (by kmtompkins)
|
by tatyana5
Can someone help me code my thoughts to paper please?
|
Hey everyone, so i have a program that i found in the textbook im currently studying which leaves me a bit confused. Theres no examples of it nor can i find any... |
Feb 22, 2014 at 2:03am
[1 reply] : #include <iostream> int main(){ int n; std::cin >> n; //read an... (by ne555)
|
by pezpirate1
Error in the ouput for quantity of 0
|
First of all, thank you for reading this. This code is for a project in my college class. For every scenario this program works just fine. The only issue I am h... |
Feb 22, 2014 at 2:03am
[7 replies] Last: Ahhh. Now I understand. (by pezpirate1)
|
by combzy
Do while loop
|
I'm writing a do while loop and I am very confused on what I'm doing. Here is the code I have and I will explain what it should look like after. cout << ... |
Feb 22, 2014 at 1:58am
[8 replies] Last: Yep you are right, I feel like a doofus, thank you. (by combzy)
|
by JRimmer
Vector of Objects
|
I don't understand why I'm getting an invalid syntax error in the following code. To be clear Visual Studio isn't writing out invalid syntax error, I just mean ... |
Feb 22, 2014 at 1:32am
[2 replies] Last: Thank you. Yeah I just need to add std:: in front of them. Can't belie... (by JRimmer)
|
by SeniSoshitsu
What does 'return 0;' literally means?
|
It's my 4th day here and i'm on Classes (I) part now. I just notice some examples always has 'return 0;'. As far as i know main function should return 0 and ret... |
Feb 22, 2014 at 12:53am
[3 replies] Last: BTW, don't return negative numbers from main. For maximum portability ... (by Duthomhas)
|
by missmango
Perfect number
|
I'm new user C++,I have to write a program that will compute and list all the perfect number from 1 to 1000. [Hint: the solution will require a nested loop]... |
Feb 22, 2014 at 12:44am
[2 replies] Last: An integer is said to be a perfect number if the sum of its divisors, ... (by LI0207)
|
by KFran17
Opening and Analyzing a HTML Document
|
I'm really struggling in this class and just need help completing this code project. I don't completely get what is wrong with it. Can someone please help. It w... |
Feb 22, 2014 at 12:01am
[no replies]
|
by Truzza
New to coding. Problem with simple code.
|
I'm trying to write a program that will some all numbers that are multiples of 13, 15, and 17 but not 30. Anytime I run this code it gives me an output value of... |
Feb 21, 2014 at 11:25pm
[2 replies] Last: I want it to add the number to the sum if it's divisible by 13, 15, or... (by Truzza)
|
by chandeliho
Calculating sum, max, and min values in an array?
|
My professor has approved all the functions until findmax onward- I wrote those after class so they haven't been checked. I have to calculate and display the... |
Feb 21, 2014 at 10:52pm
[no replies]
|
by faust058
For loop issues
|
I have a problem with the for loop. It's not giving me the result I want. What is my issue? #include "stdafx.h" #include <iostream> #include <cstring> ... |
Feb 21, 2014 at 10:41pm
[4 replies] Last: oops. I misread what the program wanted. I got it solved now. Thanks e... (by faust058)
|
by akers54
Conway's Game of Life Origin Function
|
Hey everybody, I've been working on a function to initiate a Game of Life with random blinkers and gliders. I'm coming across two problems with the code. Fir... |
Feb 21, 2014 at 9:49pm
[no replies]
|
Always Crashes - Why? |
OK. So I'm making this program from my C++ course. I have to run a game of Hi Ho Cherry-O. I made one version of the code (which worked perfectly), until I real... |
Feb 21, 2014 at 9:31pm
[5 replies] Last: Looking further into the program, I believe you have the same problem ... (by unsensible)
|
by ReputGlory1
C++ arrays question!
|
I have made my code to cout the average of the values without the k smallest and k highest. I have a question. Where it says "B' SKELOS" i want to make my code ... |
Feb 21, 2014 at 9:10pm
[5 replies] Last: std::sort( array, array+n ); auto sum = std::accumulate( array+k, arra... (by keskiverto)
|
by nike45678
Float sum of array error
|
Hi so i'm trying to build this code in visual studio where i calculate the sum of the array, among other things. However, I keep getting the error, "error C2111... |
Feb 21, 2014 at 8:45pm
[5 replies] Last: That's not what my question was. (by LB)
|
by Limne
Include Directors
|
Hi, I'm using Visual Studio 2010 and I'm trying to build a project that includes the following files: main.h globals.h dir/console.h The file console.h ... |
Feb 21, 2014 at 8:41pm
[6 replies] Last: As long as it's in the same project even if it's in different folders ... (by unsensible)
|
by Alby94
Expression
|
what is this expression declare? auto a = {1, 2}; |
Feb 21, 2014 at 8:29pm
[1 reply] : When in doubt, typeid ! http://ideone.com/SlkqD2 a is an initializ... (by LB)
|
lowest score |
When writing my code it continues to give me an error with my math. After calculating my scores I get a: 6.95322e-310The average of the four highest test scor... |
Feb 21, 2014 at 8:01pm
[4 replies] Last: No problem. The rest looks pretty good with maybe a little bit of touc... (by unsensible)
|
by nickeljb
Segmentation fault (core dumped)
|
cant figure out whats wrong 1 #include<iostream> 2 #include<fstream> 3 #include<cmath> 4 5 using namespace std; 6 7 long long array ... |
Feb 21, 2014 at 7:56pm
[2 replies] Last: know, i didnt know tmp could hold only one element and -1 is the sent... (by nickeljb)
|
by missmango
help me please
|
I'm get stuck when I try to write a C++ program that will input 3 integer values in any order and output them in order of lowest to highest The following is th... |
Feb 21, 2014 at 7:35pm
[3 replies] Last: I'm very new for the C++ , can you all help me with the simple code? I... (by missmango)
|