Beginners - February 2014 (Page 47)

Drawing images?
 
I am trying to create an application where numbers correspond with specific points on an image, and when a user enters a number, a circle is drawn on the point ...
[2 replies] Last: Yeah, I would like to draw an image on the screen or in database. As f... (by EisenhowerPDF)
by nn208
Declaring a function
 
I want to define the following function: f(x)= sin(a*x/(1+x^2))*atan(bx)+atan(x) where a,b are constant parameters (e.g 3,2) #include <iostream> #includ...
[2 replies] Last: Compiling it to be sure is your best bet, but yes, this looks like it ... (by NZheadshot)
by ccdare
What decides the operation sequence of a class Operator Overloading?
 
class test{ ... public: ... test operator+(const test &a)const;//#1 const test & operator+=(const test &a);//#2 std::ostream & operator<<(std::os...
[2 replies] Last: Evaluation depends on the operator precedence (usually left to right),... (by Smac89)
always getting zero on my counter variable
 
I don't seem to understand what I'm doing wrong. My guess is that somehow my string is not being read from the input file. When I complie and run this code I ge...
[7 replies] Last: It might be that visual studio has made your program to be line-buffer... (by Smac89)
by nn208
Evaluating the precision of the difference of 2 numbers
 
As you will understand I am an absolute beginner and therefore your help is really appreciated. The problem asks to write a program that contains a function f(d...
[1 reply] : Of course it would not work. You have not even called IsEqual in your ... (by TX9200)
Base/Subclass constructor problems :(
 
Hello anyone who dares to read this, I'm studying inheritance in c++ and there's one particular issue i'm having trouble with. I've wrote this small piece of c...
[2 replies] Last: Thanks you very much for the speedy reply, I had no idea about the vir... (by chickens7)
by mdeeza
help with a stats class
 
Hello, I'm currently working on a stats class project for my data structures class, we've been given a header file with pre/post conditions (located below) and ...
[1 reply] : How do i pass a stats a sequence of numbers in my driver program? ... (by IceThatJaw)
Wont show me the input?
 
It wont show me the input. if (input == "yes") { cout<<"I know how you feel"; cin>> input; } else if (input == "no") { cout<<"Test"; cin...
[1 reply] : This is what you are doing in plain English. Try to spot the error. I... (by IceThatJaw)
by htx281
Do-while loop
 
I need help with a project for my programming class. This is what he is asking from me. "Prompt the user to choose what type of input (wavelength or frequen...
[3 replies] Last: Ahhh simple mistakes.. thank you! (by htx281)
Trying to return to start or continue program
 
Hello, I am currently writing a program for my Programming class. I know that homework questions are not supposed to be asked, however what I am trying to do is...
[2 replies] Last: That works, thank you (by Karmaslapped)
Why does it say no previous if
 
if (input == "yes"); { cout<<"I know how you feel"; cin.get(); } else if (input == "no"); { cout<<"Test"; cin.get(); cin.get(); }
[4 replies] Last: Try this: if (input == "yes") { cout<<"I know how you feel"; ... (by closed account EwCjE3v7)
by fi50
Outputting data in a Linked List
 
Hey. I'm trying to get this linked list to work in a way that allows me to output the values at line 34, I've tried the standard deference operator to no ava...
[3 replies] Last: Cheers guys. I've managed to get it working now. (by fi50)
Having trouble finding errors
 
I'm supposed to create a program that calculates maximum deflection by first getting the user input of height, length, base, and weight. Once the maximum deflec...
[2 replies] Last: The lines like this make no sense: cin >> length << endl; Either ad... (by yulingo)
Fraction Class
 
I am working on a c++ assignment for a class and the perimeters were to create a fraction class described below and then test and demonstrate the methods. What ...
[2 replies] Last: It looks like the function double toDecimal() const; would convert t... (by Nogroth)
trouble with if, else if statements in function
 
I can't find out what is wrong with my if and else-if statements in my function at the bottom of my code. It always reads that the withholding rate is 20% no ma...
[2 replies] Last: Hi @KennySnook, you are using the assignment operator = instead of t... (by eyenrique)
Arraylist in cpp
 
Hi guys. I have a curiosity to be remedied. I wonder if C + + has some library that implements an infinite array, as has the arraylist in java class, or vector...
[2 replies] Last: Thanks, my friend (by weslleymurdock)
NEED HELP PLEASE!!!
 
I'm new to C++ and wanted some help please. Can anyone tell me where and how to put a table that organizes the output of the array in 5 columns. Thank you H...
[1 reply] : Sorry i missed a little piece. cout << "\nDo you want to see the con... (by caleno87)
cout
 
I have tried to answer this thirty different ways, and I am pretty sure I just don't know exactly what the question is asking me to do.. Two variables , num...
[3 replies] Last: Okay, I got it, thanks. Apparently it wanted this: std::cout << num... (by justin00)
Who invented conio.h ?
 
Hi i have i question who originaly invented conio.h library ?
[3 replies] Last: [quote=SorinAlex] I didn't knew that lattice was actually microsoft. ... (by Catfish666)
SFML 2.1, I want do display a sprite,but I get an unhandled exception.
 
Hi,I'm sorry I come to you again,cpluplus.com users,but I really can't figure out what's wrong. My short code is: #include <SFML/Graphics.hpp> int ma...
[8 replies] Last: Yes,i've used "sfml-xxx.lib" instead of "sfml-xxx-d.lib". Now it work... (by alexandruKis)
February 2014 Pages: 1... 4546474849... 60
  Archived months: [jan2014] [mar2014]

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