Beginners - September 2016 (Page 27)

Help with using structs
 
Hi all, I have an assignment that requires me to do this: Create an abstract data type that represents a DVD in this store. Consider all the data and operat...
[4 replies] Last: I got it working, thanks for help in any case! (by kigoral)
Noob help with Mac commands
 
Hey everybody, I am very new to programming and especially new working with mac os. I work in technology for a school district and we are having an issue with o...
[no replies]
by Wabush
Can't really understand what cin.ignore() does
 
Hello and thank you in advance for your time. I was reading some old code I wrote to improve it and when it came to one line I had no idea why I wrote that and...
[2 replies] Last: First of all, thank you for your help. And yes, now I remember that I ... (by Wabush)
by basg
Advice c++ Menu
 
Hi, Currently I'm trying to create a (console) menu in c++, everything works fine (I think). It's not finished but I would like to ask if someone has advice ...
[no replies]
by chmary
salut tout le monde je suis un étudiant en informatique de gestion
 
Write your question here.
[no replies]
Command Line Arguments
 
Hi all, I am using Microsoft Visual Studio Express 2013 and I would like to be able to pass command line arguments. However, most of examples that I have see...
[1 reply] : Find the executable, usually in the project folder under Debug if you'... (by JayhawkZombie)
2 programs I cant do, c++
 
My program is not running for either, please help Put the code you need help with here. [/code Assignment: The kinetic energy of a moving object ...
[2 replies] Last: My program is not running That does not tell much. If a code fails ... (by keskiverto)
boolean loop
 
It compiled perfectly until the last part where I must answer Y/N for Another?... I type y for yes but it just went straight to calculating the y and not lettin...
[11 replies] Last: It's fine you give me a hard time... I need the push to find alternati... (by survivor31)
Problem in 2D array
 
I was trying to create a program that calculates the sum of rows and columns in 2D array and the elements should be obtained from the user, when I tried to run ...
[3 replies] Last: #include <iostream> using namespace std; int main() { int rows =... (by closed account 48T7M4Gy)
length of a string
 
I need to calculate the length of a string and print it out in the first element of the array A . I am not allowed to use any string functions or c++ built in f...
[6 replies] Last: My bad... there's still a lot to come up with, If you want I can edit ... (by shadder)
Dog age calculator won't calculate (if...else if)
 
Here is my code. #include <iostream> #include <string> using namespace std; int main() { int actualage = 0, dogweight = 0; cout << "Welcome to ...
[2 replies] Last: Oh, crap. Can't believe I missed that. Thank you very much honestly :D... (by Saibachick)
by tkj80
if-else statement
 
Hi, I wrote the following code. When the counter i==0, the body of the first part of if-statement would execute, which prints i,0 i^2, 0. However, after tha...
[1 reply] : You should put your else block in braces. If you don't use braces, o... (by JayhawkZombie)
by rantiv
sum and products
 
Why don't my sum and products output correctly? #include <iostream> using namespace std; int main() { int userNum = 0; int squaredNum = 0; ...
[5 replies] Last: It was just a challenge activity for Intro to programming. They asked ... (by rantiv)
by Reekoh
Help. reading from File
 
Hi. So this is the question given to me. Write a program that prompts the user for a file name, which will be the file from Problem 4. It reads the file and th...
[1 reply] : It never prints because string phrase; doesn't have a value. Make a ... (by closed account iGLbpfjN)
Very Beginner Question(While Loop)
 
Hello, I'm VERY new to C and C++ and I am trying to write code for a college course. I'm not asking anyone to write the code, I just do not understand why my wh...
[1 reply] : your code, indented int main() { int tooLow = 0; int tooHigh = 100;... (by ne555)
trying to read from a file
 
i dont know what is going wrong with this code but it has chosen not to do what i want it to do /* * To change this license header, choose License Heade...
[4 replies] Last: Tolulekes, On line 56 myfile.open ("Aisosa.txt", ios::in|ios::ate)... (by Handy Andy)
calling a running Avg function in a for-loop
 
Hey guys and gals, i'm new here and also fairly new to programming (cpp is my first language) i have been fiddling with some basic stuff in the past but am n...
[2 replies] Last: @ gentleguy.. compiler errors here are irrelevent. I'm trying to put... (by spikey1972)
Help: read/wirte to struct
 
I'm having issues declaring curr_prez as a struct placeholder, and im geting several errors with syntax because of it, how would i go about assigning the place...
[9 replies] Last: Okay, but why are you even defining any President in main()? You never... (by jlb)
Programming Contest Problem output giving extras blank spaces
 
Hi, I am doing an exercise of programming called Erdös Numbers (https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem...
[3 replies] Last: The problem is probably being caused because the example you're using ... (by jlb)
Issue with linkedlist program, embarrasingly elusive!
 
This linked list works fine if i am using just first-names, but it messes up whenever I try including surnames. what do you think is the matter? #include ...
[5 replies] Last: i.e does the getline() leave an end of line character in the input bu... (by jlb)
September 2016 Pages: 1... 2526272829... 34
  Archived months: [aug2016] [oct2016]

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