Beginners (Page 40)

by Ch1156
no operator found which takes a left-hand operand
 
I'm getting an error and i'm not sure what it means, I'm trying to compare a value to a vector to ge...
[16 replies] Last: Furthermore, The << is a binary operator; it has two operands. T... (by keskiverto)
Reading binary file
 
Hello I was given an assignment that was to open a binary file with records. This is the the pseudoc...
[2 replies] Last: You could use use the read function of the fstream class. bool displ... (by Thomas1965)
detect mouse up or down
 
Hey, I am currently making an autoclicker that activates when the left mouse button is held down and...
[1 reply] : Are you using any external libraries to detect mouse clicks? Can you p... (by hoogo)
calculate how many jellybeans can fit in jar
 
all my calculations keep coming wrong. I tried asking my teacher but no matter how changes I make th...
[1 reply] : Your jellyBeanVolume will be wrong because of integer division: 4/3 wi... (by lastchance)
Help finishing a code
 
not sure how to finish the code.keep getting erros in the last line #include<iostream> #include<...
[3 replies] Last: thanks a lot to both of you. it's fixed now :D (by hectorpenaloza07)
Search and display the comparison
 
I need help with the following question, I don't want the whole code but I really need help with thi...
[12 replies] Last: I can't see what you are still asking. (by jonnin)
converting char to ascii value then mod doesnt give correct output
 
So im trying to subtract two ascii value by first converting the chars to its ascii and then mod but...
[3 replies] Last: [quote=chang123]Is there a way to use the mathematical mod function in... (by lastchance)
Function or Variable
 
Hello people. I started learning C++ today. I am familiar with C so I directly began by studying ...
[1 reply] : Tradeoff. Design decision. The area is a product of the other member ... (by keskiverto)
Deleting a pointer that has been copied to another
 
My code now works, but I'm confused about the initial problem. Lets say I have an array of pointers...
[4 replies] Last: I'm at a loss as to why yours works, and mine doesn't There must be ... (by tpb)
by MrMode
Using varibles to create new object.
 
Hello, is it posbile to create new object from variable string nameOnList and number wich would be a...
[7 replies] Last: Hello MrMode, After working with the program I have come up with for ... (by Handy Andy)
by irush
all IF statements print please help im new to this.
 
when I run my program it prints all of the if statements. I think it is the grammar, but I have trie...
[3 replies] Last: You're welcome. Hope it helped. (by MikeyBoy)
My lottery program artimetic works!
 
Powerball chances of winning is 292 million. With my artimetic there is 80 million chances. I am c...
[3 replies] Last: Is this the lottery program which models a fantasy world, in which the... (by MikeyBoy)
Josephus problem solving
 
How does the process work? #include <stdio.h> int josephus(int n, int k) { if (n == 1)...
[1 reply] : You can trace it manually. You do know that the main() calls josephus... (by keskiverto)
validate
 
Write your question here.
[1 reply] : hello Tuxs Cavs, The answer is 42. https://www.youtube.com/watch?v=ab... (by Handy Andy)
by nirbh
problem understanding a paragraph in c++ primer
 
Unlike the other integer types, there are three distinct basic character types: char,signed char, a...
[3 replies] Last: Thank you tpb. Thank you JLBorges. (by nirbh)
by Lithia
Playing with getline()
 
Hello, I was playing around with getline() seeing what I can and can't do with it and tried this: ...
[3 replies] Last: You can type input to the program at any time. When you read from cin ... (by Peter87)
Sorting an Array
 
I'm trying to sort an array by students' last names and GPA. The sortLastName function isn't working...
[2 replies] Last: You could also compare your solution to: http://www.cplusplus.com/refe... (by keskiverto)
by Tett
Problem with hex converter
 
So i made a decimal to hex converter and its almost working or at least for the first char. Any idea...
[4 replies] Last: [quote=Tett]They convert the number to base 16. I tried putting them o... (by Peter87)
Integer overflow
 
Hi. I have a problem, need everyone to help: #include <iostream> #include <limits> int main() { ...
[4 replies] Last: Unsigned integers doesn't really overflow in the same sense that signe... (by Peter87)
by HarGar
Cannot get the second half of my program to compile
 
Hi coders, I have been working on this assignment all day, and the code just wont run properly...
[2 replies] Last: I'm surprised it compiles since there are no overloaded setter functio... (by SimpleCoder)
Pages: 1... 3839404142
  Archived months: [aug2018]

Cannot post in this page. To post a new message, go to the first page.