General C++ Programming - February 2011 (Page 10)

tricky FUNCTION CALL
 
I am trying to build an passing array for row major order. The client file has function call like...
[1 reply] : You have a matrix 1 5 9 2 6 10 3 7 11 4 8 12 in column major orde... (by hamsterman)
Type duplicate symbol player::player()in
 
Hey everyone! This is my first post in these forums so hello to all of you! :). I'm a newcomer to...
[3 replies] Last: Ahh thanks guys. I can't believe it was such a simple mistake. I'll lo... (by cloudarchitect)
Not decleared in this scope
 
Hey all, i have this script for educational use only and there is a few issues i am having with not ...
[2 replies] Last: Please include #include <cstdio> or #include <stdio.h> you need... (by richardforc)
loop c++ : whats missing in this code?
 
the problem is : write a program that would generate the output below : * ** *** **** ***...
[4 replies] Last: Haha that is very nice rocketboy! (by NickPaul)
Removing values from Array
 
A program I am working on requires that I removed zeroed-out values (along with their indices) from ...
[2 replies] Last: Normally, one would use std::vector and std::remove: http://www.cpl... (by Athar)
Please please please :::how I can calculate the excution time in C++
 
Hi; I want a function that calculate the excuation time in C++ my program is : Device an al...
[1 reply] : You can use clock() to measure execution time in clocks. CLOCKS_PER_SE... (by Athar)
What is wrong with this copy constructor?
 
Ok so everything in this program works except for the copy constructor when I test it. When I run th...
[8 replies] Last: Ah, good. Glad you fixed it. (by firedraco)
Direct3D Wrapper
 
I was thinking about making a wrapper library( if you want to call it that ) for Direct3D. I Just wa...
[1 reply] : It's reasonable to wrap C APIs so you can use them more naturally in C... (by Athar)
symbols not defined
 
I'm trying to use this library ssem.h and sshm.h, but I'm getting the following error message: ...
[1 reply] : Problem fixed. I accidently copied the wrong file in my directory usin... (by dunsondog109)
Changing states
 
I am making a gaming engine (of sorts) I decided to implement a system where I can add "States" so I...
[1 reply] : You need to work with pointers ;) #include <iostream> #include <v... (by m4ster r0shi)
Problem with #include and virtual functions
 
I have a class called object that includes a object of a class called attribute. Attribute, howeve...
[2 replies] Last: Object.h needs to include Attribute.h. Attribute.h can forward declar... (by jsmith)
Clearing out pipes
 
Hey guys I'm writing a program that reads input from a file then searches for a number in that file....
[3 replies] Last: Not with just the pipe; you'd need another synchronization mechanism ... (by jsmith)
Sample midterm problems, class functions
 
I have a midterm tomorrow and our professor gave us a sample midterm. I somewhat know how to do thes...
[3 replies] Last: Not "going to". he most probably "has". (by rocketboy9000)
Do I need to lock static constants of a class in a multithreaded program?
 
Q1) Do I need to lock static constants of a class like string::npos that is accessed by multiple thr...
[6 replies] Last: @Zaita: Question 1 dealt with static constants. It's pretty clear fro... (by PanGalactic)
Creating a usable Executable on another computer
 
Hi, I just recently learned that an executable file is created simply by building my c++ program ...
[3 replies] Last: bartoli - thank you. I prefer to have the libraries statically linked ... (by readysetgo)
by firix
iterator class
 
Hi, I've written the source code vector and list. I would like to write the iterator class for t...
[no replies]
Array not being modified by function call
 
Hello, I can't find anything explaining why this would be happening, so I implore this community. I...
[4 replies] Last: Nailed it, stupid mistake, thanks. (by bewers2)
A string problem.
 
I'm making a text adventure engine. I want to use strings in the class and I think I'm leaving a li...
[5 replies] Last: OH WOW Thank you... That made so much sense! Lol. (by HeWasLikeAGhost)
Auto_ptr deallocating object because of an unconstructed object
 
Hi, I have the following piece of code - foo(Auto_ptr<A> autop1){ Auto_ptr<B>autop2(new B...
[5 replies] Last: If foo() is never to own the auto_ptr (but B is) then foo should take ... (by jsmith)
Using pthreads
 
I found an example code that utilizes pthreads to do matrix multiplication. I wanted to run it to se...
[2 replies] Last: You have to perform an explicit cast of the pointer. (by jsmith)
February 2011 Pages: 1... 89101112... 25
  Archived months: [jan2011] [mar2011]

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