Beginners - November 2013 (Page 21)

Help, I'm stuck on this poker program.
 
Hello there, I'm still a beginner to this C++ programming and so I'm stuck with this project that I have due. I need to come up with a program that works with e...
[4 replies] Last: Okay I got it, but now I'm stuck on what to do after the 'if else' sta... (by njleos3)
help with fruits!
 
How can I get the main() to accept all of the class members so I can use their attributes? #include <iostream> using namespace std; class fruit {...
[1 reply] : First reread the following. http://www.cplusplus.com/doc/tutorial/cla... (by mobotus)
by Xesna
Classify Numbers
 
The program reads a given set of integers, then prints and determines the number whether it is an odd, even, or zero. However, I am unable to solve the issu...
[6 replies] Last: You pretty much solved it. Thanks. (by Xesna)
Mini calculator
 
Write a C++ program that reads two operands (numbers) and a character as an operator between them and prints the result. The problem is that the output is alway...
[9 replies] Last: Chervil, thanks a lot for the solution - it really helped me!! :D (by informaticsgirl)
by Nefri
Array load from csv and malloc
 
Hello, so i must load some data from csv and put it into two dimension array and i am complete lost. If i have some csv file like: Example: 1997,Ford,E350,2...
[4 replies] Last: Thank you again Chervil :) (by Nefri)
by Garion
Shift operator
 
Chervil was kind enough to post this solution to a problem earlier but there are a few portions of the code I don't fully understand. I was hoping somebody w...
[5 replies] Last: I think this is the context: // Binary to decimal for (int i=... (by Chervil)
Conversion between strings and floats <sstream>
 
For my assignment all we are required to do is stream in the .txt and just use whatever method we want, to output the correct data. I chose this way because I'm...
[9 replies] Last: Thank you, now I just need to figure out the double output of the last... (by namesjj)
Can anybody explain constructors/deconstructors?
 
Hello...I was just wondering ever since I started coding (started with Java and now with C++), I've never for the life of me figured out what constructors and d...
[6 replies] Last: Multiple constructors O_o I'm not even sure as to how that works as I... (by Catfish666)
by Mebant
Function not returning value
 
Can someone help me find out why my function seatpurchase is not returning a value for me to use in another function. Once returned it is automatically 0. Pleas...
[4 replies] Last: At line 76 seatpurchase(grid, ROW, purchaseforone); the functio... (by Chervil)
Questions ..
 
Hey guys , so I've been reading a book on how c++ was invented , and I want you guys to clear something for me: 1- c++ is called " Object-oriented programmin...
[5 replies] Last: I think what best is continue on reading , since only 5 pages left , a... (by Cutefriendzoned)
converting data from decimal to octal to binary (1,2)
 
i believe this code correctly converts binary data to octal and then to decimal. #include <math.h> #include <stdio.h> main() { int octal_array ...
[21 replies] Last: @Disch there was a previous thread which may shed a little light on th... (by Chervil)
by h4ever
Why ifstream::get fails to read from file?
 
I try to open file and print the text in "test.txt" (the file includes UTF8 characters mostlikely). http://paste.ofcode.org/dekmDHmYfJybaTEKTCa83t I cannot ...
[14 replies] Last: You are more than welcome. (by snowright)
If arrays don't know their own size, how come this works?
 
I found an interesting piece of code. I need someone to explain to me how come this works, if arrays don't know their own size: #include "std_lib_facilities....
[2 replies] Last: Thank you very much! Now I understand everything. (by benbalach)
by JohnJH
Recursive functions
 
I am trying write code which compute a recursive function, which is used in another function. the recursive function is. V = 2 Cos[(2*\ *k)/205]*V[n - 1] -...
[10 replies] Last: Ahh.. yeah it makes sense.... (by JohnJH)
NEwbie knowledge needed
 
Ok so guys I am really behind being a programmer and I would love to try make my own OS. So can someone just pin point all the important stuff to learn in C++ a...
[1 reply] : Check out http://wiki.osdev.org/Main_Page (by SneakySnake)
Trouble with array with function
 
Hi, I am having trouble to the following problem. Can someone please explain it to me? Thanks for advance Write a function called dropDimension that copies...
[no replies]
by dracut
How to add a Queue in a List?
 
Hi everybody! I'm a student of Computer Science and i have a problem. We need to do a Queue(with strings) and a List(with the queues). I've done the qu...
[6 replies] Last: #include <iostream> #include <map> #include <deque> #include <string>... (by JLBorges)
Quadratic equations problem
 
Please help. I'm student and now working on the program that can solve quadratic equations. The text that appears on screen and solutions should depend from dis...
[6 replies] Last: Oh, thanks a lot! Now it's working fine. :) (by closed account ihASLyTq)
by KamKan
Struct Problem
 
Hi, i am creating a struct program and then suddenly errors came and don't know why. There are red wavy lines under the .customer.name.etc and so on. Please hel...
[4 replies] Last: Thankss! But, it still has a problem and it still wont run. it got an ... (by KamKan)
Text File
 
Hello There, how do i get strings and doubles to work together to put it in a text file? #include <iostream> #include <fstream> using namespace std;...
[5 replies] Last: The code above works for me, except that void main() is not valid ac... (by Chervil)
November 2013 Pages: 1... 1920212223... 80
  Archived months: [oct2013] [dec2013]

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