Beginners (Page 68)

Output Memory Address As Binary?
 
#include <iostream> #include <sstream> #include <string> using namespace std; int main() {...
[9 replies] Last: I see, thanks! (by troll warlord)
Loop structure enum?
 
I have to hand write a program using a loop structure (using enum type) What is enum type? What d...
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/other_data_types/#enumerated_typ... (by Peter87)
Are 'if' statements the backbone of all games?
 
This is a non-code question but I still feel that it is a beginner question and worth asking/answeri...
[10 replies] Last: Yes normally 'if' is heavily used. But there're some special cases. If... (by liuyang)
Pointer function (1,2)
 
void getName(char *name), void setName(char *name)--The getName() function shall be defined as a poi...
[20 replies] Last: You have clearly ignored the information that I have mentioned to you.... (by keskiverto)
How do you fix having a black screen output to having a white one
 
After entering the code and starting the program the output has a black screen with white words but ...
[6 replies] Last: Nevermind I changed it now, thanks for ya'lls helps! (by leashbomb69)
C++ How to get 2D array/vectors stored
 
Well I am trying to develop a simple text game, and I am trying to figure out how to get the text fi...
[2 replies] Last: Here is my respiratory which includes all my source code, it is a mess... (by chan 06)
Is while (1); a good way to keep a program up?
 
At the end of my code, I often put this to keep the program from closing: while (1); I u...
[3 replies] Last: > Are there any disadvantages or advantages to this over cin.get and c... (by JLBorges)
find the sum of (1+2+...n)^2
 
I am trying to figure out what went wrong in my formula for sum2. It should be equal to sum1, which ...
[3 replies] Last: (N(N + 1) / 2) 2 Look up Gauss and arithmetic series (by Smac89)
What is wrong with my program?
 
My program is running fine until the very end where I need the time. My professor wants the time to ...
[6 replies] Last: It worked! Thank You!! (by houchinj)
Code for an averaging program
 
So I am trying to write code for a program that is supposed to average up a data set that is given. ...
[2 replies] Last: How about this ? int size; bool quit=false; while(!quit){ cout <<... (by LendraDwi)
please help me understand
 
so i have to write a program that will do either a bubble sort or a selection sort on a previous pro...
[7 replies] Last: Check the file and make sure you haven't got a blank line at the end. ... (by kemort)
My "perimeter and surface area" isn't getting correct values in for loop
 
Write your question here. #include<iostream> #include<iomanip> #include<cmath> using name...
[1 reply] : It is only using the equation for the first "go through", and then usi... (by jon smith)
error C2447: '{' : missing function header (old-style formal list?)
 
I'm using visual studio 2013 win32 console c++ error C2447: '{' : missing function header (old-sty...
[2 replies] Last: There shouldn't be a semicolon for int main Please use code tags - ... (by TheIdeasMan)
Function problem
 
here's the whole program #include <iostream> #include <math.h> using namespace std; doubl...
[3 replies] Last: Too easy :-) The modulo is a bit tougher because it means you can onl... (by kemort)
operator question?
 
Hi everyone, I'm trying to understand a bit of Boggle code that I'm reading... std::vector< std...
[1 reply] : &a_Results is the address of the vector being passed to the Solve func... (by kemort)
Linked list
 
So I'm having a little trouble with trying to make a swap function that can deal with all of the pos...
[2 replies] Last: I don't even know what to say. It never occurred to me to even think a... (by bowlbase)
String array, help!
 
For some reason when I try to output the string array, it says that << does not match the operand ...
[1 reply] : The << doesn't know what a string is because you didn't include the st... (by Yanson)
Issue with "illegal else without matching if"
 
Hi. I am doing this assignment for my computer science class and I can't figure out what the problem...
[1 reply] : Actually rewrote and simplified it to this and it runs fine now. Howev... (by Mroonie)
by bender
C++ Days of the week
 
I need to write a program that deals with applying a certain discount only on Mondays and Tuesdays. ...
[3 replies] Last: Here is my sexy little program.. Im sure you can modify it to use with... (by novellof)
C - What is wrong with my logic?
 
I am supposed to write a program that outputs Pythagorean Triples up to a specific range entered by ...
[2 replies] Last: Oh I had no idea that pow returns double. Thank you very much!! And ye... (by sakonpure6)
Pages: 1... 6667686970... 104
  Archived months: [aug2014]

Cannot post in this page. To post a new message, go to the first page.