Beginners - March 2017 (Page 32)

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...
[2 replies] Last: You are having an array of size 20 so it's final index is going to be ... (by benhart)
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 ...
[1 reply] : what would be the syntax to convert struct into unsigned char* ? I... (by integralfx)
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...
[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...
[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...
[3 replies] Last: This gets thing moving a bit. I look forward to your data model succee... (by closed account 48T7M4Gy)
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...
[1 reply] : This: bool SortListClass::retrieve(int position, SortListItemType& da... (by cire)
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 ...
[13 replies] Last: you're mixing up various ways of reading a vector's data: (a) range-lo... (by gunnerfunner)
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 ...
[1 reply] : Something like this, perhaps: #include <iostream> #include <string> ... (by JLBorges)
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?
[no replies]
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); ...
[3 replies] Last: Hello mayukhC, Thomas1965 has pointed out some of your errors, but yo... (by Handy Andy)
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...
[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 ...
[6 replies] Last: Ok this would be much easier to do with vectors. The first problem I s... (by joe864864)
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...
[3 replies] Last: You're already calculating q for each pair at line 34. What is the for... (by dhayden)
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...
[20 replies] Last: for 5 shoes (0, 1, 2, 3, 4) add up into the variable sum whatever is... (by jonnin)
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 ...
[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...
[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 ...
[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...
[no replies]
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...
[2 replies] Last: Thanks, It was to easy. (by tigerlcf)
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...
[2 replies] Last: Thanks for the help! Sorry it took me so long to reply. If I understa... (by sskyler)
March 2017 Pages: 1... 3031323334... 36
  Archived months: [feb2017] [apr2017]

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