Beginners - June 2013 (Page 14)

Char problems
 
I have a slight problem. char cPlay = 'y'; while(cPlay == 'y') ... ... cout << "\nWould you like to play again?\nI will give you an option to pick ...
[2 replies] Last: Thank you for answering my question. I did something similar. ... (by Chillieman)
"cout" formating issue
 
My question is how can i get my final output std:: cout << std::hex << xx << yy << zz << endl; to print out zeroes before conversion cuz i can get like d7...
[18 replies] Last: this solution that u have presented seemes most appropriate , i really... (by dragcro)
Can a 12 year old learn C++?
 
Hi there, I'm a 12 year old boy who wants to learn c++. Is it possible or not? I love programming and would love to take classes for it but there is no...
[15 replies] Last: Thanks for your reply.i have download both of the thinking in c++ and ... (by closed account EwCjE3v7)
by cshu
need help with drinks program c++
 
here is my code: #include <iostream> using namespace std; int displayMenu(int); double payment; int choice; double change; int main() { ...
[1 reply] : > 2) instead of having the numerous assignment statements to load the ... (by JLBorges)
Initializing objects with overloaded constructors
 
I have tried literally everything to try to initialize the constructor so that when i create an object and pass the parameters in, it wont give me a crazy negat...
[2 replies] Last: i have to call the Characters constructor for my monster? How would i ... (by damian519)
by klay2
weird bug
 
when I run the game and answer the questions the first battle has weird symbols to the right and the y axis is inverted even when I flip it around. #inclu...
[10 replies] Last: execution is trivial in this type, but in my first post about diamond ... (by a967Bytes)
4 Variable K-Map Simplifier Problem
 
I was doing this program to simplify the 4 variable K-Map. The program works fine except for minterm combinations that contain the first minterm (in the code m...
[3 replies] Last: No reply? I checked it and by putting another output of all the terms... (by SuperKXT)
cmd mkdir in c++ system();
 
why the production of the useless program I did is weird *_* it produce 10 ABCDEFG folders in different orders then after it finishes it produced folders with n...
[4 replies] Last: Sweet I just created a folder with hundreds of thousands of folders ^... (by a967Bytes)
by anhome
Problem with FILE in c++
 
I've tried this code in binary (.bin) file, but it doesn't work on others files such as audio(e.g. .mp3), video (e.g. .avi) wish somebody could solve this for ...
[8 replies] Last: Well, I can make a guess here. I tried the above code with two differe... (by Chervil)
non-static data member initializers only available with -std
 
I wrote the following code to practice with.. #include <cstdlib> #include <iostream> using namespace std; class Vehicle { public: int price = 1000; ...
[4 replies] Last: Thanks guys! (by MrProgrammer)
Dates
 
I can't find anything wrong with this short program, but I still can't run it, because of, again, my stupid virus protection software that is blocking it -.- Co...
[1 reply] : Don't worry, I fixed it myself. I just put cin.ignore(); after cin.... (by GoranGaming)
compiler problems
 
i worked with code::blocks my project was made as default c sorce file how to convert into c++ source file
[1 reply] : When you are creating a new project, then you will have an option of C... (by Himansh)
Bitmap
 
Please tell me how you press the button to download the picture: case WM_COMMAND: if (LOWORD(wParam)==100) { DestroyW...
[no replies]
Combining vector with For Loop
 
Hi everybode ! I'm trying to use vector in combination with a for loop, so i can input several time before displaying the answer (witch is stored in a vector)...
[4 replies] Last: Ok giblit , I'll try it when I get into pointers. But for now in my b... (by biglasso)
All the possible combinations of 'n' strings, with repetitions: C= n!/(n-k)!
 
Hello, I'm trying to have a program that prints all the possible combinations of some strings, where order matters and so following the formula: C= n!/(n-k)!. ...
[8 replies] Last: > I'm trying to have a program that prints all the possible combinatio... (by JLBorges)
by symbit
Before C++?
 
I've been learning C++ for a little while (about 3 months) and I haven't bothered to research the prerequisites. Should I learn design patterns like OOP before ...
[4 replies] Last: I thought I'd never get OOP but just keep reading up on it, don't use ... (by closed account N36fSL3A)
Menu validation
 
I am trying to create a calculator program and want to make sure a character is not accepted (e.g g) and the user is asked to input another number. Here is the ...
[2 replies] Last: Put the switch inside a while loop, and make sure the switch has a de... (by TheIdeasMan)
Any good tutorials for std::cin commands?
 
Hi! I have seen people using various commands like cin.ignore(), cin.sync(), cin.read(), cin.get(), cin (or i think cout).flush(). Although I do have a fa...
[2 replies] Last: thanks, actually I am aware of the reference section here and I did ma... (by abhishekm71)
Growing/Shrinking Dynamic Array
 
I wrote a function to help with a C++ challenge where growing/shrinking dynamic array's occurs frequently. So far the function seems to work fine, however, from...
[11 replies] Last: if i take lines 11-13 and place them after the try/catch, wouldn't th... (by cire)
by emoa
cout in the same line
 
I cant get the output as below. the output keep display from up to down order. how to put it on the right side. such as for name and personnel id? The output s...
[1 reply] : The obvious answer would be to output Personnel ID the same time your ... (by giblit)
June 2013 Pages: 1... 1213141516... 49
  Archived months: [may2013] [jul2013]

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