Beginners - June 2014 (Page 42)

by yepMe
Difference between template and vector
 
Hi Everybody, I just got introduced to vector, what I understood is it is a structure like template that holds different data types, it's a dynamic array. My...
[5 replies] Last: A vector is implemented using templates, because a vector must be able... (by xismn)
Double Hashing
 
Can you plz happens when 47 and 55 is inserted ( how and why is it inserted in that location of the index http://tinypic.com/r/5fnn0p/8
[2 replies] Last: http://www.cplusplus.com/forum/general/134132/#msg717608 This is call... (by Smac89)
Is the temporary object be a rvalue?
 
As mentioned in this tutorial(http://msdn.microsoft.com/en-us/library/f90831hc.aspx), a temporary object is a rvalue. I write a sample code: class A{};...
[2 replies] Last: thank you for your kindly reply. :) (by zaumreit)
by BLANKE
Need Help Understanding How To Input A FullName
 
I was beginning to make a text based game when I couldn't even make a user input a full name. It has really got me confused, unfortunitly and sadly I cannot get...
[3 replies] Last: Thanks for all the help! (by BLANKE)
Need Help writting code for telling time!!
 
I need write a code with a function that returns the number of seconds since the last time the clock struck 12. Im really new to C++ and I want to see how to do...
[2 replies] Last: Maybe also this time there might be bugs, I am tired, it's 3.42 here (... (by closed account jvqpDjzh)
by zagzag
Strings decimal to binary
 
okay lets say i have the following String and inside it there is a decimal number. How do I translate it to binary number. I know its easier to declare an inte...
[4 replies] Last: The second block of code I gave converts a string to an integer (unsig... (by Chervil)
by CDavis
Damn Array's
 
So I've been having issues with array's and this last problem really has me. Basicly I need to provide a define constant for how many dice to use and with that...
[3 replies] Last: diceRoll = rand() % (6 + 1); Do you want a number between 1 and 6? If... (by closed account jvqpDjzh)
error: endif was not declared in this scope
 
#include <iostream> #include <cstdlib> using namespace std; int main( ) { int numberToGuess; int myGuess; numberToGuess=92; while (myGuess != ...
[4 replies] Last: ure the BESTTT!!! I could kiss u right now:) Have a great evening! (by liatleder)
by CDavis
More Arrays
 
I am just having a round time wrapping my head around these arrays. The problem I am having is I can get the 2 dice to work correctly and print out (except now...
[2 replies] Last: I made the changes that you recommended but the only thing bothering m... (by CDavis)
reading file and counting word appearances in it
 
Hello, Getting on problem, where i'm trying to read input.txt which contains the following: colors red blue green yellow orange purple sky blue high c...
[5 replies] Last: Best of Luck etcfantus. Keep the hard work going (by fahadmunir34)
Goto a other function
 
Title says it all but heres some sample code int main() { /**Randome code**/ } int se() { }
[1 reply] : http://www.cplusplus.com/doc/tutorial/functions/ void printHi() { ... (by long double main)
If statment crashing.
 
Why is this "if " statment crashing. I get Konsole.exe has stoped working #include <stdlib.h> #include <stdio.h> #include <windows.h> #include <iostrea...
[4 replies] Last: Change line 27 to std::getline(std::cin, mystr); (and don't worry a... (by long double main)
Binomial Queue
 
I want to write a code for binomial queues. I wanted to know if its possible in a binomial queue to have same values in the queue For example: I insert ...
[no replies]
Having trouble storing a class pointer in std::map
 
Hello, I am currently attempting to teach myself C++. I am using Windows 7 64 bit, and Codeblocks with mingw. Though the original purpose was to create games, t...
[4 replies] Last: Thank you Helios. I forgot to correct line 12 (I code on a different c... (by HavingPhun)
binary tree of the word "whiteboard"
 
hey all . can someone plz explain to me how we can draw the binary tree of the word "whiteborad"? I really need to understand how we do it . thank you
[no replies]
by BLANKE
Fixed Pathagorean Theorm Thanks!
 
#include <iostream> #include <math.h> #include <string> using namespace std; int main() { cout << "What value would you like to solve for a, b, or c?"; fl...
[3 replies] Last: Thanks for all the help! I knew i just needed something simple to add,... (by BLANKE)
Variable Conversions (1,2)
 
So I did a bit of searching only to find I couldn't make heads or tails of the parse stuff. I'm trying to convert string input for variables:one char, one int, ...
[32 replies] Last: I notice you are bringing in information into a lot of functions but y... (by CodeGoggles)
Need help with CIN
 
I started programming since 2 days and im still a little noob at C++ When I debugged my code I got the following error at line 9: ambiguous overload for 'oper...
[1 reply] : That's because dolar is a function prototype and not a variable. Li... (by AbstractionAnon)
See if the user inputed cls.
 
Title is the same as Q: lol and my code that I have is: and im trying to make a console! #include <stdlib.h> #include <stdio.h> #include <windows.h> ...
[3 replies] Last: @Abs yes I changed it to while (true) { } guest i thougth of batch (by wtfsamcrap)
"Is this correct" ? "What do you prefer?" : It doesn't matter.
 
Talk about the possible leaks and wrongs things to do. You can also say, if 2 things are equivalent, what is the best: int main() { using namespace std; ...
[19 replies] Last: but including trailing 0 is not the behavior people expects from leng... (by closed account jvqpDjzh)
June 2014 Pages: 1... 4041424344... 48
  Archived months: [may2014] [jul2014]

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