General C++ Programming - February 2012 (Page 13)

Using Varaidic micros with Microsoft VS2010
 
I was trying to use the variadic micros with Microsoft visual studio 2010 and I faced a problem in the preprocessing phase , the complier couldn't translate the...
[no replies]
Store top-100 most frequent words
 
Hi to all.. I have a code who search for a words in a file and tell me the frecuency. #include <iostream> #include <fstream> #include <algorithm> #include <...
[4 replies] Last: Ups :) sorry hehe!!.. Corrected... Thanks again Athar!!... Very nice ... (by MacGregor)
How to find possible combination
 
Hi, I want to find possible combination of "TEST", which is char array of five indexes.There should be no repetition of chars. For example TEST should be out...
[3 replies] Last: here: #include<iostream> #include <cstdlib> using namespace std; int ... (by viliml)
Would an expression involve a const (or a defined variable) always be evaluated?
 
Hi all, I am new to C++, please forgive me if I have used inaccurate terminology in the question. Let me post some simple codes to illustrate better my qu...
[10 replies] Last: Hi Cubbi, Thanks for the reply. It clarifies things a lot. (by maxlauhk)
by Moosey
Coloring the Console Text
 
So I spent about 15 minutes trying to figure out how to code the console text different colors at different times (I am making a text-based game) and I came up ...
[10 replies] Last: Retrieves a handle to the specified standard device (standard input, ... (by cire)
Random Generator problem C++
 
Well I get stuck and I need your help for a gambler program... the user select 0.Heads or 1.Tails... the program automatic randomize 10 times a variable and ...
[1 reply] : I'm a little confused by your code, you seem to be making things harde... (by MrHutch)
O_O No idea (1,2)
 
I have no idea on how to solve this one: Ana learned about permutations. She knows that there are n! (n factorial) ways to order the n elements, and she kn...
[22 replies] Last: You'r wellcome!!! LOL! (by viliml)
by jwings
cannot solve this error...
 
Now I'm studying about writing template in LinkedList class... This is my first time writing template class There r a lot of bugs at the first time... but...
[7 replies] Last: Hi @jwings said So, if i have template, i cannot implement it in ano... (by therockon7throw)
by west91
Selection Sort
 
Hello I am running into a few problems in generating a Selection sort. Here is what I have so far. javascript:tx('code') #include <iostream> using namespa...
[3 replies] Last: If you want code, see the example in http://en.wikipedia.org/wiki/Sele... (by hamsterman)
Get Pointer of Funct in Struct
 
I was wondering if there was a way to initialize a function and place a pointer within a struct so that I can in some effect create a macro to create a function...
[3 replies] Last: Yes lambda functions is what I needed, thank you. edit: Seem to be u... (by closed account o1vk4iN6)
by musico
Open source projects
 
I have figured a good way to develop my skills will be to contribute to open source programs. The most obvious for google to track down is sourceforge which is...
[1 reply] : This thread is not getting as much attention as it should. You should ... (by hamsterman)
by boaz
How to clear?
 
solved .. thanks guys
[6 replies] Last: [quote=OP]I have a simple calculator. for c++ #include <iostream> ... (by shacktar)
Singly linked list
 
Hi guys im trying to write a C++ program to read 510 students’ name and ID and also use a singly linked list to add each node to the bottom of the list. then ...
[2 replies] Last: A linked list is a type that consists of nodes. Each node has data fi... (by closed account zwA4jE8b)
C++ sorting without arrays
 
I need to sort a series of 25 numbers, entered by the user from smallest to largest, then count the number of times the user entered the number "10". I can't us...
[4 replies] Last: I figured it out, I misread the question. #include <iostream> using... (by free2move)
'this' used in initializer list - Dangerous?
 
I'm wary of this code because of the warning that's being thrown, but I can't for the life of me see how it could be dangerous in this case unless the lambda ex...
[1 reply] : How exactly is 'this' captured in the lambda expression? like this:... (by shacktar)
Drawing Tower Hanoi 2D
 
I have strugle to illustrate the tower hanoi in 2D :( , please any function that will help me to implement it?
[2 replies] Last: what about drawing it by using char array ?? this long :( (by alimamdouh)
sdl file open paths
 
Hi, I cannot figure out how to load files (using sdl) that are in a different directory. I am currently building in windows 7. So my .exe is in the root fol...
[8 replies] Last: Awesome, that works. I thought I tried that before but i guess not. (by closed account zwA4jE8b)
What is the difference in these parameters?
 
I'm looking over some notes from class today and I come across some functions with parameters that I don't really understand. void List::recursiveCopy(ListN...
[1 reply] : What's the difference in "*&" and "* const &"? One is a pointer pass... (by Cubbi)
method that returns a pointer
 
hello guys, do you know how can I do a method that returns a pointer of some structure? look what I did... /*header*/ otherclass::aStruct* getPOint...
[2 replies] Last: something much worse than that, I was just eliminating possibilities..... (by fabiolanza)
Raw pointers or vectrors?
 
I am trying to avoid using raw pointers as much as possible. However, here is a scenario where I can't think of an elegant way to avoid it. I have a binary f...
[5 replies] Last: The underlying implementation of a vector is always** guaranteed to ... (by Bench82)
February 2012 Pages: 1... 1112131415... 43
  Archived months: [jan2012] [mar2012]

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