General C++ Programming - May 2012 (Page 15)

Need a bit of help :(
 
My question is a bit hard to explain if you haven't seen the code, so I'll jump right in. The code is not my actual code but a dumbed down version so it is easi...
[2 replies] Last: Put the objects into an array and shuffle the array randomly at the be... (by JLBorges)
by Mannah
reading from a fie with classes
 
#ifndef stockTab_h #define stockTab_h #include "media.h" class StockTab { public: StockTab (); // Default Constructor. private: int itemCoun...
[1 reply] : The first argument to strtok should be of type char*, not Media**. (by Peter87)
little code probelm
 
hey everyone, i believe i'm having a brain fart because i cant see whats wrong with this part of my code it compiles fine but it doesn't output the string when ...
[2 replies] Last: This code has no any sense string temp1=email ; //change to lower ... (by vlad from moscow)
Compare string
 
Hi , I want to compare file data date with current computer date . Any help....???
[no replies]
Passing an object to an object (References or pointers)
 
Texture.h #pragma once #include "Engine.h" namespace sb { class Texture { sb::Engine * gameEngine; sf::RenderTexture * rt; public: Textu...
[1 reply] : And is there the declaration of sb::Engine? (by vlad from moscow)
i need help C++ Quick sort and Insertion sort
 
#include <ctime> #include <utility> #include <stdlib.h> #include <iostream> #include <stack> using namespace std; /* The following three functions fill ...
[1 reply] : IM NOT SURE IF MY QUICK SORT OR INSERTION SORT IS RIGHT... What hav... (by cire)
Queues
 
Ok so Im trying not to go into such detail because it would take for ever but I have a queue of class City and when I do dequeue/remove a object off of the queu...
[3 replies] Last: Before you remove the element, save it in a local variable and return ... (by Athar)
Where to begin to start making real applications?
 
I'm kinda lost on where to begin. I know most of the main features of C++, such as Classes, Functions, Arrays, etc, and have also done some games with Allegro g...
[no replies]
Identity Property
 
Hello, I'm new to c++ and am working on a project which requires me to discern if the cayley tables in my text files, have identity, associative, inverse, and a...
[no replies]
by bmwboi
Checking if binary file is empty
 
So I've been coding a program that uses a binary file. In the program though, I want it to check if the file is empty. I've been searching, and found a solution...
[7 replies] Last: > To JLBorges, I'm still getting the same error as my first one. My m... (by JLBorges)
Disabling Copy Constructor
 
I'm trying to learn about C++11 disabling constructors, so i downloaded and installed VS11 Ultimate Beta. When i try to compile my little code i got errors. Th...
[14 replies] Last: Gcc support deleting copy constructors :P It's time to change compiler... (by TheEnigmist)
Passing character arrays
 
Hi, I'm getting an error on complile with the following code. I have tried a few things and it always gives me a similar error. The code is: #include <iostrea...
[2 replies] Last: Thank you! I had used the pointer method before as you suggested, befo... (by CatOfTheCanals)
by harm89
Use find in vector of vectors
 
I have a structure like this: vector<vector<string> > ptextarr; And I want to search in this vector of vectors, for a certain word, say "root". I think th...
[2 replies] Last: If you are going to find the vector that contains an element that stor... (by vlad from moscow)
Priority Queue , swap
 
look at this code I want to work program for the clinic will accept patients on the basis of the patient's condition , queue by linked list . this is th...
[4 replies] Last: thanks alot (by khalilshawahin)
Reading from a file help !!
 
Hi guys ... I have problem reading from a file the file is an inventory file (text file) and it contains different data type : make model pa...
[6 replies] Last: I did that : int main () { string make; string model; int pa... (by sami7ronaldo)
why there is no answers ?
 
swap for this function look at this code I want to work program for the clinic will accept patients on the basis of the patient's condition , queue by lin...
[1 reply] : Duplicate: http://www.cplusplus.com/forum/general/71356/ (by cire)
Multiple Threads performance?
 
Hi, if I have a dual core and an application running the main thread but waiting on two other threads does this mean I have two threads running or three? I thou...
[3 replies] Last: Usually, the thread that is waiting is not running, but perhaps you're... (by Cubbi)
need help with struct
 
i have a problem with my struct, and i cant seem to figure out what to do to fix it :S here is the code(its in a seperate header file): #ifndef TILE_H #de...
[10 replies] Last: "Maybe I'm just a newbie, but isn't 200-300 a lot? " no its not reall... (by even821)
by mher
Object 2
 
Write a program that the student information including name, and list their courses (including course name and grade) is to manage. Description: Students will...
[no replies]
Handling multiple Connection
 
Hi Guys ! can you explain the following code because i want to handle multiple connection while(1){ newsockfd = accept(m_sockfd, (struct sockaddr...
[4 replies] Last: accept() is where the server listens for a client connection. It bloc... (by kbw)
May 2012 Pages: 1... 1314151617... 41
  Archived months: [apr2012] [jun2012]

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