Beginners - December 2016 (Page 6)

10-Digit non-repetitive randon generator
 
Hello I need help with creating a 10-digit random number generator such that when a number is generated it does not get generated again and that the digit do...
[5 replies] Last: Or, with a bit less waste of random numbers: #include <iostream> #inc... (by lastchance)
sum of numbers in vector
 
let's say i want to sum five numbers in a vector. 1 2 3 4 5 but i want to leave one number off. like this: 2 + 3 + 4 + 5 1 + 3 + 4 + 5 1 + 2 + 4 + 5 1 + 2 ...
[5 replies] Last: Are you saying you want to delete one of the numbers, and then total t... (by VX0726)
Trying to sort names alphabetically?
 
Hi I'm trying to sort user entered names alphabetically. I'm getting a lot of errors and my code doesn't compile. I'm very exhausted so I'm not sure if I'm just...
[5 replies] Last: Could you clarify, what exactly is the message in the popup please. (by Chervil)
by SCB3
How to display from a class? (1,2)
 
The issue I'm having is placing elements from a text file into a 2D Array in a class and then displaying from main, I'm not sure how to do this part: clas...
[22 replies] Last: [quote=SCB3]Seriously? I'm was looking for some help and may have misw... (by TheIdeasMan)
how to become a better programmer
 
Hi, I just finished taking a class in C++, I did well on this course but did not do excellent. Struggled with the testing aspect of the course. What advice wo...
[5 replies] Last: Hey, so I was taught to used standard library before the int main, bu... (by helios)
set (1,2)
 
how can i get sum of any two members in a set?
[27 replies] Last: Thanks Keskiverto, I almost spotted the pattern and particularly th... (by lastchance)
Java to C++
 
void Person::setDOB(int d, int m, int y) { day = d; month = m; year = y; } string Person::getDOB() { return day + "-" + month + "-" + year;...
[9 replies] Last: Thanks for all the help, I got my program working. Cheers guys, (by imohamme5)
Does TutorialsPoint have all C++ tutorials?
 
If not can you give me free websites with all tutorials for C++.
[4 replies] Last: Unfortunately, the vast majority of online tutorials for C++ are outda... (by Albatross)
cin is being a pain in the ass
 
#include <iostream> #include <string> using namespace std; int command; string version; string username; int main() { username = "Default"; ver...
[11 replies] Last: > if (username != username) > When is that ever going to be true? ... (by ne555)
Including header files from a sibling folder
 
My current folder structure is as follows <project_base> | |--<build> | | | |--<cmake>{CMake related files} | | | ...
[2 replies] Last: https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html#Include-Syntax ... (by ne555)
Unknown error
 
This code gives me an error. #include <iostream> #include <windows.h> #include <stdlib.h> #include <time.h> using namespace std; /**...
[2 replies] Last: Change string cara ; cara ='/'; cara ='\\'; to const char cara = ... (by Chervil)
Utilizing a function with a passing value
 
Hi, I am a student and new to proramming. I just learn function last week and yesterday i got an assignment from my teacher that i can't solve. Here are the ...
[5 replies] Last: different concepts, don't mix the two: (a) non value returning (void) ... (by gunnerfunner)
Creating a list
 
Hi, I'm trying to create a list where the user inputs a first name and a last name to the list. After the user feels satisfied with the number of persons in th...
[7 replies] Last: void searchperson(const vector<Person>& persons) { string search... (by gunnerfunner)
Need help with calling/defining functions
 
This program consists of three functions which will ultimately calculate an area. The first function requests the user to enter a few numbers and then calls the...
[2 replies] Last: This: //following is the Simpson function { double Simpson(int ... (by MikeyBoy)
Run system as administrator
 
How can I run a command with the system function as administrator ? system("command") // want to run command as administrator
[4 replies] Last: The "as Admin" is broad. Surely the Windows API offers a selection of... (by keskiverto)
Erase member function of vector class
 
In the following code, the iterator points to the next element of deleted element of vector. Can you please explain it to me. Thank you. #include <iostr...
[1 reply] : std::vector::erase Invalidates iterators and references at or after t... (by JLBorges)
Need help
 
10. Write a function called smaller, with two integer parameters,that returns the smaller of the two values passed to it. For example, if the call is smaller(3,...
[11 replies] Last: I'm a self-motivated beginner that's great and good luck! May I al... (by gunnerfunner)
What am I missing?
 
Write a program that reads in letter grades for a class of 20 students and displays the number of students who passed (D or better) and the number who failed. (...
[2 replies] Last: Hello Extinqt, In addition to SamuelAdams suggestion you are missing ... (by Handy Andy)
by CePP
Riemann zeta loops.
 
Hallo there, I have to make a program which will solve Riemann zeta function(2) [1/pow(n,2)] = 1,645... It has to calculate it in 3 ways. 1. For loop witch was...
[4 replies] Last: CePP, When I ran your code it produced the following output: For 1.64... (by lastchance)
Apps
 
Can i create android and ios apps using c++ or i have to learn java and c# to create android and ios app
[4 replies] Last: thnx all for replying :) (by bird1234)
December 2016 Pages: 1... 45678... 28
  Archived months: [nov2016] [jan2017]

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