
please wait
Constructor and Copy constructor for a class |
Hello everyone, I have a very basic questions on creating a constructor and copy constructor for a class that I created. I was wondering if the Sets.cpp file is... |
Mar 4, 2017 at 11:35am
[2 replies] Last: You are having an array of size 20 so it's final index is going to be ... (by benhart)
|
by amitk3553
convert struct into unsigned int *, again convert unsigned int* into struct
|
There a packet created by struct struct student { char name ; int age; int number; float marks; }; what would be the syntax to convert ... |
Mar 4, 2017 at 9:03am
[1 reply] : what would be the syntax to convert struct into unsigned char* ? I... (by integralfx)
|
by mikofat
Help with functions
|
Hi, I am new in C++ programming. Just got to know about this site. I really need help with an assignment here on "functions". I'm having a hard time understandi... |
Mar 4, 2017 at 8:45am
[2 replies] Last: Show us what you've done so far and we'll put you in the right directi... (by integralfx)
|
by tom67
Lottery program
|
Hello I am supposed to write a code that asks the user to input a number between 0-99 and hopefully win the lottery. If the number they input matches one of the... |
Mar 4, 2017 at 4:57am
[2 replies] Last: I'm guessing you just want something pretty basic. Use a 'for' loop to... (by castroboy)
|
by pumzye
Passing Arrays in a Class not working
|
Hello Please help i am trying to collect information from a function through an array variable of the class type. I need help in doing this, thank you for yo... |
Mar 4, 2017 at 3:51am
[3 replies] Last: This gets thing moving a bit. I look forward to your data model succee... (by closed account 48T7M4Gy)
|
by techjohnny
Sorted Link List ADT
|
No compiler errors, but my retrieve method is not displaying anything in my list. SortLabList.h bool insert(SortListItemType& newItem); bool remove(i... |
Mar 4, 2017 at 3:32am
[1 reply] : This: bool SortListClass::retrieve(int position, SortListItemType& da... (by cire)
|
by Devynao
Help with reading and writing to files
|
So the program I am trying to create is as follows. Schedule for jobs. I need to be able to enter for example Customer Job Name Front (This is an Int) Back ... |
Mar 4, 2017 at 3:27am
[13 replies] Last: you're mixing up various ways of reading a vector's data: (a) range-lo... (by gunnerfunner)
|
by Devynao
Counting Vectors
|
So I've done some research, and found out I cant count them because it is a type. I cannot figure out how to count whats in it or if I am even thinking of this ... |
Mar 4, 2017 at 2:53am
[1 reply] : Something like this, perhaps: #include <iostream> #include <string> ... (by JLBorges)
|
by likeToRead
How to use git-scm to upload code to github?
|
Is it possible to use the desktop command prompt to upload code I've written so far in Visual Studio to GitHub using git-scm? |
Mar 4, 2017 at 1:08am
[no replies]
|
by mayukhC
Help debugging code of the following errors,
|
I need help debugging this program #include "countryInfo.h" void findcountry( string info, ostream& out, string nation ) { ifstream in(info); ... |
Mar 4, 2017 at 12:48am
[3 replies] Last: Hello mayukhC, Thomas1965 has pointed out some of your errors, but yo... (by Handy Andy)
|
by Kourosh23
static_assert vs assert
|
I have searched this on google and found some help on stack_overflow http://stackoverflow.com/questions/18210270/what-is-the-difference-between-assert-and-stat... |
Mar 4, 2017 at 12:36am
[9 replies] Last: > Honestly, assert is mostly a debugging tool. Better to try/throw/cat... (by JLBorges)
|
im stuck on this code |
#include <iostream> using namespace std; void addToList(int *); // adds integer to integer array void displayList(int *);//displays all items in array ... |
Mar 4, 2017 at 12:04am
[6 replies] Last: Ok this would be much easier to do with vectors. The first problem I s... (by joe864864)
|
by MaxJohnson
Monte Carlo
|
I have a monte carlo problem to solve to; 1) Determine the uncertainty 2) generate 10^3 values for normally distributed x and y variables 3) Calculate the va... |
Mar 3, 2017 at 11:33pm
[3 replies] Last: You're already calculating q for each pair at line 34. What is the for... (by dhayden)
|
by tdog5555
program help (1,2)
|
know how to fix // Example program #include <iostream> #include <string> #include <fstream> using namespace std; int ages = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10... |
Mar 3, 2017 at 10:51pm
[20 replies] Last: for 5 shoes (0, 1, 2, 3, 4) add up into the variable sum whatever is... (by jonnin)
|
by scyonide
Complete C++ nooby and have a question that's beyond what my prof has taught
|
Essentially I'm really green when it comes to C++ I've tried going through tutorials and text books to find the elements for the following question but seem to ... |
Mar 3, 2017 at 10:43pm
[1 reply] : is this what you need? int ctr = 0; char n = 0; //do we do it once a... (by jonnin)
|
code runs but crashes after second value |
//Kenny Maldonado //Lab 2 #include <iostream> #include <iomanip> #include <string> #include <cmath> using namespace std; int numOfChoice, row, col... |
Mar 3, 2017 at 10:23pm
[2 replies] Last: THANK YOU!! (by KenTheNoobProgrammer)
|
by decker
Printing output in format eg "2:4;5:6"
|
Hello all, This is my first post. I am stuck with an assignment requesting me to print an output in the format example of which looks like this: 2:4;5:6 i.i ... |
Mar 3, 2017 at 9:25pm
[3 replies] Last: cout << “2:” << "4" << “; 5:” << "6" << endl; You can just... (by integralfx)
|
by tit0n
Postfix to infix help with my functions
|
For my second function, preToIn() I first convert it from Prefix to Postfix, and then I want to call on my postToIn() Function to convert it to infix. How could... |
Mar 3, 2017 at 9:16pm
[no replies]
|
by tigerlcf
I didn't get an EMail when a reply was sent
|
I'm new to cplusplus, in my 1st forum question I was expecting to get an EMail when someone responded to my question. Should I have gotten a EMail? If I shou... |
Mar 3, 2017 at 9:09pm
[2 replies] Last: Thanks, It was to easy. (by tigerlcf)
|
by sskyler
Trouble with I/O for functions
|
Hi, all. This is my first post on this site and I'm VERY new to C++ (programming in general). I wanted to practice setting up a basic function and have this... |
Mar 3, 2017 at 8:35pm
[2 replies] Last: Thanks for the help! Sorry it took me so long to reply. If I understa... (by sskyler)
|