Beginners - November 2013 (Page 64)

What does this mean?
 
inline double FittingMod::model(const std::vector<double>& t, const std::vector<double>& p) could someone explain this, piece by piece? why is there space be...
[2 replies] Last: thank you very much! (by Jesukiran)
by guguli
csv data reading
 
Hi everybody, ich wanna to read a csv data with 8 columns. the Program ask after a number and this number will be searched into the 2the column. if that is ther...
[no replies]
Confused about a question of a basic code
 
n=1; while (n<5) { n++; cout<<n<<" "; } The output of the C++ code above is? Idk why the answer is 2 3 4 5, not 2 3 4?
[8 replies] Last: OK, let's discuss the bracket. A while loop in general has this struc... (by Chervil)
string does not name a type?
 
So I've made some classes, and during compilation, I get the error that string does not name a type on line 14. Any help is appreciated... #ifndef SIMPLE...
[2 replies] Last: I'm not sure what this is doing here? I don't see anything wrong wi... (by MikeyBoy)
by wirowi
tables, vectors
 
Hello again! I keep coming back with my silly noobie questions. But I do hope one day I’ll be able to help others around here. So, I’ve just finished stu...
[7 replies] Last: Glad it worked out :) (by MikeyBoy)
by mjyz
Calculations Using Functions
 
///
[1 reply] : both those functions (CalcIncomeTax & CalcNetSalary) are never used? (by tath)
Data output to display lines
 
So I've created a program to estimate ln2, and using N=75000, the output file/data is really large because the program displays every line (N=1 to N=75000). I ...
[no replies]
by tatay9
Restriction
 
hi guys, i have just one simple doubt i hope you can clear for me, i have a restriction here, and it goes through the whole vector verifying if there is a null ...
[1 reply] : cin >> doesn't read spaces, use getline instead : cin.getline( nu... (by nvrmnd)
by mjyz
Looping until EOF
 
Why is my output like this instead of all the data being in the table? thanks #include <iostream> #include <iomanip> #include <string> #include <fstream...
[4 replies] Last: You have the variables to store the information for one record. You r... (by cire)
File I/O
 
My assignment is: http://gyazo.com/789abb7199aa39c61075e222d8f2c39a I've tried about 4 times starting from scratch and rewriting everything differently all t...
[14 replies] Last: Then, you'll have to use dynamic arrays. Let me double-check - are you... (by LB)
Help please if loop
 
Hi i am new at c++ and i am working on a game(text based) i have just started and found a problem i have searched and couldn't find a proper answer so all i w...
[2 replies] Last: Thanks that helps alot and no i dont really know how to use classes (by Tristan101)
greatest common divisor need help correcting
 
My instructions were to: Write a function int gcd( int a, int b) ; which returns the value of the greatest common divisor of the two integers a and b . You ca...
[4 replies] Last: In that case, you should re-read over the introductory sections about ... (by Zhuge)
Q2.probelm
 
Q.2. is there any reason we can write int numItems; cout << "how many items?"; cin >> numItems; int *arr = new int ; delete arr;//over her...
[1 reply] : Because the on line 5 is part of the name of the delete operator,... (by LB)
Q.1 problem
 
Q.1.why cant i use new int without pointers for example int numItems; cout << "how many items?"; cin >> numItems; int *arr = new int ;//correct int...
[2 replies] Last: because a pointer points to a set of memory of type what ever type you... (by closed account Dy7SLyTq)
Q4.Problem
 
Q.4.Why is this possible for example const int size=5; int arr ={1,2,3,4}; int *p=arr; int *q=&arr ;//correct int *q=arr ;//wrong why pointing to a ...
[1 reply] : arr is an int, not a pointer, hence you cannot assign it to a pointer... (by firedraco)
string class problem
 
Hey guys, sorry if this is a really really noob question, but i can't find any help in my textbook or online. I've searched everything I can and I just cant mak...
[4 replies] Last: #include <iostream> #include <string> using namespace std; int main(... (by Yanson)
help please
 
I'm having a problem with the while loop. I want it to continue to loop until the user enters 0 but instead it will only go forward when 0 is entered. What have...
[1 reply] : Remove the ";" after while(expenses != 0); on line 44. (by crimsonzero2)
by Amarki
Binary Search Tree - Bool Remove Method
 
We have been assigned a Binary Search Tree project for homework and for the most part my tree program works perfectly fine. Print(shows tree-node values in-...
[no replies]
Help!
 
My professor just assigned this in class. I have no idea how to even start. Please help me out. Here it is: Create a function that creates an array of 50,000...
[2 replies] Last: I see. I just read the rules. I will work on it and come back with spe... (by dachain)
odd compile error on SFML
 
I get the error on compiling: ./test2: symbol lookup error: ./test2: undefined symbol: _ZN2sf6WindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE c...
[1 reply] : It's saying the sf::Window constructor is not in any of the libraries ... (by helios)
November 2013 Pages: 1... 6263646566... 80
  Archived months: [oct2013] [dec2013]

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