Beginners - March 2011 (Page 12)

Need to turn program in soon/loop Quest.
 
I have been trying for a while to figure out how to put my program together where it writes to a file the height of a projectile. The exact problem is stated...
[13 replies] Last: Those variables aren't what I would call "random" I may be being pedan... (by Computergeek01)
by michy
Sound!
 
hi there, previously, i learn about digital audio...now im trying to play a sound using SDL library...I have a problem on processing the sound. Now im trying ...
[3 replies] Last: Sry for coming back late..=( but, Wow thx for the reply I got what u ... (by michy)
installing gcc in ubuntu
 
as i m beginner can anyone tell how to install gc on ubuntu OS.....
[3 replies] Last: by some crazy settings Ubuntu does ship with gcc- but as a package ... (by hanst99)
by michy
Operator datatype
 
hi there, im just wondering is there any data type for operator [+,-,x,/] ?? because i trying to reduce my code as following: Calculate(int x, int y, operat...
[1 reply] : operators are member functions. You can't do that, though what you wan... (by hanst99)
by sampat
Please Help: Having issues with calling a function from class in main
 
All- Below is my code, I get an error: "expected primary-expression before '.' token " on line 23, I have bolded the line below #include<iostream> usin...
[2 replies] Last: Thanks for helping Xander314 (by sampat)
Code::Blocks - linker settings
 
I am frankly stumbled - I can't seem to find a way to edit preset linker options from the IDE. When I build a project created from the Win32 GUI template for...
[2 replies] Last: I meant, I don't need to explicitly link these - I compile with -mwind... (by hanst99)
Loop Condition
 
Hi, I'm not understanding how to state what I need this to do in my condition statement. Could you offer insight? #include <iostream> #include <string> ...
[3 replies] Last: Thank you so much! I used both your advice because I couldn't get one ... (by nani1799)
by lego77
reading from a file into vectors
 
Hello guys; How can i create a function in C++ that reads into three dynamically (not statically sized) sized vectors?.I have been searching the web for hour...
[3 replies] Last: Um, line 31 closes the file. So you can't read anymore from it. Furth... (by coder777)
Weird Results
 
Hey there, I'm working on an assignment for my comp sci class. This is the code so far: #include <string> #include <iostream> #include <list> #include...
[1 reply] : Yes line 12 dereferences the iterator even though it's already proven ... (by coder777)
Decent compilers
 
Hey guys, I just want to know if there are any good compilers out there you would recommend? Since I'm just a beginner, I'd like to gather information from the ...
[3 replies] Last: Code::Blocks should work with most compiler but it's mostly used with ... (by Bazzy)
by pooshi
New operator with a vector class
 
I am working on a vector class to fill it with data. When I run the code it outputs the correct data in the void myVector::push_back(int valueIn) function but i...
[14 replies] Last: Thanks gentlemen for all the help. I am sure you will be hearing from ... (by pooshi)
Text File into four parallel array
 
Hello all My sad little program which compiles but provides no result. this is an assignment which has way more than this right now im just trying to get out...
[3 replies] Last: Oh yea sorry mathes, it was suppose to be one name then account # and ... (by karanhs6)
For statement problem
 
hello, new to C++ and well... forums. i have a problem where i need to convert Fahrenheit to Celsius and show a certain number of conversions. it is user in...
[2 replies] Last: i need to make it so when the user inputs a number, it displays the nu... (by John Chase)
How to delete an element within a list
 
Hey there, I have just started using the in-built Lists. I have a list of bullets for an asteroid game and can check through the list updating and drawing wher...
[2 replies] Last: but surely that would cause an infinite loop as there is nothing to mo... (by Chazzmundo)
compile c++ program in ubuntu
 
I m beginner. I want to know that how to compile c/c++ programs in linux OS(eg. in UBUNTU)??
[3 replies] Last: http://www.cplusplus.com/forum/lounge/37244/ (by moorecm)
SPOJ Problems
 
Can you help me to solve this problem :: 5874. Square Problem code: SQRE You are given a square with 'n' points on each side of the square. None of these...
[1 reply] : From 4n points you can pick C 3 4n triplets, however not all of them... (by hamsterman)
String Shuffling
 
string tempwordhold = {"ALL IS WELL"}; void shuffle() { int x, y; string word,temp; word = tempwordhold ; x=word.length(); ...
[2 replies] Last: but i don't know how to loop my existing shuffle() routine to process ... (by icko718)
by tonnot
How to combine overload operators << and + ?
 
I dont know if it is possible I want to have a class to store strings. For example I have : double a; std::string b, a=15.44 b="hell...
[3 replies] Last: + has higher precedence than << so, myclass << a+b; is the same as ... (by Bazzy)
by jaxson
Complicated pyramid
 
hi guys, i have complicated homework to do. how do i print this pyramid using c++. i have been trying since last month but can't do it. any help please ...
[11 replies] Last: it was me that reported ALBATROSS because we are all here to learn ... (by firedraco)
Pure Virtual Functions
 
I'm having difficulties figuring out how to get a pure virtual function to work correctly. I have an addClass with two unsigned ints as arguments and I need t...
[4 replies] Last: Thanks for the quick replies. Everything seems to be good now. I chang... (by reubenfs)
March 2011 Pages: 1... 1011121314... 52
  Archived months: [feb2011] [apr2011]

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