Beginners - June 2016 (Page 14)

-h and --help standards
 
Are there standards for the -h/--help outputs? If so, what are they? What I mean is when you input: PROGRAM -h into the terminal.
[2 replies] Last: This as well http://www.gnu.org/software/libc/manual/html_node/Example... (by Bdanielz)
boolean function
 
have 3 threshold values: 90, 80, 70; need to derive a function that returns a grade; the function takes 3 inputs: a, b, c corresponding to 3 threshold values an...
[1 reply] : Similar Question: http://www.cplusplus.com/forum/beginner/192676/ http... (by chicofeo)
Help with a simple code
 
Ok. Hi thanks for taking the time to read this. I have just started doing boolean , and I understand the logic of an if statement, but I made this code to tell ...
[1 reply] : isLA is of type bool . Variables of type bool cannot take on any... (by cire)
saving in file
 
Hello all, I have written the following program which is running perfect but what I want is whenever I make any changes in my array I want it to be changed acco...
[2 replies] Last: Yes I can do that but is there any way with which I can make changes i... (by charanveer)
Why does this map crash VS?
 
Hi! I'm experimenting with C++ in visual studio and am writing a message encrypter/decrypter I'm using a map and an array to translate the numerical values ...
[10 replies] Last: Aww, forgot I had the asterisk there, thanks! (by Sporech)
by FBHSIE
Should this be a constant?
 
http://prntscr.com/bfj9k2 0.2 should be a constant correct? I'm just making sure because I spotted it, but I'm not sure.
[1 reply] : yes it is (by leryss22)
by h4ever
How to get name of Window?
 
Hi guys. I have such decent problem. In my code I would like to capture screen in Firefox Browser Window using OpenCV. The problem is that the result of FindWin...
[2 replies] Last: You can try the EnumWindows function. It gives you the handle to the w... (by Thomas1965)
Making a & Horizontal bar Problem
 
Hey guys, so im having a problem of an assignment where i have to make a star bar graph. so if user input 1000 then for ever hundred in that number put a star. ...
[5 replies] Last: Ok. so my problem was printing a star for every array u had not the nu... (by chrisdesir)
Simplify the problem
 
I have solved the problem, but would like to know how to simplify my code so it doesn't take ages to find the exact m (triangular number) and n (square) numbers...
[15 replies] Last: As previously mentioned, another fast method http://www.cut-the-knot.o... (by Chervil)
boolean function
 
have 3 threshold values: 90, 80, 70; need to derive a function which determines if inputs are valid. the function takes 3 int inputs: a, b, c, and returns a Boo...
[2 replies] Last: thank buddy (by codetojoy)
by h4ever
How to include _T type in C++?
 
How to include _T type in C++? U have small code where it is used but missing the correct files to include void main(int argc, char ** argv){ HWND hWnd = Fi...
[2 replies] Last: Thank you. (by h4ever)
grade and age
 
can yall help me write a C++ Program where a user enters an age from 5 to 18 and print what grade that person should be in?
[2 replies] Last: #include <iostream> using namespace std; void whichGrade(int &age)... (by PBachmann)
by FBHSIE
Homework hint questions.
 
Would you guys give me hints to what I did wrong? I just finished one of my lessons. Thanks! http://prntscr.com/bfcdwv (Can someone define what he means b...
[5 replies] Last: Why thank you sir. (by FBHSIE)
by fx11
Namespace and using
 
I work with Code::Blocks 16.01 on Win10. Why is the last var equal to 10 if there is a line using namespace Jerry; before it? #include <iostream> ...
[1 reply] : #include <iostream> namespace Tom { int var = 10; } namespace Jerry ... (by closed account 48T7M4Gy)
Confused on boolean functions and classes
 
Very confused on what it is asking and how to start. I am completely new to boolean stuff and classes I am still new to as well. Can I get some help getting on ...
[5 replies] Last: The only thing left to do would be to define the function bodies for t... (by xismn)
Can somebody help me please with a sequence odd or even number program?
 
How do I write a sequence odd or even number program? I need to make one but I'm confused. Can somebody help me please, I would really appreaciate it! The progr...
[7 replies] Last: You need to include a while loop in you program. Check the tutorial on... (by closed account 48T7M4Gy)
Need help with this code.
 
A supermarket awards coupons depending on how much a customer spends on groceries. Category 1 customers spend over $500.00 and get 10% discount. Categor...
[2 replies] Last: Gotcha I think I figured it out thanks (by closed account D4NbpfjN)
Comparing if 2 strings are equal?
 
Hi, im making a hangman game and ive got most of my code working, but I cant terminate the program when you win. I try to compare puzzle and solution and if the...
[4 replies] Last: it doesn't work with double letters but im going to work on that later (by frantheman27)
boolean function
 
have 3 threshold values 90,80,70; four possible grades A,B,C,F; need 3 integers to specify threshold; need a Boolean function with int a, int b, int c as inputs...
[1 reply] : Makes no sense. first the function should test 100>a>b>c>0 is true o... (by keskiverto)
How would you make this code more efficient.
 
Hello all, This is my second day of learning programming. I wanted a real world problem that could be solved with some simple lines of code. Scenario Som...
[2 replies] Last: Thanks for the advice. (by iWillLearn)
June 2016 Pages: 1... 1213141516... 25
  Archived months: [may2016] [jul2016]

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