Beginners - August 2015 (Page 4)

by Winsu
The current directory is not valid
 
I have written a code and when I compile it, the compiler launch this"the current directory is not ...
[no replies]
How are variables stored?
 
When I declare a variable, say int x = 8; What has happened? The computer knows to find 4...
[5 replies] Last: I'm now reading up on symbol tables and therein lies the answer. The ... (by thetexan)
algorithm concept
 
Hello forum, I have a 2D array make of std::vector and I want to print out the contents in a cert...
[2 replies] Last: Or toggle a bool: bool goForward = true; ... if (goForward) forwardPr... (by dhayden)
!cin looping errors
 
Alright, so this is about avoiding erros when someone would enter a letter or something that isnt an...
[4 replies] Last: @LB @rafae11 Thank you both for your answers, ill read what you linke... (by qvantry)
Problem with sum
 
Write your question here. can somone help to me with sum? 1 collum sum up correct but second one is...
[7 replies] Last: The 'abc' in your program (if that reference is ambiguous, then the bl... (by keskiverto)
by Jon15
Calling a function for temperature conversion
 
I am having trouble correctly calling/creating my function for Kelvin. #include "stdafx.h" ...
[18 replies] Last: No problem Jon, it's not the end of the world. (by closed account 48T7M4Gy)
Array in descending order
 
I wrote a code for sorting an array in descending order, it seems overly complex. I think I should b...
[1 reply] : Are you required to create your own sorting function? If not, just use... (by LB)
by Jon15
Temperature conversion, infinite loop help
 
I am writing a program that will have the user input a temperature in either C or F, then have it co...
[2 replies] Last: What do you mean? Here is an updated version, not sure if it is better... (by Jon15)
by Sid123
equivalent in C++ from VB?
 
Hi, I learned vb pretty well and now i am learning c++ can someone give me the syntax for the equiva...
[3 replies] Last: Well, technically, with std::string arr , what we have is an simpl... (by JLBorges)
cin.ignore?
 
i have to write a program that reads a sentence/1 character and will display all the characters sele...
[1 reply] : #include<iostream> // #include <conio.h> // using namespace std; #inc... (by JLBorges)
going through the alphabet using object arrays
 
So I was watching a lecture about allocating memory and the instructor gave a challenge where i have...
[2 replies] Last: wow so simple and it worked thank you! (by helios103)
validating a phone number
 
hello everyone, I am trying to validate a phone number so the program will check if the user inputte...
[5 replies] Last: So I changed a few things around, so the function will re-prompt for a... (by jpanther)
Array and While Loop
 
If I remove the While loop, everything works fine. But if I include the While loop, the program will...
[17 replies] Last: Yep, it will output "invalid etc". This leaves you, as the programmer,... (by closed account 48T7M4Gy)
by Dazzer
Question about the use of namespace
 
I have a question about the use of namespace. Consider the two programs below, both of which yield ...
[14 replies] Last: to give a cross-library example, we have, between the C++ standard lib... (by Cubbi)
Sorting array of structs
 
struct dadosEquipas{ char nomeEquipa ; int lugarCampeonato; int numPontos; int numJo...
[12 replies] Last: Ah yes, the issue was that you had copied the data into the vector and... (by LB)
struct defined in friend class as argument
 
Hello all, I am trying to implement an iterator to a BST class, but I am having trouble with a pr...
[2 replies] Last: Thanks a lot! It worked :) (by SophieM)
by samrux
Am I naming identifiers wrong?
 
Right now, I am used to naming variables and functions with the most descriptive names possible. How...
[3 replies] Last: Thank you. Also, I think I accidentally reported a comment here from ... (by samrux)
by Zyzz
Cannot build anything
 
Hello, I got a new computer over summer and I'm starting another semester of c++ programming in the ...
[9 replies] Last: You see you forgot the semicolon at the end of line 13, don't you? (by mido70)
Functions
 
HELP PLEASE! Problem: Define the functions called within the main function. Do NOT edit the main ...
[2 replies] Last: Do NOT edit the main function. Your code uses a different main funct... (by dhayden)
My rand() function does not work
 
My rand() function does not work I have fiddled about and it does not seem to want to work I an tryi...
[3 replies] Last: http://www.cplusplus.com/faq/beginners/random-numbers/ (by Duthomhas)
August 2015 Pages: 123456... 28
  Archived months: [jul2015] [sep2015]

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