Beginners - July 2014 (Page 31)

Jumble word through user input
 
(Jumble word program) (plz guys help me to make this program) user enter few characters randomly, then press enter, (your program stores 50 names of your ...
[6 replies] Last: thank you very much. i resolve the problem and program work perfectly.... (by zeewaqar)
biggest element of the line and column of the array
 
#include <iostream> using namespace std; void Lines(int mat , int vect1 ) { int i, j; vect1 = 0; for(i=0; i<2; i++) { ...
[2 replies] Last: @coder777 Note that current C/C++ is case sensitive. you just frigh... (by Jaybob66)
by bonho
Singleton compilation error LNK2001
 
I'm trying Singleton to generate unique number during a session and arrived at the error Error 1 error LNK2001: unresolved external symbol "private: static c...
[2 replies] Last: oh great that's even better thanks. (by bonho)
[C++] Decryption: Undoing a circular left binary shift
 
For anyone stopping by, I needed to make all of the "char" variables unsigned. "unsigned char num, num2, num3;" Hello. I've searched here and around the ...
[2 replies] Last: Thank you so much helios! I tried that earlier, but my mistake was: c... (by slypenguin0)
Calculating the function and checking its domain
 
Hello, my task is to calculate the following function: cube_root(log 5 (x 2 - sqrt(x)) for argument x = [-5 ; 10], with increment 0.2. So in order for x ...
[9 replies] Last: So I should always test if I can represent a specific number as a fra... (by Cubbi)
rot13 from command line
 
Hi! and HELP! Working on an assignment for a class, been going in circles on how to get arguments from the command line and pump them through a rot13. My ro...
[2 replies] Last: Makes sense, thanks. (by andert1)
If statement
 
I am writing some code. I need an if statement that basically states if a digit does not appear in this span of 80 characters, you will need one. I am curren...
[7 replies] Last: Thank you so much for all of your help! This forum really is very help... (by rapster)
by wharp2
Code will not out put properly!
 
After it goes goes through and plays it's 1 million games. It proceeds to tell me that I have won all 1 million games(as you can see below) which obviously is n...
[7 replies] Last: @wharp2 I added the setprecision() command into the program. Reduce... (by whitenite1)
Pass object as parameter from another class' member function
 
All the examples I have seen so far relate to passing an object as a parameter to some function that is not part of a user defined class. I would like the Atta...
[8 replies] Last: There has to be something about how you're including the headers. Yo... (by dragonforest)
Need help with basic subtraction formatting
 
I am writing a program that is supposed to compare how old someone is in relation to recent events. I have gotten to the stage where I can put in some of the ev...
[5 replies] Last: Um, are you sure? You didn't update the code in your post. (by Lachlan Easton)
by wharp2
Using set precision!
 
How would I get this: Out of 1 million games you won: 493549 Out of 1 million games you lose: 506451 The probability for the Player to win is: 49% the pro...
[1 reply] : Oh, I didn't see that you opened a new topic for unanswered question, ... (by Ganado)
by wharp2
Have one more question! (simulate the casino game "craps")
 
So I need to wright a program that does this (But I have run into some issues any pointers, helps or suggestions would be greatly appreciated): Write a progr...
[8 replies] Last: I figured it out thanks for all your help! (by wharp2)
Question regarding local static object
 
Hi, guys. I was just now reading about local static object and really troubled by the mechanism of how a static object works. According to my textbook, a static...
[4 replies] Last: function-local static are always initialized before the first time the... (by Cubbi)
C++ or C#
 
I am 14 and when I am older I would like to be a games programmer. I have just recently started learning some basic languages such as HTML, CSS, JavaScript and ...
[4 replies] Last: Okay thanks for you very helpful reply, I will first start with C++, a... (by closed account 4yUpDjzh)
by omoe
Is storing strings under managed c++ safer than unmanaged ?
 
Hello guys , So im working on a little project c++/cli and realized that if i put a string i wanna keep hidden to compile as unmanaged it can be found and edite...
[1 reply] : With the managed code in C++\Cli all of your variables are divided int... (by Computergeek01)
by lays
I'd like to know why assignment operator doesn't return a const reference?
 
classtype& operator=(const classtype&); I think returning a const may avoid (obj1 = obj2) = obj3.
[3 replies] Last: For the built-in types like int, the assignment operator returns a ref... (by dhayden)
by marcoE
Class Composition problems
 
Hello guys. I'm tryng to learn how to implement c++, and at same time learning OOD. I'm tryng to implement the following Class Diagram. https://dl.dropbo...
[1 reply] : to resolve your include circularity http://www.cplusplus.com/forum/art... (by ne555)
by marcoE
Problems implementing Polymorphism
 
Hello guys. I'm trying understand and learn C++. I've started to read a book, then I read about OOP and Design. I want to implement a conceptual model of a L...
[8 replies] Last: > So, I shouldn't have a parent class like Store, to "hold" my product... (by ne555)
by ci one
Big vector accessed by different classes
 
What's the most sensible way in regards to performance? I have a large vector of objects and different classes that need to access it. The app is something ...
[2 replies] Last: Thanks! Makes sense. :) (by ci one)
by lays
A simple question, why "const static" class member can be initialized inside declaration?
 
I know why non-const static member cannot be initialized inside class declaration. It is because class declaration doesn't allocate memory space. It's just a de...
[2 replies] Last: All static data members of a class have external linkage; whether con... (by JLBorges)
July 2014 Pages: 1... 2930313233... 43
  Archived months: [jun2014] [aug2014]

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