Beginners - March 2015 (Page 13)

Begginer help with if statements and char initiate
 
hello, I am completely new to programming and working through B Stroustrup's Programming: Princip...
[2 replies] Last: thank you for the quick reply. I will remember those now. (by RENEGADEXT88)
by Lee125
OR operator and AND operator. Confuse???
 
Can anyone help me. I always confuse when typing && operator and || operator. I confuse when there h...
[11 replies] Last: There is a difference between order of evaluation (getting the values ... (by LB)
Filling a struct array from a txt file
 
I am trying to fill a struct array from a text file. Each line (x10) in the text file has 6 strings...
[3 replies] Last: We'll wait a second that loop shouldn't be used for printing elements,... (by closed account SECMoG1T)
A C code stops working during execution
 
This C code attempts to model a 2D projectile motion that stops working right after the 2nd iteratio...
[no replies]
by bhalo
delete pointer in other function
 
how to do it? #include <iostream> using namespace std; void change(int *&p) { delete p...
[4 replies] Last: got it. thank you both. (by bhalo)
Sum of whole numbers as long as the sum is odd
 
Can someone please tell me what's wrong with this program? I'm supposed to create a program that wil...
[7 replies] Last: You're very welcome:) Happy Coding! (by TarikNeaj)
Function output errors
 
So I wrote this code so that, given some user inputs, would output how long it would take to mow a l...
[2 replies] Last: That has worked amazingly - I now see where I was going wrong. Thank y... (by Chamsta)
Help with else and if statements
 
My error message is not popping up on the last else if statement although I am inputting a negative ...
[6 replies] Last: Thanks man but I figured out that I needed a cin.get after my error me... (by thebossman)
Questions of derived class and inheritance
 
Some homework problems: True/False
[1 reply] : [quote=imaghhc]Some homework problems: True/False 1. Answer: True If ... (by LB)
by Ema
The smallest floating-point numbers in c++ and java
 
Please, can anyone tell me what are the smallest floating-point numbers in c++ and java?
[1 reply] : [quote=Ema] Please, can anyone tell me what are the smallest floating-... (by LB)
Stuck on hw! Running into problems! STRUCT AND ARRAYS
 
Rewrite your baseball league application from Assignment 6 so that each team/wins pair is stored in ...
[10 replies] Last: Could you please give me an example of the whole integer array part? S... (by arthurychan)
function
 
Make a function called half() that takes an integer argument. The function must print the number it ...
[5 replies] Last: His code, is supposed to be in a function, not main. Also, you dont ne... (by TarikNeaj)
hello! any type of help will be appreciated!
 
hi i need help writing a code that has an output like this example: "the value entered is 5467 i...
[6 replies] Last: Like militie said, you can use while loop to do the work. (or recursi... (by a3625799132)
Please Help me..........
 
What is error in this code: I have written this code for conversion of an Infix Expression into a P...
[1 reply] : stack(int n) { size=n; data=new char ; } //... void convert_P... (by fg109)
by an6206
How can I store a data of varied length into an array or a vector?
 
Although this may seem like a question posed somewhere else, I couldn't find an appropriate answer t...
[3 replies] Last: Well, you know when the EOF bit is set right? It's when you try to re... (by fg109)
by Lee125
Stack::emplace
 
Can anyone explain to me why this program cannot compile? // stack::emplace #include <ios...
[4 replies] Last: Thanks fun2code now I knew what the writers meaning in this tutorial t... (by Lee125)
Cannot update the status
 
This is a hotel reservation program. The problem is that the status doesn't update to rented even if...
[4 replies] Last: Okay how did changing the return type "fix" the problem. That what ... (by closed account SECMoG1T)
by JimmyT
Learning the Basics but I am running into some problems
 
I'm teaching myself C++ at the moment, and I am trying to write a program that will integrate most o...
[5 replies] Last: Well since you have PMs disabled... I really find the best way to im... (by Mats)
Does anyone know how to write this?
 
Write a program that models a number guessing game. The program should ask the user to select a ...
[4 replies] Last: Please note, that this is not a homework site. We won't do your homewo... (by keskiverto)
by phi1
Having toruble initializing a default_random_engine
 
I get a no match for call to '(std::shared_ptr<std::linear_congruential_engine<unsigned int, ...
[7 replies] Last: Oops, sorry I misread. Yes @phi1 - it's a bad idea to use shared poi... (by LB)
March 2015 Pages: 1... 1112131415... 51
  Archived months: [feb2015] [apr2015]

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