General C++ Programming - November 2015 (Page 13)

Sorting Name Alphabetically
 
I am a beginner at C++ but this is a lab we have to do and I have no idea what libraries, algorithms, process on how to start this exercise, etc. Please help. ...
[1 reply] : I would Start with this: #include <iostream> #include <string> using... (by jasonwynn10)
Vector - Expression must have class type
 
Hello, I am receiving an error: "Expression must have class type". I am supposed to "Create a table which is a vector of 'Essay', which is dynamically created...
[7 replies] Last: For those that might look at this later, below is the correct implemen... (by binary3926)
Unsure how to start a program...
 
Here is the code description: Consider the following function, f(n) = 3n + 1, if n is odd ; and f(n) = n/2, if n is even Use a random number genera...
[6 replies] Last: no problem. If you need any more help, just post it here. (by jasonwynn10)
Error on my code
 
I have this error in Visual Studio Error 2 error C2447: '{' : missing function header (old-style formal list?) And this is my code ---------------------- MAI...
[1 reply] : > Because it says it is in line 3 in main.cpp. that is not what you've... (by ne555)
AutoNumber edit
 
I'm wondering if you can help me. I'm trying to write a new interface to an old system written in VB so I'm starting again in C++. I have however hit a snag...
[4 replies] Last: The problem is the old programmer uses the ID as the RMA number so it ... (by AlkieDropout)
compute pi value using monte carlo method multithreading
 
I am trying to find value of PI using montecarlo method, and using parallel C code. i have write serail code and works fine. But the parallel code gives me wro...
[1 reply] : Your threads doesn't return a defined value. See pthread_exit(3) .... (by tcs)
Virtual inheritance, constructing the base class
 
Hey, all. I'm new here, and I hope to be able to contribute a lot. I'm writing a game engine. It DOESN'T look like this. (But this is a pretty good bare bones ...
[2 replies] Last: The most derived class? Even if a less derived class already initial... (by froobymcdooby)
Quick Help Needed! Lo Shu Magic Square
 
So I need to create a "magic square" that is to say that every row pillar and diagonal add up to the same number here is what I have to find the grid using a...
[no replies]
by homing
how to check if c++ 11 move worked on rvalues
 
Hey, Whats the best way to check if a rvalue really got moved and not copied? check/debug the move constructors?
[2 replies] Last: Another option: instrument the code #include <iostream> #include <st... (by JLBorges)
Ray Tracing - Finding the Normal of an OBB (Oriented Bounding Box)
 
Hello Everyone. I've been taking a 3D programming class for a while now ,and our first assignment was ray tracing. TO cut it short, Im done with all of the ...
[5 replies] Last: Assumptions might be correct! Ah, it was the "close to 0" that got me... (by AceMice)
Calculations help
 
Hello, this program takes input from a text file and displays the lowest temperature being the first column, highest temp second column and rain value third. MY...
[3 replies] Last: Ah yes, I tried setting minimumlow and minimum high to a value of zero... (by xdhx12345)
weird struct size
 
i have quite a bit of confusion right now, i have a struct like this (the purpose is for reading a binary data, and this is not full struct, just part of it wh...
[8 replies] Last: #include <iostream> #include <cstddef> #include <type_traits> #includ... (by JLBorges)
Maximum line length
 
Hi, We're several ppl working on a project, and have a dispute about what the maximum line length should be in C++ files in our project. What do u think?
[1 reply] : I think you're bike shedding. (by Lachlan Easton)
help with morse decode program
 
hi im writing a program to decode a morse code message. my program compiles without any error but nothing happens when i enter my code to be decoded. i think th...
[4 replies] Last: ok so my int main should look like: int main() {vector<string> mess... (by flynryan53)
Lowest score drop
 
I need help with my assignment. I'm supposed to enter 5 test scores. Then, it is supposed to drop the lowest one. Then, it is supposed to average the other 4 te...
[4 replies] Last: @JLBorges We have to use arrays for this assignment. @jasonwynn10 Tha... (by galaxylfc)
Recursion
 
Hi I need help writing a program using recursion... Write a program that will test if some string is a palindrome Ask the user to enter a string Pass t...
[1 reply] : I figured out my problem me panicking lol how do i delete this then? (by stormhood707)
help cant display list for question # of incorrect answers
 
#include <iostream> #include <iomanip> using namespace std; int main() { int choice; const int empId = 7; int workers = {5658846, 4520125, 78...
[1 reply] : I can't understand your question, if it is a question. I don't get pai... (by SamuelAdams)
by Bry
please help Calendar- stars around a day
 
if the user puts choice to equal two i have figured out how to make that month and the proper day show up. Now i cant figure out how to put stars around a certa...
[1 reply] : I'm sorry but I don't want to read unformated code. Please use code t... (by SamuelAdams)
by esolve
where to define and declare non-member function
 
I have a class Myclass: in Myclass.h file: class{ private: int sd; public: void func(int sd, short op, void *ptr); void start();...
[1 reply] : ptr is probably a context pointer. We want to pass the object addre... (by kbw)
Infix To Postfix Error
 
For some reason, I'm getting an error message saying: "Debug assertion failed: Deque iterator not dereferencable. I've read that this error means that I'm poppi...
[1 reply] : It's hard to read your code as there is no indentation. Also, it woul... (by kbw)
November 2015 Pages: 1... 1112131415... 26
  Archived months: [oct2015] [dec2015]

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