General C++ Programming - April 2018 (Page 3)

by vmay93
Random Heads or Tails
 
Do I meet the requirements for this assignment? If not, how can I improve the code or make it better...
[8 replies] Last: One thing I noticed is that even if you enter 'N', you're not forced t... (by bradltr95)
Rotating square matrix many times!
 
Hello everyone! Here I have a code that rotates the square matrix clokcwise and I am trying to do th...
[no replies]
C++ visual studio 2015 LNK2001 and LNK2019 errors when I build (Windows 8)
 
Hello everybody, I am getting these external errors, which I think (but not entirely sure) are relat...
[2 replies] Last: @tpb- i just added legacy_stdio_definitions.lib into the additional de... (by MBANS7A1)
Error: 1d return 1 Exit Status
 
#include <iostream> using namespace std; int frequency(int a , int n, int x) { int count = 0;...
[2 replies] Last: Thanks :) (by adil12345)
Once info has been written into txt file, edit through command prompt
 
I've posted the same question on this forum before. However, I failed to reply early to a user that ...
[2 replies] Last: Alright, no moue movements or clicks. I've attempted to assign each st... (by GhettoBurger)
upper bounds and lower bounds
 
Hi guys I am reading the reference pages on cplusplus.com for lower and upper bounds,for lower bound...
[1 reply] : > I'm not sure what is meant by this The most effective way to incre... (by JLBorges)
Social Network in C++. Help!!
 
So basically i have a c++ project and my teacher has asked me to write a program that not only can d...
[9 replies] Last: I figured it out. I just tried it with a while loop instead of a for l... (by retrobvf)
Random number generation in Monte Carlo Simulation
 
Hi I'm trying to generate random number for Monte Carlo Simulation that follows normal distribution....
[2 replies] Last: You've got an awful lot of integer-division problems in you monteCarlo... (by lastchance)
by Mk87
question
 
ll
[1 reply] : It's not clear what's going on. Inheritance/Global? (by kbw)
by stav
Stack vs Heap allocation?
 
Hi I was wondering whether it is better to store something on the stack vs on the heap? Consider th...
[1 reply] : That is a red herring. #include <vector> int main() { std::vector<i... (by keskiverto)
Warning Message Print out Several Times from Wrong Input
 
Hello All, I am new to C++ and here is my code https://onlinegdb.com/SyYxPykTM I want to set a ch...
[4 replies] Last: I further tweaked my code like this after including a string function.... (by bennyipfar)
by stav
Making an INonCopyable class
 
Hi Consider the following code: #include <iostream> #include <vector> #include <cstddef> ...
[3 replies] Last: I dont want you to be able to create a base object, only derive from ... (by TheIdeasMan)
by typi8
Array
 
Create a function call sumArray which will return the int sum of an array that is passed in. Note th...
[3 replies] Last: PLEASE learn to use code tags, it makes reading your code MUCH easier.... (by closed account E0p9LyTq)
Can you Help a brother ? Prime Function
 
Hello Hello ! Is first time for me, I just sign in to this forum. Can someone show me the code of t...
[7 replies] Last: What can I say, ...you helped me more then you know. I stop playing g... (by WalterCC)
Creating a class that takes in values like an array?
 
I know operator overloading can assign an object of data type X into another object of the same data...
[2 replies] Last: You may be looking for an "initializer_list". #include <iostream> #i... (by tpb)
Need reference with Geometric Calculator-Using Functions
 
Hello, I'm having a little issue with my program, the assignment is to create a Geometric Calculator...
[2 replies] Last: void Menu() { if (1==1) /// why? { // ... The if stat... (by AlejandrOrt099)
by nearc
QuickSort
 
Hey, I need to program Quick Sort so it would sort 100,000 unsorted and reverse sorted elements, and...
[8 replies] Last: At this point, you are really over your head. Programming isn't someth... (by Duthomhas)
LINK : fatal errors LNK1561, LNK 2001, LNK 2019 with C++ code in VS2015 (Windows 8)
 
Hello everyone, I typed up some code for a light simulation in skin tissue. When I try to build it I...
[1 reply] : Sorry I could not include all the code as it was over the 8192 length ... (by MBANS7A1)
HELP!
 
Hello everyone, I have this working program with operations on circular doubly linked list. But I ha...
[1 reply] : In the future, you should make a minimal program that we can run, ... (by Ganado)
April 2018 Pages: 12345... 17
  Archived months: [mar2018] [may2018]

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