Beginners - January 2014 (Page 39)

Finding random numbers without duplicates
 
Hi. I am relatively new at this and wrote the following code in an attempt to choose 21 UNIQUE numbers between 1 and 52 but for some reason I am still getting d...
[6 replies] Last: I thought that any number under 21 would result in an error but it do... (by xismn)
Show Polynomial
 
first problem: I am writing a program that lets the user input the power and the corresponding constant coefficients of a polynomial function, then the prog...
[no replies]
address book
 
How can i make it so that a user can create as many new entries as they want, then delete any that they don't need anymore. I know this has to do with construto...
[2 replies] Last: thanks, how would i go about doing #1? (by ASCII14)
Specific Decimal Placement
 
Hi there, I've been toying around with this small program, and have only run into one problem. In the case that the total price has a 0 as its last decimal plac...
[3 replies] Last: Thanks for the help ats15, I was able to use a fixed set precision of ... (by closed account N6fwAqkS)
Compiler issues beginner
 
Hello, I'm learning how to code c++. I'm using programming principles and practice using c++, by Bjarne Stroustrup. As my compiler, i have a mac, so i'm using x...
[2 replies] Last: I too am using that book (pdf) but on windows, vs. I don't know what t... (by closed account iAk3T05o)
question
 
hi i need programing of snake-game- (c++ with class)without graphics library if you can please help me my screen for example 46 * 41 example: +++++++++...
[5 replies] Last: So in order to be helped, help. Aceix. (by Aceix)
by May01
QT/C++ graphics scaling
 
Hi, I am using QT/C++ stuff and I need to come up with something like this: I'm creating a QT container with regions that contains 2D graphics. these grap...
[no replies]
by itayz
How do you do this?[windows7]
 
Hello, I want to use GetAsyncKeyState to create the most simple program(Just to feel how it works) I want the console program to open a window, wait for me to...
[9 replies] Last: All windows compilers that I know of implements conio.h, Really? F... (by Disch)
by azzer
Inheritance
 
Write your question here.
[5 replies] Last: sorry somthing went wrong... i have a new post on this topic now and i... (by azzer)
Passing fstream to a function, not working. can it?
 
I want to pass an input file to a function and within the function, fill an array by reference. My data file is just 90 characters. When I try running the file ...
[10 replies] Last: AH! Thanks guys, it's working today. After some messing around, I'm pr... (by Mixelplik)
by binf
Need your help please
 
I have to write a program that is going to read n phone call times (in seconds). And then, the program will calculate the total amount collected from all user...
[3 replies] Last: thank you very much.. :) (by binf)
Code::Blocks 12.11 not working with Allegro 5
 
I have been trying to install allegro 5 with my Code::Blocks for over a week now. I have poured over this wiki article twice (uninstalling and reinstalling all ...
[7 replies] Last: bump and happy new year (by Kekker)
by JTG500
What to learn in C++
 
After learning: Flow control Variables, Types, Expressions Functional and Procedural Abstractions Files and Streams Branch and Loop Statements Arrays an...
[4 replies] Last: I have been doing this for three days straight now, since i have a bre... (by JTG500)
Output of an array using pointers
 
I have some problems understanding how to solve my homework. After about 6h of experimenting I thought to get some help. The Task: I have to give out an includ...
[4 replies] Last: Thanks a lot (by leonnight)
C++ textbook for beginners?
 
Hi. I'm completely new to programming and have just started to tinker with C++ using these tutorials (which are very condensed and have few examples). I'm e...
[10 replies] Last: Primer Plus was a good book in 1991 (1st ed), not so much in 2011 (6th... (by Cubbi)
cin just stopped working.
 
My program keeps skipping cin and moving on to the next step. #include <iostream> using namespace std; int main() { int numberOne; cin >> number...
[4 replies] Last: I've checked it works fine.. (by ButchCavendish)
Put color in output and Make it faster!
 
I have researched a c++ code that outputs a dialog. It outputs the dialog in different color for every letter and changes the background to white. What i wa...
[5 replies] Last: #include <iostream> #include <string> #include <windows.h> int main(... (by JLBorges)
Implement regula falsi using array
 
Right now i am writing a program that will solve for the real root of the equation .05x - sin(x) using regula-falsi method. i am thinking to implement it in an ...
[2 replies] Last: thank you so much.. it's a big help.. (by newton123)
Good Bisection Method Output
 
Hello everyone, my code below solve for the root of the function f(x) = .5x - sin(x). It is working fine but i want to add a little bit to it. I want to impl...
[4 replies] Last: problem solved! Thanks much! (by newton123)
Usage of passing const reference of an object to a function
 
Hello! I am reading a book on C++ by DEITEL. There is a code snippet in chapter 10 of deitel regarding "COMPOSITION". There is a Date and employee class....
[4 replies] Last: Thank you, now it became quite clear to me. Ok, this is a different... (by omarjaved)
January 2014 Pages: 1... 3738394041... 44
  Archived months: [dec2013] [feb2014]

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