Beginners - March 2012 (Page 35)

Printing smileys
 
Hey I'm trying to get it to print numbers from this file and its printing weird smiley faces instead. This is all thats in the file: 9 0 3 5 6 1 3 6 8 1...
[3 replies] Last: Alright thanks, that clears it up. (by Ryan Bush)
Max Function
 
I am trying to determine the maximum of 2 numbers. I have a cpp file with the following code (my actual cpp is significantly more complex than this, but this i...
[11 replies] Last: Try this #include <cstdlib> #include <iostream> using nam... (by naqib)
STL containers.
 
Hello, After reading about the vector<bool> specialization where each "bool" is replaced by a bit to save memory, I was wondering: Is there a bool specializ...
[no replies]
c++ stroring a key and an adjacent value
 
so i have to read through a file and store a specific key and value from the line using queue's (myqueue.push()) what i'm having trouble with is seperating k...
[1 reply] : So, basicly the value left from the '=' sign is the key and the one on... (by viliml)
by Ch1156
What is the ? operator?
 
I saw this in a C++ tutorial video i'm watching but he never talks about it so what is this and what does it do, please explain in plain simple english. Th...
[5 replies] Last: That's a great example! In that context, regular if statements are ... (by moorecm)
by DouDou
Memory Question About Global Array
 
I have a memory question about global arrays. Suppose you declare a global array of type double with a fairly large number of elements like 1 million elements. ...
[no replies]
counter controlled for loop issue
 
I'm trying to design a piece of code to create a pattern, however I can't get my compiler, Xcode, to recognize the counter variable. Any solutions? Also I don't...
[1 reply] : In lines 38 and 40 I don't believe '1' is what you want. #include <i... (by cire)
Double variable not incrementing
 
Hello all! I just found out about the Collatz Conjecture ( http://en.wikipedia.org/wiki/Collatz_conjecture ), and I noticed that the highest number ever tested ...
[4 replies] Last: Thank you, I will try that. (by lfnunley)
by fmbaby
making a calculator in C++ My assignment plz help....
 
Plz tell me what is lacking ... it will not display... # include <windows.h> # include <iostream> # include <string> # include <conio.h> # include <stdio.h...
[7 replies] Last: Thank you. I'll try it. (by fmbaby)
Reversing integers.
 
I'm supposed to write a program for class that takes an integer and reverses it. For example, 123 would become 321. I don't even know where to begin. I have loo...
[6 replies] Last: Thank you! I think I understand now. My only problem now is that it ha... (by EricaFH)
by aryu
Can anyone help me pls
 
On lines 46 (for) and 52 ( '}' ) it says it is expected a declaration. What does that mean? [code firstline=1]int main() { using namespace std; string fNam...
[14 replies] Last: Did some searching on this and it may be depend on the compiler. I ha... (by MrHutch)
itunes database
 
Hi, i received this homework assignment and need some help. I need to create an iTunes database that can hold 10 song/artist/album records as well as allow the...
[12 replies] Last: ps if you use it change some of the wording bc most likely youre in my... (by extra54321)
User-defined function (urgent)
 
Write a program that consists of a named checkNum that takes as a parameter an integer (as a long value) and returns the number of odd, even, and zero digit. ...
[2 replies] Last: #include <iostream> using namespace std; const int N = 20; void getNum... (by iceboyz91)
by lare26
lists and iterators and errors...oh my!
 
I am trying to find a skill in a list of strings named Skills. I want to be able to remove said skill like this: void Player::removeskill(const std::string ...
[7 replies] Last: I have not understood what is the problem? The question arises do you... (by vlad from moscow)
Placement New... Again
 
There's a few points I'm not quite clear on, and I can't seem to locate answers for them. So, here are my questions: 1) Does the standard guarantee that obje...
[5 replies] Last: [quote=ne555]Sorry if I worded badly. No worries :) Thanks for your ... (by closed account zb0S216C)
by codrgi
convert ctime!!
 
solved!
[1 reply] : CTime is a class. You can't convert it to an int or byte. What are y... (by MrHutch)
by Figho
PLEASE I NEED A HELP, PLSSSSS!
 
I had read through many posts on different topics but i'm still confussed. I downloaded some tutorial which i read few of them but yet can't even code a complet...
[4 replies] Last: you can always contact me for any books or compiler help, or any other... (by Waqar Ahmed)
How to connect three .cpp file together?
 
I have two .cpp file written before which has different functions. Now,I have a problem. I want to use these two functions in the .cpp files written before to b...
[5 replies] Last: No problem. (by MrHutch)
Syntax questions
 
I hope my question is not too stupid, but I could not find any help googling it, nor reading the website. 1. In c++ the prototype of a function returning a poi...
[8 replies] Last: Okay, thank you very much, that makes it a lot clearer for me ! (by Esteban)
by BJzero
i need a little help
 
i have a project where i have to use several IF statements without making them nested(without using "else") the program should asks the user to enter a file si...
[2 replies] Last: Thank you that was very helpful (by BJzero)
March 2012 Pages: 1... 3334353637... 71
  Archived months: [feb2012] [apr2012]

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