Beginners - September 2014 (Page 26)

Cin to two different variables (1,2)
 
Hi, I'd like to make a single input through a cin, and depending on if the input is a char or an int have the corresponding code happen. Thanks in advance! :...
[26 replies] Last: There is a minor difference between the two: operator bool returns ... (by JLBorges)
using system
 
im trying to use the bitConverter.GetBytes method from system but im not sure what i need in order to use this method do i need to include something like ...
[3 replies] Last: #include <iostream> #include <type_traits> #include <array> #include ... (by JLBorges)
Image Reading
 
Hey, I'm trying to read a BMP file and write it to a new BMP. The new file opens with paint and has the right dimensions, but is completely blank whitespace and...
[1 reply] : Okay, i realized why it was blank, but there's still something wrong, ... (by Jape670)
Polymorphism/inheritance
 
I made this game that's supposed to help guitarists learn all the chord and scale forms, and I've been trying to make the more advanced levels of my game more c...
[4 replies] Last: Woo hoo! I checked my book again and I managed to figure it out. I j... (by Explodey)
How to put music in Dev-C++ Bloodshed
 
Write your question here. I want to put a Poke Battle Music.. i Use Dev-C++ because thats what our Teacher Recommended us to use.. i don't know why i kn...
[7 replies] Last: thank you so much (by Herleos)
Primality Test
 
...
[1 reply] : The last for, no arguments. (by poteto)
Counting words in an array
 
Hey guys, I'm at a loss here. I have an array named comments and it holds 93 different YouTube comments. I've been trying to figure out how I can count how man...
[9 replies] Last: Oh, but you learned about std::count before this assignment? Probabl... (by LB)
Trouble with add function in a class
 
In this project I have a PhoneBook class that accepts Entries. Entry is another class that consists of strings or names and phone numbers and the accessors and ...
[13 replies] Last: DUDE. i am such an idiot, i'm smacking myself. thanks for pointing tha... (by pepstein)
switch and if else statement help
 
When I reach case 2 and type "n" my complier prints out my cout statement but just continues running until the end of the program. I commented out a few stateme...
[2 replies] Last: Thanks works just perfectly. (by jackelinblack)
by fisken
Stack<int> and Stack<string> problem solving
 
Hi, I'm taking a distance course in C++ programming and problem solving at the univiersity of Saarland. I'm a totaly beginner with programming and I have on...
[9 replies] Last: Sorry for taking so long to get back to you. Since you can only have s... (by discofire)
Double to int & program crashing?
 
I'm trying to create a payroll program, but it shows this "warning C4244: '=' : conversion from 'double' to 'int', possible loss of data" what should I do?, and...
[4 replies] Last: An error is not a warning. If you want to work with doubles, stop try... (by LB)
If statement in Windows Form
 
I have pretty much no clue what I'm doing because I was sick last class and my professor offers little to no help. He would like us to make a Windows form with ...
[no replies]
by Salad7
Programming books/ Pace?
 
Hey guys up until now all my programming knowledge has been based on videos and not book knowledge. What are some books you recommend, i intend to do some windo...
[2 replies] Last: http://www.amazon.com/Primer-Plus-Edition-Developers-Library/dp/032177... (by novellof)
Primality without function calls
 
................
[1 reply] : Look up the modulus operator % EDIT: Did the modulus operator sol... (by novellof)
by Ch1156
Code Conventions
 
I am improving my C++ and I decided to start using conventions to make my code more readable and fluent, I came up with this list, it's not done yet but tell me...
[11 replies] Last: Thank you all for your suggestions i will revise my document using the... (by Ch1156)
Alphabetic order
 
Hi, Sorry to disturb you again, but I got stuck another time :((( I'm trying to code a program which ask me for letters and then tell me If they're in the alp...
[4 replies] Last: No I said in front of the % character so it becomes " %c" ... (by jlb)
float
 
hello is there any way to make a float only be 2 decimals (e.g x.xx) instead of x.xxxxx?
[6 replies] Last: thanks :D (by Jacobhaha)
reading a newline or a space from a file
 
hi i was wondering if anyone can point me in the right direction. i havea file that contains roman numerals and integer that could be in this format: X 10 IV...
[1 reply] : or if anyone know how i can check to see if there is a roman numeral a... (by genkers)
while loop arguement
 
I need to input a lot of data from three different files and I need to iterate a loop while there is still input in the file stream. So I need the code to look ...
[1 reply] : The first approach is generally not the way to do it. The problem is ... (by AbstractionAnon)
If function ( HELP! )
 
Hi everyone, I just starting programming and I'm a total noob so I'd like your help please. I don't know whats wrong with my code, I get this error 'else'...
[2 replies] Last: I removed the semi-colon in line 12 and It's working!! Thanks a lot :... (by RabieErraih)
September 2014 Pages: 1... 2425262728... 51
  Archived months: [aug2014] [oct2014]

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