General C++ Programming - January 2012 (Page 11)

Can Some-one help?
 
This code doesn't Run in MS Visual C++ 6, I get the following compile errors:: 1) error C2065: 'display' : undeclared identifier 2) error C2373: 'display' :...
[3 replies] Last: how do i tell the compiler about display? Either be declaring it b... (by Moschops)
Efficient BigNum library
 
I have been solving Project Euler problems. Many of those problems required a big num library. I created my own and have been using it. But the problem is that,...
[6 replies] Last: @Gaminic You asking me??? @Moschops Well what you said is right, but ... (by Pravesh Koirala)
problem with expression in while loop
 
HI EVERYONE I would be grateful if someone could help me solving the problem with my CSH file. I am running a simulation which runs with the qsub line in...
[3 replies] Last: HI caligulaminus Didnt know it was a scripting problem. i thought it ... (by vipin agarwal)
Pointers in an argument
 
in my program, i have a function creating a deck, and a function dealing the cards to 2 different hands in a multi-dimensional array ( ), i am creating a funct...
[5 replies] Last: 'Card * hands ' is a requirement If you're not allowed to use the ST... (by johnbob)
Getting Wrong answer ?!?!
 
I believe my solution is correct , but dont't know why the site says that my answer is wrong , maybe you can help . Here goes the question :- Problem 2: The Le...
[no replies]
What development environment do you guys use?
 
on 1) windows 2) linux?
[5 replies] Last: Windows: A virtual Linux machine, using EMACS, makefiles and both the ... (by Moschops)
TicTacToe with Minimax Algorithm
 
Hey Guys !! I was just working on the Tic Tac Toe Problem and was trying to use the Minimax Algorithm. Though i admit that my code doesn't exactly use templates...
[3 replies] Last: Should VALUE be initialised to something for this comparison first tim... (by vin)
Multiple Iterations of the Same Class
 
This is a problem I've had before but have always dismissed. It has caused several personal projects to be ignored and cancelled due to my inability to find a w...
[7 replies] Last: So you can simply use the same instance of a class (the Monster named... (by AdventWolf)
Help with Creating classes
 
Program Objective: Create class named quark which will store the name (up, down, charm, strange, top or bottom), charge (+2/3, -1/3, +2/3, -1/3, +2/3, -1/3 e) ...
[2 replies] Last: Topic line says help creating classes. Which is my question. I have ne... (by shortiev)
input and int and print a binary
 
How do I go about taking a user inputed integer and spitting out the binary or it?
[no replies]
where are std::bind and std::ref header/namespace?
 
in wich header/namespace is std::bind and in wich h/ns is std::ref? lol I'm using VSC++ so I can't check it out :/
[2 replies] Last: thanks :D (by codekiddy)
Where "?" is used in C++ programms.
 
Where the question mark "?" is used in c++ programs other than ternary operators.
[13 replies] Last: Yes, that's valid, because the operator yields an expression which re... (by closed account zb0S216C)
What is bottleneck?
 
I would like someone to briefly explain me what is bottleneck, what does bottleneck have with C++ coding etc. thanks alot. EDIT: plese no link pasting, I have...
[4 replies] Last: that may be optimizing and mooving a "bad guy" function to another thr... (by codekiddy)
using "next" with "auto"
 
Pretty simple question really; why is this giving me an error: for (auto iB = next(B->begin(),B_size), lim_iB = B->end(); iB != lim_iB; iB++) { // error C35...
[2 replies] Last: Thanks for that. FYI the VS11 developer build no longer has this bug, ... (by ausairman)
Finding the seed of a random sequence
 
Look at the following piece of code: #include <EVERYTHING> const unsigned int MAX = 10000; int main() { srand(time(NULL)); int Numbers ; ...
[2 replies] Last: Of things I was looking for, this was exactly it. The title of the ar... (by Intrexa)
reference problem with class
 
hey guys.. this is only my second time doing oop so please help im getting this problem: 1>2_8.obj : error LNK2019: unresolved external symbol "public: void...
[7 replies] Last: oh wow.. that really helped. I realized that I set my implementation f... (by Zatara7)
Please help with Big O notation
 
Ok I have been in CMPT classes for a few years now and still do not understand this. I get the concept of what Big O "is" or what is use is for but I do not und...
[5 replies] Last: Ok that makes sense of course so to take a few more examples (just to... (by Ryan Moroz)
Unusual Error with strings
 
This is a problem that baffles me. I have MSVC 9 (2008) and I have made an application that loads a basic text file from the disk, parses it for the informat...
[7 replies] Last: The only problem though, is that MSVC doesn't say that it is an error... (by Moschops)
by bb1
dynamic allocate
 
I have a class and I am reading list of data from file and i made a static allocated memory and stored everything into a pointer array. The problem I am having ...
[17 replies] Last: @bluecoder Using resize to decrease the size of the vector will call ... (by Peter87)
Copy-paste progrma with C
 
Hello guys, i wrote a file copy program myself(on c, a console project, named it j_copy_paste). To copy a file, i have to open the program, write the source and...
[4 replies] Last: Jisan, http://msdn.microsoft.com/en-us/library/ee663300%28v=VS.85%29.a... (by codekiddy)
January 2012 Pages: 1... 910111213... 36
  Archived months: [dec2011] [feb2012]

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