Beginners - October 2015 (Page 19)

Why doesn't this switch statement work
 
I'm trying to have the user input a letter M or F so a specific set of statements will follow according to the letter of choice, I'm also having trouble with lo...
[1 reply] : You want to compare to character literals, so you need to surround M a... (by Zhuge)
Help with functions and vectors
 
Hello everyone! I am 2 weeks C++ programmer and i seem to miss the fun of C++ due to this assignment. The assignment is to i. make a program that calculates ...
[4 replies] Last: OMG! I am very grateful for your inputs and explanations. My program n... (by longberns)
Converting output from _popen to a string
 
New to C++ so please be gentle. I am trying to write a function that runs a command (such as ipconfig) using popen and then saves the output to a string. I can ...
[3 replies] Last: Thanks guys, this was really informative and solved the issue. Appreci... (by michaelwilliams6511)
Can't see outputs
 
Can't see the fail in splines method /*LA INTERPOLACION POR SPLINES DE GRADO 2*/ a = f ; c = c0; b = (f - f - c0 * (x - x ) * (x - x )) / ...
[no replies]
by mena07
output is not showing up
 
i'm trying to create a function that convert from cartesian to polar but the output is only the answer for r and not for theta code: #include <iostream> #...
[1 reply] : PLEASE USE CODE TAGS (the <> formatting button) when posting code. It... (by chicofeo)
by qia360
XCRUN ERROR: HELP!
 
Write your question here. I just run a hello world program and get this error, i don't know what it means to do? xcrun: error: active developer path ("...
[no replies]
Multiplication with a float and a string? [Homework]
 
This is my first post on the forums, so I must apologize if this goes against what the forum is for. In my C++ course for HS, the assignment is to compile a ...
[7 replies] Last: It was a success! Using Duoas' recommendation, an A+ sits proudly on m... (by Autry Marshall)
Jenny's beads problem
 
I've got a program to make but I have no idea how can I do it (I know theoretically). **Here it goes**: > Jenny has `n` beads numbered from `1 to n`. Some of t...
[no replies]
by BEARS
How to fix roman numeral program?
 
I wrote a program that converts decimals into roman numerals, but it's not working correctly. If you put in something like 42, it spits back XL which is 40. A...
[6 replies] Last: Yeah. Just figured that out. Thanks for all the help!!! (by BEARS)
how to print unicode in c++ 11?
 
hello guys i am having a problem,i have to cout the unicode ★ this now the problem is when i use c++ 5.1 (online compiler ideone-com) and try to use this ...
[4 replies] Last: It's possible, but it's incredibly difficult because the Windows conso... (by LB)
HOURS and HOURs to make a simple GRAPH
 
Hello everyone, I would need help. I have downloaded 100 libraries that I have put in my dev-c++ files (Windows) and visited millions of websites and forum...
[3 replies] Last: The youtube video indicated moving the .a file to the GCC's ~/lib dire... (by Duthomhas)
void main() and int main()
 
Hi, Just wondering as a beginner in C++ programming, what is the difference between using the code void main() and int main()?
[7 replies] Last: Fortunately, this topic is not too old for me to have found the void m... (by Duthomhas)
by Suar
Sorting and Searching Arrays
 
I was given a code and was asked to explain certain things, but I find it rather confusing. So here's the code: #include <iostream> #include <fstream>...
[no replies]
need help with this CRC generation snip
 
I'm a assembly programmer that's been trying to calculate some CRC's for a device I'm trying to make work. The Mfgr of the device published a code snip for the ...
[2 replies] Last: This worked perfectly! Thanks very much! Doug. (by dj41354)
Need Help on Coding Assignment
 
So the basics of the coding assignment are we are trying to find all numbers up to a user inputted number that are square pair numbers. A square pair number is ...
[4 replies] Last: floor() is cmath: http://www.cplusplus.com/reference/cmath/floor/ (by dhayden)
Please Help Me (1,2)
 
.
[24 replies] Last: 2d array -> ** (by Ericool)
read next word in C
 
So I have to code a function that will get the next word from the standard output and this is what I have. It need to skip any leading character that is non-alp...
[4 replies] Last: Never use gets(). (by Duthomhas)
Home Work: Create an array of 20 integers [-50;50]
 
Hello guys. I need ur help with my homework. I need to create array of 20 integer type numbers between -50 and 50. Then: 1. Count positive numbers of ar...
[5 replies] Last: It is because my example did not have a function named "display" -- yo... (by Duthomhas)
by yehozz
Let the user assign the size of an vector
 
#include <iostream> #include "medel.h" #include <vector> using namespace std; int main() { float speedsum; int antal = 0; vector<float> myVector; cout ...
[7 replies] Last: Sorry missed that one, it all works now as i wanted :) i i thou push_b... (by yehozz)
validation 'if' to 'for' or other suggestions
 
The program runs, no errors but was just wondering if it would better to use a 'for loop' instead of 'if else' statements for the function ValidateTempWS(). I d...
[7 replies] Last: If 0 is supposed to indicate success, the return value in the code I s... (by cire)
October 2015 Pages: 1... 1718192021... 57
  Archived months: [sep2015] [nov2015]

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