General C++ Programming - November 2012 (Page 30)

Implementing Boost into Tic Tac Toe
 
I have made a simple text based tic tac toe game. I was wondering what form of Boost would I implement into it? Could I use a For-Each or something else? He...
[1 reply] : I do not understand why do you want to use boost? In my opinion it is ... (by vlad from moscow)
Function Format
 
I really need help with this, i have way to much to do and i am just lost on how to write this program if anyone can help. Function Format Purpose To cre...
[1 reply] : Why did you take a programming class if your not interested in learnin... (by SamuelAdams)
slidegame
 
Introduction In this assignment, you will be writing a C++ command-line program that simulates a 3x3 sliding puzzle game. In a sliding puzzle game, 8 tiles ...
[5 replies] Last: No one is doing your homework for you. You were given an example to ge... (by drognisep)
OpenCV - Extracting the data from a Point2f variable
 
I'm doing a project in OpenCV. I have this variable which is of type Point2f. cv::Point2f initial; The value of initial is [656, 55]. Question is how d...
[2 replies] Last: Looking at the documentation: http://opencv.willowgarage.com/documenta... (by Branflakes91093)
Problem
 
I am having a problem with a program. I have the code below. It keeps producing the same number from the files when it needs to take the numbers and put them in...
[1 reply] : Currently, you only apply the bubble sort algorithm for one iteration ... (by LB)
by PKJAck
Calling function from different C++ file within the same project
 
Hi, I am currently working in a project. I have a function bitcount(int); in one one project file lets say "a.cpp" and i have a header "a.h" where i have defi...
[11 replies] Last: We are not psychic. We cannot guess error messages. Tell us the error... (by Moschops)
Subsets in C , Why does not work?? Please help..
 
Hi, I was trying to write a C program that lists all of the subsets of the set {1,2,...,n}. The program should be ask number of elements in the set from the key...
[no replies]
by dancks
passing pointers between objects?
 
I thought I could make my animation run faster by having drawing operations done in one objects and to eliminate get and set methods with using pointers. So I ...
[2 replies] Last: I rewrote it with a vector and only one object class and it works fine... (by dancks)
NETWORK PROGRAM
 
I made 2 network programs.one for server and one for client.when i run those programs on the same computer, they work perfectly but as soon as i run them on two...
[9 replies] Last: @kwb and @Angeljruiz thanx now my program is A-okay. (by Pter0dactyl)
Array insert 2 after every x passed as parameter
 
Given the array: int numbers ={-2,-1,3,2,-8,6,-10,-2,5,1} the dimension and a certain number to look for as parameters to a function i have to insert the nu...
[3 replies] Last: Why can't I use the same array? Arrays exist in memory. They occup... (by Moschops)
Reading line from a text file
 
I know this has been posted a million times, but I can't find one that actually solved my problem. I want to read a line from a text file basically, but I'm ...
[2 replies] Last: Thanks for the info. I just learned this stuff a few days ago and I gu... (by garanon)
Printing out maximum and minimum numbers in a set of entered integers using while loop
 
I'm going to explain how you can create a program that prints out the largest(maximum) and the lowest(minimum) integers in a specified set of integers. I used ...
[5 replies] Last: Moschops it is not necessary to use namespace with Borland because ... (by Moschops)
Mac Carbon question
 
I have an old prototype game written in Carbon / C++ for Mac. I'd like to update the ancient graphics in time for a show, coming very soon. This is no time to...
[1 reply] : What is the best file format to use for this purpose? There is no ... (by Moschops)
what does while(std::cin) mean?
 
I read in my book find this, and I can't understand it: while(std::cin) { .... // a input operation } ... there'no input operation before this code,...
[6 replies] Last: thanks, bkw! (by ylxin1993)
How to declare an object const for one function and not for an other?
 
Helle there, i got an global object and i got global functions. Both predefined. How can i set the object const for one function and not for the other? ...
[6 replies] Last: Yeah, it isnt optimal, but if its the only possibility i am going to d... (by trialanderror usually)
Arrange array: negative then positive numbers
 
My level of C++ knowledge:serious beginner. Given the array: int numbers ={-2,-1,3,2,-8,6,-10,-12,5,1} and the dimension as parameters to a function i wan...
[3 replies] Last: i'm learning c++ in school, so i can't use smth that the teacher didn'... (by Semicolon)
using or not std::
 
hey, dudes, I saw a this code in my book, it doesn't declare using namespace std; #include <locale> isalnum(ch, std::locale()); std::tolower(ch, std::...
[3 replies] Last: I think that tolower also needs no prefix std::. Usually C++ compile... (by vlad from moscow)
Data File Handling Code Does not work
 
I have recently installed code::blocks and was writing a basic progra of data file handling... The program is not working and stops responding in between when I...
[no replies]
Can't get a loop to work with this . . .
 
I have a homework problem that requires that I write a program that gathers statistical data about the number of movies students see in a month. The program sho...
[2 replies] Last: Where in the program do I put that because when I tried I couldn't get... (by siberiantiger1)
by Nausea
Vector erase() & delete then push_back cause crash
 
Hey! I´m trying to push new objects into a vector, that works. But when the object dies and I want to remove it something happens because after that if i tr...
[10 replies] Last: I actually solved it now, and it was just out of pure luck. I had a Cl... (by Nausea)
November 2012 Pages: 1... 2829303132... 51
  Archived months: [oct2012] [dec2012]

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