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

Implementing page replacement algorithms
 
As the title says, I'm working on implementing a few of the major page replacement algorithms using an artificially generated reference string and random number...
[4 replies] Last: Ugh well I've got it up and running now, but it's recording too many p... (by ResidentBiscuit)
How to make font flash and change colour
 
I am trying to get my font to flash and Change colour on my splash screen I tried getting it to change by using delta time at 2 second increment but it Only upd...
[4 replies] Last: Try adding a message box or some breakpoint in your Scene:SplashScreen... (by S G H)
by na7937
Static Variable
 
Write a function called QuizPoints(int value) that contains two static variables. One that stores the number of quizzes taken and one that stores the total poin...
[2 replies] Last: From what I see, your main problem is that you haven't understood how ... (by toum)
A fast definition
 
I usually write : if(a >= min && a <= max)//Just a general case An another similar & popular case : if(a != 1 && a != 2 && a != 3...) Now I can solve this p...
[3 replies] Last: Your function has one problem : if strAllow is not NULL and chrInp is ... (by toum)
Trouble evaluating the time taken by a quicksort
 
I'm trying to find the time elapsed for each quicksort when given input files of different lengths. To do that, I generate 100 files with random inputs and then...
[11 replies] Last: Understood, thanks. I changed it so that I'm multiplying seconds by 10... (by Marquis)
by hbyte
Creating an c++ object instance of class in every thread?
 
I have a boost multithreaded ga which works fine for running functions in parallel using multithreading to evaluate each function. I am using boost. However whe...
[no replies]
by sharma
URGENT Project
 
I have to submit my project for evaluation this week. Project Statement : In an organization, a project manager assigns different modules of a project to mem...
[2 replies] Last: 1. I had this assignment for a week but due to some preoccupation i am... (by sharma)
by lmd141
Setting up array
 
Hi there, I have a large array of doubles that are inputted from a text file in the following way: void MOF5_coords(int &atom_types, double *&sigma_point, d...
[8 replies] Last: Hello, again. This explains how to deal with exception: http://www.c... (by kg1992)
make a movie with c++
 
Hi guys, I am Nicola, a new user. I am writing a program in c++ about heat dissipation. I refresh the temperature matrix using a for loop and I want somehow...
[7 replies] Last: This sort of thing is best done using one of the many imaging and anim... (by Moschops)
by Alam
DBMS connectivity with c++
 
I have been given an assignment to give a presentation on How we can connect DBMS to c++, like we do with java or c#.
[no replies]
by Alam
Help!
 
I want to create a notepad file where data is to be saved using classes.
[3 replies] Last: Thanxxxxxx.......... (by Alam)
Help! weird case
 
Hi, I build a class with some vectors, with interrelations. Then I use this class to build some objects. However, when I compile, sometimes the VS 2010 said ...
[5 replies] Last: Just wondering whether it might be better with a class containing: the... (by TheIdeasMan)
by Gadir
binary file reading
 
Hello Everybody, How can i read mixed binary file?(for example binary file contains char and integers length 2390 width 5000 and so on. ) For bina...
[4 replies] Last: Hi Marie, i use unsigned short CAENt ; inCAEN=fopen("wave0.dat"... (by Gadir)
Calculator Help!
 
Im trying to make a basic calculator that takes in an expression. Im not really sure where im going wrong so if someone could please take a look at my code and ...
[8 replies] Last: if(b == ' ~ ')return false; if(a == ' ( ')return false; ... (by Imadatobanisa)
std::vector pointing
 
What I want to do is create a single function that will store any of my vector types to a temporary binary file. Here's a basic example of what I want clas...
[7 replies] Last: Just updated to Code::Blocks v12rc1 and I'm no longer having the issue... (by awsdert)
Help Help Help Please is urgent
 
In general functions might be approximated by series. For example the following approximation holds: sinh(x)= x + x^2/3! + x^5/5! + x^7/7! + ... You are t...
[3 replies] Last: @AlexBen - you mean you want someone to do it for you! You don't lear... (by ajh32)
by nick92
i need help
 
#include<iostream> using namespace std; int main() { int i; int num; cout <<"Give a value of n: " << endl; cin >> num; while(num>0) { ...
[3 replies] Last: nic, your while loop will never end. Nothing in that loop changes the... (by MikeyBoy)
complexnumber
 
#include<cmath> class ComplexNumber{ private: float Re, Im; public: ComplexNumber(float NewRe, float NewIm){ Re = NewRe; ...
[1 reply] : What are you trying to achieve? What problems are you having? Oh, an... (by MikeyBoy)
universal sorting algorithm
 
void Swap(T& i, T& j){ T Buff = i; i = j; j = Buff; } // universal sorting algorithm template <class T> void Sort(T A , int Number){ for(int i = 0; ...
[5 replies] Last: Well, you forgot template <typename T> before void Swap(T& i, T& j)... (by Catfish2)
Dynamic Queue Template
 
I've built an almost complete version of a dynamic queue template, but I keep getting unresolved externals. I've compiled the program without writing anything i...
[2 replies] Last: I can't believe I forgot to combine definition and implementation. Loo... (by AdamBomb89)
November 2012 Pages: 1... 1617181920... 51
  Archived months: [oct2012] [dec2012]

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