General C++ Programming - May 2017 (Page 2)

Can I SCSI a tape reader on Windows 10?
 
I have no problems writing code for a USB smart reader. That's not my problem - just to be clear. The hard thing is to get one of those to read a Cartridge Me...
[11 replies] Last: I now have the tape drive appear as a drive /dev/st0 after some fiddli... (by CPPAWhile)
by user42
program with structs
 
<code> #include <iostream> #include <cstdlib> #include <iomanip> #include <fstream> #include <new> //------------------------------------using------...
[12 replies] Last: The program is working now. Thanx for the help! (by user42)
by Bank
Programming
 
Hello, first of my question is general about these 2 links: http://www.codeforwin.in/2016/06/number-pattern-programs-in-c.html http://www.codeforwin.in/2015/07/...
[1 reply] : ...even though I solved things with harder logic... ...because I hate... (by cire)
by CroCo
How to implement dragging feature for mouse in GLFW library
 
GLFW library does have a feature for keyboard input for detecting hold button status but it doesn't support same feature for mouse event. I need to manually imp...
[1 reply] : isRightDown and isRightUp should just be returning the value of m... (by cire)
[C3861 error] Identificator not found.
 
I have a file "HSlider.h" it is using "Draw.h",where I defined my functions to use them . But compiler says I havent defined them(identificator not found).I sea...
[11 replies] Last: It didnt worked.I created new project,copied all files and got the sam... (by bJiNg94)
by Kalcor
What does this mean?
 
Vladik had started reading a complicated book about algorithms containing n pages. To improve understanding of what is written, his friends advised him to read...
[2 replies] Last: I think this isn't assured in the language It's guaranteed. http:/... (by mbozzi)
How to access subclass pointer that is Protected / Private Member
 
I have a queue.h file like the following. Is it possible that I can access the head pointer of the queue from Main? #include <iostream> #include <iomani...
[3 replies] Last: There are some types of queues in c++ and they are very recommended to... (by benhart)
Z-Buffering manual calculation
 
Hi guys! Now I'm working at a 3D ASCII graphics library from scratch(sounds interesting not?). Here's what I've done: -projecting a 3d point on the screen ...
[2 replies] Last: Read this Pages: https://www.scratchapixel.com/lessons/3d-basic-rende... (by eec)
Why is `float` so much faster than `int` in this program?
 
This simple program copy data from the array `xy` to `arr` and prints the time it takes #include <stdio.h> #include <time.h> class Point ...
[3 replies] Last: Optimisers tend to have a deep understanding of the standard C++ libra... (by JLBorges)
Sorting of arrays
 
Hi I need to write a code that will sort the absolute value of both an array that represents a vector, and an array that represents an nxn matrix. For the sor...
[1 reply] : Double post: http://www.cplusplus.com/forum/beginner/216609/ (by Thomas1965)
by Enex
No output when reading from txt file
 
I'm trying to read a text file I created that has the answers for a True/False test consisting of 20 questions as well as student IDs and their answers for the ...
[7 replies] Last: IMO, it's not any easier either way, however using a std::string will ... (by jlb)
converting a 17-bit unsigned binary number to double-type
 
I have a question on converting a 17-bit unsigned binary number to double-type. Let say the binary number is 1_0011_0110_1110_1001; // which is 0.60725 in deci...
[11 replies] Last: The last argument to std::stoi is the radix (the base of the number ... (by JLBorges)
battleship
 
I really really need help.. I need it urgent. Thanks for help in advance class func{ private: string name; int health; int score; public: func(); v...
[2 replies] Last: Duplicated Post : http://www.cplusplus.com/forum/beginner/216395/ Thi... (by chicofeo)
by user42
complex program...challenging
 
hi, I am having a problem with my program. it is a little comlicated so I will try and explain the best I can. the program is supposed to get numbers and enter...
[2 replies] Last: Duplicate post http://www.cplusplus.com/forum/general/216554/ (by AbstractionAnon)
Can anyone explain this C++ program?
 
Hello everyone, I am trying to learn C++ without any prior programming experience at all... I came across this program and I can't seem to figure it out at all....
[2 replies] Last: It's a simple game to guess a number in C++ / CLI https://en.wikipedia... (by Thomas1965)
by Kalcor
Why is pow() producing a wrong answer?
 
int main() { unsigned ll k, l; cin >> k >> l; int i = 1; unsigned ll n; while(true){ n = pow(k, i); cout << n << endl; ...
[3 replies] Last: Those kind of errors occur sometime using pow(), that's why it's impor... (by benhart)
Learning smart pointers
 
Ok, so I was taught basic, raw, C++98 when I was coming up. I figure its about time to shake off the bit rust and learn some of the newer features, progressing...
[3 replies] Last: Ok, so I was taught basic, raw, C++98 [...] I am now trying to unders... (by Cubbi)
Prob A Simple Fix To This Error Of A Program Looping
 
This is a function in a program of mine, inside of the function the program will loop once the user has entered their guess. I have fried my brain trying to fig...
[2 replies] Last: line 107: As you were told in your previous thread, you CAN NOT call ... (by AbstractionAnon)
by Kalcor
Can't solve this
 
You have a positive integer m and a non-negative integer s. Your task is to find the smallest and the largest of the numbers that have length m and sum of digi...
[7 replies] Last: Thank you @lastchance this one was 100% detailed. appreciate your effo... (by Kalcor)
Double Brakets in a vector of vector matrix.
 
i know it might have been talked about before but i didn't understand much from the explanations before and will be glad if someone can explain again my temp...
[3 replies] Last: @ne555 Thanks :+) ++ThingsLearnt; I see from your link that... (by TheIdeasMan)
May 2017 Pages: 1234... 14
  Archived months: [apr2017] [jun2017]

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