Beginners - February 2010 (Page 5)

Windows real time microphone input.
 
How could you input sound from the microphone on windows in real time? Something that would let you do something like this: int main() { sound sample; ...
[no replies]
by lotios
Problem with std
 
I'm trying to make a game in SDL and have started working on the menus. My problem is that I have an std::string declared in a class, and I get an error about i...
[4 replies] Last: Why didn't I see that? I should get my vision checked. Thanks for your... (by lotios)
Error: ambiguous call to overloaded function
 
This error comes up for me sometimes, and I'm still no sure what it means. Could someone please explain it to me? Here's my program: #include <iostream> #in...
[2 replies] Last: UGH @ using pow to square something. Just square it: pow(a,... (by Disch)
by dkaip
i am trying to uderstud...
 
Hello. Learning c++ i am trying to understud the "class SFML_API Glyph" of the code what is mean? class SFML_API Glyph { public : Glyph() : Advance...
[2 replies] Last: Thank's a lot Jim (by dkaip)
recursionproblem
 
pls help me.. i nedd to make a program using recursion.. for example.. user will input 3+2.. the concept of recursion should be 3+1+1 and that the program will ...
[5 replies] Last: @ hikarujen don't double-post @amit0991 don't tetra-(or is it quad... (by hamsterman)
Print The diagonals of the matrix with functions
 
OKay guys,,,Hi,, I am preparing this n00b c++ project for my school and got stuck at a place. I am trying to print the diagonals of a matrix of size m x n. I g...
[1 reply] : If you didn't need nested loops in the first function, why would you a... (by hamsterman)
converting TCHAR/TCHAR* to LPTSTR
 
Hi all. I am running into a difficulty converting TCHAR to LPTSTR, or at least in converting TCHAR* to LPTSTR. I should admit that I do not know what the '*' ...
[3 replies] Last: You have the right idea. You're very close... assuming tstring is a... (by Disch)
Data items in a class must always be private
 
Are the undefined functions are private
[2 replies] Last: Your topic is a false statement. There's nothing wrong with public ... (by Disch)
Create function from char string input.
 
I have written code which allows the user to input a password and user name and then the user will input it again and compare the 2. I want to make this into a ...
[1 reply] : That should probably be broken up into a series of function calls. He... (by jRaskell)
random number while loop
 
Hello there! I am working on a project that will allow the user to input a "guess" (a number) in the range of 1-100. I have created a while loop that will narro...
[11 replies] Last: WOW..... I'm most be blind and I wrote this lol..... and thanks for th... (by OnymousIllusion)
by aina
change the decimal number to integer
 
i'm using C++ and i don't know how to change a decimal number to integer. for example, 7.345 WEEKS (week is the unit)..i want to change the decimal, 0.345 WEEKS...
[3 replies] Last: Thx for us :) (by screw)
Outputting information to .dat file?
 
I've created a very basic program, that instructs a user to enter information (12 temperature values) and that gives an average temperature based on that inform...
[1 reply] : http://cplusplus.com/doc/tutorial/files/ when opening the file it's... (by gcampton)
code review on .cpp and .h. Wont compile
 
My goal is to create a function that has one parameter and returns an integer value. There are several possible parameters; If the parameter is a double it will...
[2 replies] Last: also note your not using your parameters "dataIn". This may be intenti... (by gcampton)
unset precision
 
I have been trying to get this figured out for hours. Nothing seems to be working. How can I unset a set precision? the data that is being output looks lik...
[1 reply] : I've decided to just go with a "so what" solution. I am just going to... (by Ferretsnarf)
by qaz
Why does my while loop fall through?
 
I'm sure it's something simple that I'm just overlooking but I'm going crazy trying to figure out why this isn't working. I'm currently reading through a begin...
[3 replies] Last: I believe the problem was in line 16. And I should take a wild guess t... (by bluezor)
I need to open a text file and assign numbers in the file to int variables.
 
I have a file in notepad that looks like this, 1 2 3 4 I want to make the program open the file and assign 1 2 3 and 4 to different integer variables...
[1 reply] : file >> value1, value2, value3, value4; replace the commas with >>... (by Warnis)
recursionproblem
 
pls help me.. i nedd to make a program using recursion.. for example.. user will input 3+2.. the concept of recursion should be 3+1+1 and that the program will ...
[no replies]
Pointers
 
Well I just started learning pointers and I am officially confused...mainly when allocating new variables. Can someone suggest some tricks to learning how to i...
[8 replies] Last: Okay, I think I have this down...is it safe for me, semantically, to r... (by yoked88)
Extracting values from file
 
Hi. In the file "myfile.txt", I have data like so: Name : John Sex : Male Age : 20 I wanted to extract the value for Name "John" and store into a...
[3 replies] Last: Thanks for the replies. I have tried PanGalactic's method, but it d... (by gallardo)
Make a parameter return a value
 
Please review my code to let me know what I'm doing wrong here. I'm building a function that will return a specific value if the parameter is of a specific typ...
[1 reply] : that's kind of an interesting idea. int dataType(long double dat... (by Disch)
February 2010 Pages: 1... 34567... 32
  Archived months: [jan2010] [mar2010]

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