
please wait
by technologist
address passed by value
|
The code passes an argument by address to ptr_copy fx. Problem is I want to pass by value so that arguments are copied to a parameter and do not change the orig... |
Apr 19, 2016 at 2:56pm
[15 replies] Last: I cleaned up the code. I now have one program each below demonstratin... (by technologist)
|
by csstudent123
read a line of float from file in struct
|
My file is -------------------- 1 1.3 0.10 2 0.9 2 3 2.0 0.5 I am doing this but not working...I want to read these in the following: typedef struc... |
Apr 19, 2016 at 2:25pm
[2 replies] Last: thanks! (by csstudent123)
|
by cppstudent93
Bugs with Program Due Tomorrow (User defined functions)
|
I am not asking anyone to do my homework, in fact I've got the program almost finished. However, there are a few bugs in the program that when executed repeats ... |
Apr 19, 2016 at 1:50pm
[6 replies] Last: I'm glad you solved the problem. If you want to post your code, go ah... (by doug4)
|
by glasses
Writing vector data to columns
|
I have a vector in C++ called Tem. This vector changes at the end of each for loop. What I want to do is at each time step, write the whole contents of the vect... |
Apr 19, 2016 at 1:44pm
[no replies]
|
by mehrudin
how to finish the code in main function
|
here is the started code: #include <iostream> using namespace std; class date { public: date(); date(int, int, int); void print() const; private: i... |
Apr 19, 2016 at 1:41pm
[2 replies] Last: thank you very much, you clarified the things a lot, i am a noob at oo... (by mehrudin)
|
by mehrudin
Where can i learn OOP in C++
|
Hello, i need a good source for learning object oriented programming in c++, i need lots of examples for beginners, post links of websites that, books and anyth... |
Apr 19, 2016 at 11:58am
[2 replies] Last: https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=10&cad... (by Thomas1965)
|
by mehrudin
Needed explanation with comments
|
Hello, i am trying to figure out what does this code mean #include<iostream> using namespace std; class Point { float x; float y; public: Point(float x=0, ... |
Apr 19, 2016 at 10:08am
[1 reply] : There are no pointers used anywhere in the code you've posted (except ... (by MikeyBoy)
|
by therpgking
Pointers & Arrays
|
My assignment starts with giving us the following strlen() function which will return the length of a null-terminated character-array: unsigned int strlen(con... |
Apr 19, 2016 at 9:52am
[4 replies] Last: You're welcome - glad it all worked. (by MikeyBoy)
|
by kelson11
Help with push_back and pop_back function in linked list class
|
I am doing a project for school that involves implementing a linked list class. I believe I have all of my functions correct except for my push_back and pop_bac... |
Apr 19, 2016 at 9:28am
[5 replies] Last: The second to last node is the node that has the last node of the li... (by keskiverto)
|
by kphoang
Really need help creating this Class program... please );
|
Write a class name StudentRecord with the following specifications – • Data members: name, marks , major, term (use appropriate data type) • Member f... |
Apr 19, 2016 at 8:10am
[1 reply] : Why do you doble post? http://www.cplusplus.com/forum/beginner/189348/ (by Thomas1965)
|
I'm in a beginner c++ class and I need help with this program cause I don't know how to fix the errors, please help! |
This is my objective for the assignment : Read an 8 digit number from the input file. Separate it into 8 single digit numbers. Store those 8 single digit numb... |
Apr 19, 2016 at 4:38am
[1 reply] : Did you say C++? Something like this, perhaps (you may need to add e... (by JLBorges)
|
by ashley21466
not sure what is wrong..smallest of three integers
|
this is a bonus challenge Create a function that will return the smallest of three integers entered by the user. Write a program to test it. (Hint: a function a... |
Apr 19, 2016 at 4:25am
[1 reply] : you have to include <algorithm> to use std::min and std::max, and num1... (by littlepig)
|
by ciresnosrap
Need Help with Getline Problem
|
I'm working on a program that asks the user for a list of rectangles, I have a function read_rectangles that asks the user for the name of the rectangle. Here'... |
Apr 19, 2016 at 3:26am
[2 replies] Last: I believe your third snippet which you say behaves "correctly" does no... (by cire)
|
by ashley21466
not sure if i did this right please help!!
|
Write a function that will display your name and address each time it is called. Write a program to test it (perhaps a cover letter for a resume) and call the f... |
Apr 19, 2016 at 1:58am
[no replies]
|
by DizzyD23
I need help with a function.
|
void removeNumber(int *& arrayPtr, int number, int &size) { if (check(arrayPtr, number, size) != -1) { int tmpV = check(arrayPtr, number, size); int ... |
Apr 19, 2016 at 1:55am
[1 reply] : The function logic is ok, but the problem is in line 4 int *tmp = ne... (by littlepig)
|
Assistance with I/O streams for graph implementation. |
Hello, I'm stuck on "ostream" part of my graph.h implementaion assignment, we are suppose to define I/O operation for our graphs and I have the initial step dow... |
Apr 18, 2016 at 11:53pm
[no replies]
|
by therpgking
Append, Merge, & Sort
|
So, my assignment is about writing a function to append vector b to the end of vector a into the third vector and follow up by returning the third vector. It of... |
Apr 18, 2016 at 8:37pm
[8 replies] Last: What development environment are you using? A debugger will help you ... (by doug4)
|
by Pjonathan
What is the best way to create a Vector of objects?
|
Currently my code is: vector<S> v; S s1("Jon"); S s2("Mike"); S s3("Kim"); S s4("Steve"); S s5("Kevin"); v.push_back(s1); v.push_back(s2); v.p... |
Apr 18, 2016 at 7:47pm
[5 replies] Last: works as written: http://coliru.stacked-crooked.com/a/5071b4479eb891d... (by Cubbi)
|
by ashley21466
havinging trouble using a nested loop with the number pattern. Please help
|
I wrote the code but to get the output i need i changed it and cannot figure out how to put it in a nested loop. i know this code doesnt make sense. If anyone h... |
Apr 18, 2016 at 6:48pm
[2 replies] Last: Thank you so much for all your help (by ashley21466)
|
by baronrhys
Book class project
|
My header(book.h) compiles properly but when compiling my book.cc, i get the error bash-3.2$ g++ -Wall -std=c++11 book.cc Undefined f... |
Apr 18, 2016 at 6:35pm
[1 reply] : Line 90: to_string() is undefined. PLEASE USE CODE TAGS (the <> for... (by AbstractionAnon)
|