Beginners - September 2012 (Page 51)

HELP please??
 
This is my first post so... I had to write a program that got the product of two fractions. I think I did that part correctly but I it also said that the ou...
[2 replies] Last: Thank you sorry for the late reply but it worked perfectly (by rduckett91)
by Niven
Need help with snake game
 
I've never program an actual game so I while back I made it my goal to do so. I decided on a snake game program and started the actual program itself today. I h...
[2 replies] Last: For now, I'll just say: DON'T USE SYSTEM. At the beggining of your pro... (by samrux)
Converting strings to binary or hexadecimal
 
I have a string I get from a text file and want to convert it to binary. Is there any method to achieve this that you know off? I am very stuck right now. Thank...
[1 reply] : If to assume that a byte has eight bits then the code could look for e... (by vlad from moscow)
Why can't I write/read from a file?
 
I'm afraid I can't see what's wrong with my code and would very much appreciate any help anyone can give me. I want to be able to write a bunch of lines to a fi...
[2 replies] Last: #include <iostream> #include <vector> #include <fstream> using name... (by Moschops)
by mickb
Comprehending composition failure!
 
I'm trying to help a friend with a c++ class assessment, and am stuck at the last part where I need to create a Team class using composition. I've done some bas...
[2 replies] Last: Thanks very much for the reply :) I wondered that myself, it's what th... (by mickb)
Strings in a linked list
 
I am setting up a class inside of a linked list. And inside that class, i am bringing in a string. The problem is, that the code works until the string is broug...
[2 replies] Last: I'm not 100% convinced that the error you mention actually matches th... (by guestgulkan)
by wohtp
Standard deviation function refuses to work :(
 
I have already spent about an hour on this piece of code. There must be some sneaky bugs lurking somewhere. I implore you, o Wise One, please enlighten this i...
[10 replies] Last: cout << "Uncertaity is " << sd << endl; sd is a function. I think... (by Peter87)
by youie
Code
 
I need support with this Code!
[2 replies] Last: Your code is invisible! (by DesiredNote)
callback functions with openCV
 
I wrote a program in c++, now I'm trying to clean it up and put it in to a more object oriented style. The code you are looking at below are three simple cal...
[4 replies] Last: If you have book "Exceptional C++ Style" by Herb Sutter then you will ... (by vlad from moscow)
by khal
Operator >> Error
 
Hi I am having a problem with separating my overloaded operator into the .cpp of my class. main.cpp #include <iostream> #include "test.h" using namespace...
[5 replies] Last: @Stewbond Thank you lol (by khal)
How to create a loot system for a game...
 
I'm working on a loot-based dungeon crawler. For those that don't play games, that basically means the game involves exploring rooms or areas in search of items...
[3 replies] Last: One more question: where would you actually declare all of those class... (by EindacorDS)
Help with Exact values
 
Hey guys! I am working on a program for my computer science class, and we were told to make a calculator that calculates the total of a purchase at a movie thea...
[1 reply] : int adultticket , adultprice, childticket, childprice; I see you ha... (by Moschops)
über Noob
 
Just trying to complete an assignment by tomorrow without knowing anything. I have copy pasted a similar program from a previous assignment and tried to alter i...
[7 replies] Last: Great Success, I got it working. final code below: Just to give you so... (by RegionX)
Best Book, online videos to move from C to C++???
 
Best Book, online videos to move from C to C++???
[3 replies] Last: Just YouTube it, and check the comments and rating :D Other than that ... (by Script Coder)
getting length of an array
 
i have an array and i should like to get the length of the array (in other words how many values the array has) can someone tell me a function or something that...
[7 replies] Last: ok thank you. (by gelatine)
by averma
Reading from files with .list extension
 
Hi I have to write a program that reads files with .list extension.I know you can use fstream for .txt files.Is it the same for .list files also?I just need...
[1 reply] : Hi there, Yes, it uses the same functions presumably. Depending on wh... (by closed account o3hC5Di1)
by Zorael
Sections with valued variables that can be multiplied and output?
 
Basically I have been searching for a way to create "sections" with variables that have numerical values that can be multiplied and then output. Here is how ...
[8 replies] Last: > I was able to compile and receive the correct output. If you haven'... (by JLBorges)
static variables?
 
So I'm just starting to get in to an oop style of programming. I have had two major issues with this style and I'm hoping they are easy fixes. 1. The first ...
[2 replies] Last: btw, how to use static const type? i just know that you can only ini... (by chipp)
reffering to function from one class in another
 
Hi, I have a problem with reffering to function which is in another class from another file. e.g I have: class A { ... public: void function1(); ... ...
[1 reply] : function1 is a class function. You have to get an object of that clas... (by Moschops)
by kayson
Reading from a csv file
 
I am trying to read from a csv file, the file looks like below: 1,2,3 4,5,6 7,8,9 0 I used getline(Input_file,size,',') but the problem with this is th...
[no replies]
September 2012 Pages: 1... 4950515253... 62
  Archived months: [aug2012] [oct2012]

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