General C++ Programming - October 2016 (Page 11)

Ostream to sockets
 
I'm trying to write a class, similar to a std::ostream object which allows me to: A) Construct with a name B) Track log level C) Prepend name, time, and log le...
[2 replies] Last: Solved it! No warnings now! typedef std::ostream& (*ManipFn)(std:... (by Stewbond)
making triangle for C++
 
our prof ask us to fill the in the following functions: -string makeLine(int length) -string makeIncreasingPart(int rows) -string makeDecreasingPart(int row...
[3 replies] Last: Look at the snippet of code again Probably you don't need to create ... (by mbozzi)
Please Help
 
Hey guys could someone explain what accessors and mutators are. Could you also show me an example if possible. Thanks
[2 replies] Last: OP - you've just posted your homework with a please help subject heade... (by gunnerfunner)
stdafx.h
 
Hi, Does the program becomes heavier and slower if I include "stdafx.h" in every header and source file?
[3 replies] Last: if I use two headers twice, isn't it considered to be twice as much c... (by mbozzi)
by bozmin
problem displaying a string .
 
here is the part of my code string name; name ='m'; name ='a'; name ='r'; name ='k'; for(int i=0; i<4; i++) ...
[3 replies] Last: Your original code doesn't work because you were not allocating the me... (by closed account ybf3AqkS)
by jc1030
Menu driven area calculator
 
Create a menu driven C++ program with functions. There must be four functions, calculating the size of area of circle, rectangle, triangle, and parallelogram. ...
[1 reply] : What have you tried so far? (by integralfx)
how to switch that will only show the passing remarks and the failed remarks
 
#include<iostream> #include<windows.h> #include<string.h> #include<iomanip> #include<iomanip> #include<conio.h> #include<math.h> #include <algorithm> #i...
[no replies]
"offer a generic, statically bound interface, but internally dispath dynamically, so you offer a uniform object layout"?
 
Hi, pg 121 of C++ Coding Standards book has this assertion, but I fail to understand it completely. Any help appreciated!! Thanks, Juan
[4 replies] Last: Great!!! Thanks Juan (by JUAN DENT)
by heckl
ADT List. Help with storing value in previous node.
 
I would like to know how to modify insert in the implementation file so that the previous and next items in the list are stored correctly. Issue is at line 134...
[7 replies] Last: It is not possible for line 12 to be reached if line 11 doesn't succee... (by cire)
please correct my code in sorting all of the data.. if i want to sort the other input id like the other data to follow..
 
#include<iostream> #include<windows.h> #include<string.h> #include<iomanip> #include<conio.h> #include<math.h> #include <algorithm> #include <vector> #i...
[no replies]
Overloading algorithms
 
Hi, Is there a way to overload std library algorithms such as sort() etc? I would like to be able to sort my own class in a specific way.
[4 replies] Last: Usually there is a way, but for that you don't have to overload it. ... (by Nico)
Fastest Way to Initialize Dynamic Array
 
I recently came across some posts about initializing arrays to 0 in C++. It seems that the recommended practice is to use code similar to the following: char ...
[5 replies] Last: When resizing a vector the new elements use the default value (which i... (by closed account LUf3AqkS)
BIOS manufacture information
 
Hi! I need known which address BIOS legacy e UEFI to get information about manufacture. Thanks,
[3 replies] Last: From the Windows command line you can get all the bios information fro... (by lastchance)
want to run stereo vision on a stereo video data using openCV+visual studio
 
Hi, I am new to openCV and want to run stereo vision on a stereo video data using openCV+visual studio. I want to show results by using color keys for dispar...
[no replies]
Please Help! C++ ATM Machine
 
I'm trying to write a program for my Computer Science class but I'm completely lost.Can someone please help me? In this program, you will implement a magical pi...
[3 replies] Last: Some pointers: - When you post code, after you pasted the code, select... (by Nico)
morse code
 
Can anyone give some help plz? the instructor said no strings, array can be used. just use simple concepts however dont have any idea at all. its killing me... ...
[4 replies] Last: This is a brilliant assignment as there are many ways that you could d... (by lastchance)
HELP GREATLY APPRECIATED!!!
 
I wrote this code last week and it is not entirely correct. I have to add Create functions based on your existing source code (ex. GetCar, CreateCar, CalculateL...
[5 replies] Last: I am struggling and am trying to get help as quickly and efficiently ... (by MikeyBoy)
Validating password
 
So this is my code that I have made, I know there is something wrong with this and I figure it might be my int get_int function. I am stuck an I don't know how ...
[2 replies] Last: Your get_int() function needs to do several things: - get an integer ... (by lastchance)
Retrieving the results of an operating-system call
 
If I run an operating-system program, say #include <iostream> #include <cstdlib> using namespace std; int main() { system( "dir" ); } then this runs, bu...
[4 replies] Last: Many thanks for the suggestions. I definitely need to be less lazy tha... (by lastchance)
Reading an input file into an array
 
Hey, I feel like something weird is happening. Basically I have a file that looks like this; 2 1 2 2 1 And what I want to do is read the second and third lin...
[2 replies] Last: Oh my god. That is so stupid. Thanks! (by JimNero009)
October 2016 Pages: 1... 910111213... 23
  Archived months: [sep2016] [nov2016]

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