General C++ Programming - July 2010 (Page 4)

by unger3
cyclic template classes
 
I've got a problem with template classes. I have a base class Matrix, from which a dense and a sparse matrix are derived (all three of them are templates). Now ...
[2 replies] Last: This is a typical problem and a solution is like the following. Hope i... (by yzghan)
Constant Rate
 
How do I create a C++ function which ensures that 20 jobs are sent every min in a queue program? Also,how do I use system clock to calculate time diff?
[5 replies] Last: Ok. If you're working with 1 second resolutions, then you don't hav... (by kbw)
by bm2010
access code pointer using a variable
 
im not exactly sure how to word this,so im sorry if this makes someones head explode. im writing a script language parser for a game im working on. now i kno...
[6 replies] Last: thanks again Athar. you've been a huge help. i never had thought of us... (by bm2010)
by Gugge
Closing project properly
 
Hi! Im using borland c++ builder and having problem with the X in the right top corner in the forms. I have a multiple form project and have made it that way t...
[no replies]
by ozair
maze traversing algorithm
 
Ok, I just read an algorithm for traversing a maze and finding the exit point, I have a 2D maze, with beginning position... the problem is that I have some dif...
[2 replies] Last: It says that if you continue following one side of the wall, you'll ev... (by Bazzy)
How to write a function that checks it runs or not on a virtual machine (64bit)
 
Hello all, In 32 bit it wasn't problem to understand if the program runs on virtual or native machine using inline assembly. But in 64 bit inline assemblers ...
[3 replies] Last: of course it is better if there is no differences between wm and nativ... (by togikan)
Construct a child class based on a type string
 
Hey, i've a small design question, i hope there is an easy answer. What's the cleanest way to construct (at run time) an object O that is a child of a parent...
[no replies]
function object with for_each() in C++
 
I am going to use a Sum function object in for_each() function to implement the sum of a vector. But I cannot get the sum result. below is code: #...
[3 replies] Last: jsmith, Denis, thank you very much. I had tried to find the solution b... (by DennisWu)
by thg85
Calling a function via pointer with too many parameters
 
#include <iostream> void f(int i) { std::cout << i << std::endl; } int main() { void (* p1)(int) = &f; (*p1)(1); void (* p2)(int, int) = (vo...
[8 replies] Last: There is also the symantics to consider. If you're passing more param... (by kbw)
by Gugge
Linker Warning : Public symbol '_X' defined in both module
 
Hi! I'm using borland c++ builder 2006 and gets about 600 linker warnings :( I having a program with like 7 forms used for different types calculations. On...
[no replies]
by qabil
Press esc to exit
 
hi.. I make a program that can open the file. Open file : but when user press esc button the program will back to the menu what must I use, cin , getch,...
[6 replies] Last: [quote=Duoas]Or just enter nothing... Yes, that's an option too, but... (by m4ster r0shi)
Graphics mode
 
hello , i want to do window by graphics mode in borland c++ but there is a problem , when i take data from the user how to appear it in the screen . it is my p...
[no replies]
by tition
the [not so] evil C++ syntax
 
[Edit: ] My code is indeed all a mess. Bazzy's solution further down is how to do this properly. Hi all, this is not to ask for advice but just to complain a...
[8 replies] Last: const correctness should be followed for a reason, so that's indeed no... (by Athar)
by bm2010
Issues with a struct array. Any assistance would be appreciated
 
im having some trouble with assigning values to a structure. it seems to set every element of the array the same value, even though it should set it to a specif...
[2 replies] Last: thanks for the info. i did change the structure command and parameters... (by bm2010)
convert to c++(two dimensional array)
 
i have a pseudocode any suggestion make a two dimensional array using this pseudocode..? set i to 1 while(i<=m) { set j to 1 while(j<=n) { set arr2[i,j...
[1 reply] : Check these out: multidimensional arrays http://cplusplus.com/... (by m4ster r0shi)
5 errors T_T
 
#include iostream #include string int d; int o; string your; #include<iostream.h> void main() { string home; int i,j,m=10,n=10; int a...
[3 replies] Last: #include iostream #include string int d; ... (by qabil)
Compiling .inl in Visual Studio 2010
 
I am trying to implement a very simple code in Visual Studio 2010. -------------File Name: BDclass.h------------------ #ifndef BDCLASS_H #define BDCLA...
[5 replies] Last: I think there is an error in Visual Studio 2010 because of which my pr... (by learnerCPP)
syntax error : identifier 'cout'
 
#include<iostream> using namespace std; void main() { int choice; int num ; int Item,k,x; int sum,max,min,LOC; int j,n; int LA ,temp; ...
[11 replies] Last: replace delete LA with LA = 0 , and put a return 0 and the end of... (by export)
Subversion interaction
 
Hello, I looking for a general direction to go. I have been tasked recently with editing one of the companies tools so that when a file is opened in it, that...
[6 replies] Last: This suggets you can get the headers whith the source code: http://ww... (by Galik)
can someone compile this script into a .dll file for me!?
 
http://pastebin.com/sFRekB59 script is too big to post on forum =[ so link to paste bin is above. the script is on that page. if someone can do it for me....
[6 replies] Last: thanks for help guys ima see if i can find it. and post a new thread i... (by w0320601)
July 2010 Pages: 123456... 20
  Archived months: [jun2010] [aug2010]

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