Beginners - March 2015 (Page 44)

Pointing to?...refference where?
 
I just don't get ths behaviour. Lets say we the next snippet: ........................... const int MAX = 3; int main() { int var = {10, ...
[4 replies] Last: Thank you. I understand very well your reply. In my snippet, the first... (by clausserg)
How to set random number generator to a range?
 
Is there any way I can use random number generator with negative numbers? thanks
[1 reply] : Generate between 0 and 2000 and then subtract 1000? By the way, rand... (by LB)
Push_back with std::vector<sf::Vector2f> Vector
 
Hi there, I would like to ask, how to push_back with a vector of the following type (don't know if it is specific to sfml?): std::vector<sf::Vector2f> ...
[1 reply] : UnitVector is an array (std::vector) of sf::Vector2f's. UnitVector is... (by Ganado)
by Jakez
Best C++ book
 
Hi I am currently an IT student and I want to start c++ any suggestions of C++ books I can use. That has good exercises as well. Enjoy the rest of your da...
[7 replies] Last: I must add my favorite book here aswell. It is called Professional C++... (by OscarJ)
by Torm04
Return multiple values from a function.
 
Hello, I seem to have hit a stump on my assignment... I need to pass multiple values from one function to another and need a little help on how to do this. Here...
[6 replies] Last: That makes sense tipaye, thank you for your help. (by Torm04)
Need assistance with c++ question in my book?
 
The question that is in my book says: define a function with a single int type parameter n. the function should utilize a loop to read a loop to read in n inte...
[4 replies] Last: int readInt (int n) { int sum = 0; int val; for (int... (by AbstractionAnon)
by kiri
Can u see anything wrong?
 
Can u see anything wrong with this code? Visual Studio does //Give or take iostream.. No need to point that out. #include <iostream> #include <fstream> us...
[11 replies] Last: Type in word then copied/pasted to visual, so yea u are both right. (by kiri)
Writing to a .dat file
 
I am trying to write a list to a .dat file, something like: 12; John Smith; 1000 35; Adam Smith; 1525 But when I loop my code and input more than one "se...
[2 replies] Last: By default ofstreams truncate file, you need to open file in append mo... (by MiiNiPaa)
Comparing Input with characters
 
Hi, I'm a beginner trying to learn C++. I'm trying to do a simple calculator. I need the player to type the operation he needs to do. ex: multiply, addition, e...
[4 replies] Last: Yup! Works! Thanks! (by DnWarrior)
atoi with filestreams
 
Every time i compile it gives me the error: invalid conversion from ‘int’ to ‘const char*’ I know that this has to do with atoi and that is what i want...
[3 replies] Last: If you want to delete this topic you can I found out what the problem ... (by majinvegeta010688)
Code will never be executed error
 
I'm a newbie to C++ and I'm not sure how to fix this error message I keep receiving. #include <iostream> #include <cmath> using namespace std; i...
[8 replies] Last: [quote=booradley60]Not even a warning? Ahh, there is explicit flag: ... (by keskiverto)
Do...while loop assistance :)
 
This is only a small fraction of the code I have written so far, but I am having some difficulty getting the do while loop to run the right way. Here is what I ...
[1 reply] : while((ans !='Y')&&(ans !='N')&&(ans !='y')&&(ans !='n')); This mea... (by tipaye)
Dev-C++ Compiler [error] problem.....
 
This line of code was working, but now it is through me compiler errors that I am not exactly use to seeing. invalid operands of types 'int ' and 'int' to ...
[6 replies] Last: As you change those error variable i think all the error above should ... (by quisite)
by AWbman
C++ Calendar
 
I've nearly completed my C++ project to create a calendar, but am running into a small problem. After my calendar is displayed, the Saturday on the first week ...
[4 replies] Last: its programmable by user input only for the year and month. http://www... (by anup30)
by oseri
Private inheritance and exposing a functionality
 
I've got 2 classes : class B { public: int pubB; int getPub(); }; class C : private B { public: B::getPub; int getPub(); int pubC...
[2 replies] Last: Ok, thank you (by oseri)
Error LNK2019
 
I've looked but can't seem to figure out what's causing these errors: warning C4013: 'print__complex' undefined; assuming extern returning int error LNK2019...
[2 replies] Last: Yip that was it, wow thanks! (by edwinibon)
Switch cases and Array's
 
A few assignments back I made a leap year program with a switch case involved in which I divided the months into a monthName variable and the number of days int...
[6 replies] Last: Man, if i could give you a huge I would..... I figured x would have n... (by Jxcorex29)
trouble creating two user created class type vectors...
 
I'm making a game and running into a weird problem.... I'm trying to make a vector of pointers to another class I created, "character" class. I'm actually tryin...
[2 replies] Last: #include <vector> (by MiiNiPaa)
Not sure what is wrong with my program
 
Write your question here. My program keeps getting these errors, any helped would be great. ERRORS: warning C4033: 'SlopeInt_from_2Pt' must return a value w...
[4 replies] Last: Thank you very much, it works now! (by edwinibon)
by amznjr
Factorial Problem
 
Good evening, I need help with a problem for my class. I have looked through the forums, and I did not find an answer for my problem. Most of the answers in...
[1 reply] : You set totalVal on line 14 and show it on line 19. Shouldn't the loo... (by keskiverto)
March 2015 Pages: 1... 4243444546... 51
  Archived months: [feb2015] [apr2015]

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