Beginners - January 2011 (Page 5)

How to transform string into expression?
 
Hi! =] I'm trying to create very easy application. Main goal is that user input two numbers (actually they may be expressions) and application outputs the highe...
[2 replies] Last: Thanks for ur answer, Bazzy. =] I will better learn what the “recur... (by daGrevis)
WndProc() (1,2,3)
 
Hi, i am learning c++ through a book i have, and i dont fully understand what the following line of code does: LRESULT CALLBACK WndProc(HWND hWindow, UINT ms...
[54 replies] Last: Thanks for that, that link cleared things up. (by TpOreilly)
So I gave BigInt a try...
 
Hello everybody! After reading the Bignum challenge I thought i'd give it a go :D I'm currently trying to store the digits in a vector and outputting them. ...
[2 replies] Last: thanks a lot! (by xander333)
by bogdan
Maximum Longest Common Subsequence
 
Hi guys! I know how to calculate the Longest Common Subsequence, but I don't know how to find the lexicographic maximum of longest common subsequences. How ca...
[1 reply] : Can anyone help me, please? (by bogdan)
by gilit2
function id number
 
can I can any id number for the function ( I know __FUNCTION__ is its string name ) ?? I need it to have internal configuration tabke , with the function as it...
[1 reply] : You can use an array of function pointers to call functions based on a... (by closed account D80DSL3A)
by clomer
pointers
 
hello Ive been trying to learn pointers and Im having a hard time with them, after doing all the exercises from various websites and searching through posts Im ...
[2 replies] Last: A eureka moment, mystruct is my int thanks alot. (by clomer)
Setting all values of an array
 
I have a multidimensional array (10x10) that I want all of the values at first to be 0. Is there any easy way i could do this like myarr = 0 thanks in ...
[2 replies] Last: many thanks good man! (by closed account 4Gb4jE8b)
by ctrlz
code not working properly.
 
this is the code: #include <iostream> using namespace std; int main(){ float gasprice = 3.021; int paymentmethod, numberofgallons, k; cout<<"Pl...
[4 replies] Last: setprecision and fixed from iomanip http://www.cplusplus.com/referen... (by ne555)
Writing then reading binary files.
 
Hi all. I have been set a task for my c++ class. I have to create a program to take input about a companys weekly timesheets (Employee ID, hours worked, hourly ...
[5 replies] Last: 2. Bug on Line 91 of your original file - you are only writing out on... (by ne555)
the erase function
 
I am trying to write an erase function for a sequence of elements. I understand what is needed to get done. Erase the position requested and all other repetit...
[1 reply] : After you erase an elements, all the elements that are placed left sid... (by sajithshn)
Creating a list containing all combinations
 
I need it to include all combination of numbers and letters, it can only be a total of 3 characters. So if it is 1 letter it has to have 2 number. If it has...
[2 replies] Last: The rules as you gave are a bit contradictory. It might be best to or... (by PanGalactic)
cin vs getline for this use
 
Okay, what i'm trying to do is this, get a whole line (up to \n char) convert all and then convert them all to lowercase characters. Now i've found out how to d...
[1 reply] : nevermind i figured it out (by closed account 4Gb4jE8b)
Determine the size of long
 
long tmp = 1; int size_of_tmp_long_variable would be 1 long tmp = 12; int size_of_tmp_long_variable would be 2 long tmp = 123; int size_of_tmp_long_va...
[14 replies] Last: @packetpirate The brief explanation: A lexical_cast is a conve... (by PanGalactic)
why doesn't this work...
 
#include <iostream> using namespace std; enum DIRECTION_t { int NO_MOVEMENT; int LEFT; int RIGHT; int UP; int DOWN; }; in...
[12 replies] Last: Oh ok. (by shadowvillian)
changing to directory exe is stored in?
 
Okay so there are a lot of ways to work with directories and most are OS specific, this much I understand. But how could I change to the directory that the exe ...
[3 replies] Last: What Luc is saying is what i want. I think the environment variable wi... (by closed account 4Gb4jE8b)
"" and <> are same ?
 
hi thanks forgive me i ask here does there is a Difference between #include"isosream" and #include<iostream> there is no difference i use "" or <> in my all #...
[2 replies] Last: thanks alot moorecm (by EHSANRAHIMI)
something wrong with my codes
 
EDIT1 : solved already
[5 replies] Last: @craniumonemty sorry for that, im new to this forum world thingy... th... (by markXD07)
nvm (1,2)
 
nvm
[23 replies] Last: Ah, OK, sorry all. :-) I just put crazy mammals and killer rabbits ... (by Duthomhas)
For Loop Variable Scope
 
Hello all, I am new to C++, and am having trouble with a for loop. Here is the source code: // STUFF #include <iostream> #include <cmath> using nam...
[3 replies] Last: [co de] "Your code goes here" [/co de] sum_one = sum_one + (a... (by ne555)
regular expressions
 
Hello, I was wondering how i can use regular expressions in c++ to count every punctuation in one string. Can u help me? I searched but its always too hard to u...
[4 replies] Last: Regular expressions are overkill for something like that. Just loop th... (by filipe)
January 2011 Pages: 1... 34567... 42
  Archived months: [dec2010] [feb2011]

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