General C++ Programming - August 2011 (Page 29)

by jpotts
Limiting choices.
 
Hi, I have code that asks the user to choose from a list of numbers, but they can only choose one number once. Occasionally a number will repeat in the list, ...
[1 reply] : Store the user input somewhere and then check if the user has already ... (by Silvermaul)
overloading operator<< and namespaces
 
Hello, I have a problem with overloading operator<< combined with namespaces. The following code compiles OK: file test_matrix.hpp: #ifndef TEST_MATRIX_H...
[5 replies] Last: Thanks, putting the using line inside the Main namespace solved the ... (by Michal Kaut)
by jpotts
Clear the output screen
 
The output screen tends to get a little cluttered, i tried the command system("CLS") But that doesnt seem to do the trick (when it runs it says it cant find ...
[11 replies] Last: i couldnt figure out how to get it done... I just ended up using the b... (by jpotts)
variables addresses
 
Please look at this code: int main() { int a=5; int b; int *c=new int(5); cout<<&a<<endl; //0012FED4 cout<<&b<<endl; //0012FEC8 cout<<&c...
[2 replies] Last: >Why base address for variables inside main function is 0012FED4 but ... (by helios)
by Timus
Recursive template
 
I have a problem with recursive templates. template<class TType, int X> class myclass{ template<TType, MyFunc(X)> arr[MyFunc(X)]; }; This code ...
[5 replies] Last: Could the OP be looking for something like this? #include <cstdio> ... (by m4ster r0shi)
by namcs
How to use TBB with VS 2005 and Intel Compiler 9.1
 
Hi, I was using Visual Studio 2005 with Intel Composer 2011. Just now this Intel Composer expired so I have to go back with Intel Compiler 9.1, which only suppo...
[no replies]
Please Help with my program
 
Hi, I've been writing a program to analyse some data from a particle counter. Basically the program just adds data and puts it into excel. My issue is that the ...
[2 replies] Last: Thanks for the advice. I ended up learning basic VBA and making a macr... (by hherbol)
Error: array used as initializer
 
nope it should've have been strcpy
[1 reply] : TicTacToe() : board("123456789") {}; char board ; Clash... (by Hethrir)
console application question >.<?
 
ok i am trying to make a simple game on the console application so i made something as simple as if i press 'A' on my keyboard it tells me that i pressed the le...
[7 replies] Last: thanks peoples ill mess around with this information to see what works... (by chainswap)
August 2011 Pages: 1... 272829
  Archived months: [jul2011] [sep2011]

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