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

by balala
Detect CD tray status
 
Hi everybody, I'd need a code to detect if the Cd tray is open or closed. I think this is possible, because a while ago I found the following: http://www.techn...
[9 replies] Last: I have no enough experience with C++ to can say why this makes differe... (by balala)
finding and fixing errors by using STL techniques
 
I'm trying to solve this exercise: (#4) https://books.google.nl/books?id=We21AwAAQBAJ&lpg=PP1&dq=programming+principle+and+practice&pg=PA754.&redir_esc=y&hl=en...
[2 replies] Last: Thanks for the reply. The lines 18 and 21 are part of the book themsel... (by closed account G1vDizwU)
error C2228--Visual Studio 2015
 
I am getting an error in my program, and have been searching for an answer. The error is "error C2228: left of '.Display' must have class/struct/union" #incl...
[2 replies] Last: Yes! Thank you! I actually just noticed that! (by Zekiay H)
What is wrong in this program?
 
#include <iostream> using namespace std; #include <fstream> #include <cctype> int main() { int words=0, u_letters=0, l_letters=0, vowels=0; ofstream fo...
[7 replies] Last: Thanks everyone! I was usinf .eof() because that's used a lot in my te... (by Anne693)
Redirect someone via c++ in command prompt
 
So i'm trying to create a program that asks a few questions if all the credentials are correct i want it to send them to a website automatically all in command ...
[no replies]
Need help fixing a problem!
 
I am still relatively new to learning c++ and I need help fixing my code so it will work properly. The problem given: Input a number then make an X in the foll...
[1 reply] : Duplicate post waist time and effort. http://www.cplusplus.com/forum/... (by SamuelAdams)
by Inig0
max and min functions
 
I'm in a 110 computer science college course, we use Visual Studio 2015. I need help with finding the max/min of five variables for an assignment
[2 replies] Last: Thank you, I was just missing the inner brackets (by Inig0)
Help with a few problems
 
I'm a pretty new person to c++ so i'm kinda having some trouble with this problem. im using functions to sort out a sentence inputted by the user into ascending...
[8 replies] Last: this solved my problem!! thank you!! (by jessicacats)
by AlexIL
Help with a makefile I wrote
 
Hello guys, I'm writing a c++ program using qt5 libraries. I wrote this makefile (https://github.com/AlexK-IL/csti/blob/346376369e143374cc079442bfaf7faf72ccb45...
[5 replies] Last: Lets say that a Makefile starts: ... I don't disagree with anythin... (by Repeater)
by a015
Taking Screenshots using Dev C++
 
I have this code #include <iostream> #include <windows.h> using namespace std; int main() { keybd_event(VK_MENU, 0, 0, 0); keybd_event(V...
[3 replies] Last: One surely can create a batch/powershell/whatever script/installer tha... (by keskiverto)
converting normal date to Julian date
 
okay, so here i am again asking for help (I do also ask my teacher for lots help also so please don't think I'm not trying lol) this code is suppose to convert ...
[5 replies] Last: Thank you that fixed it!! (by jessicacats)
Quantum computers
 
Hi, Am I right to worry about the future ? As far as I understand quantum computers and classic computers are not at all compatible (bit vs qbits etc). So ...
[2 replies] Last: I don't know anything about quantum computing, but I do know about C++... (by mbozzi)
by agulbs
Invalid operand to binary expression
 
How do i fix this?? I need to create a lexical analyzer, however i keep receiving "invalid operands to binary expression" at lines 71 62 59 // // main.cpp ...
[1 reply] : Without the declarations of Token and TokenType, its hard to tell. My... (by doug4)
by bozmin
comparing two objects
 
I have two object containing the same numbers. the first object has numbers coming as follow: n1 = 1.2.3.4.5.6.7.8.9.10 and the second object : n2 = 2.6.3.4.8....
[4 replies] Last: I don't think your code is doing what you're expecting. Line 30: You... (by AbstractionAnon)
Bubble sort, Selection sort & Insertion sort
 
So I'm new to C++ and am needing a little help. All feedback is welcome. I am suppose to create an AList object and then use that AList object to make the foll...
[2 replies] Last: I corrected it. (by amkir100)
Idk where to start...
 
Phase 1: Create a program that takes the input of an integer and returns whether the number is prime (true) or not prime (false). You may use modulus to determi...
[1 reply] : Normally the best way to start is on a pc of paper and write down the ... (by SamuelAdams)
trial
 
I will try to insert tagged code Here is the code: #include <iostream> using namespace std; int main() { cout << "Hello, World!\n"; }
[6 replies] Last: Line 2: using namespace std; can't be on the same line as a preproc... (by AbstractionAnon)
connect 5 game
 
I'm trying to make a program that will play a "connect 5" game for school. The game is between two players, and a player wins if they match five in a row horiz...
[2 replies] Last: Your posted code does not compile. Line 5: You're missing the requi... (by AbstractionAnon)
Program doesn't work. Program is for finding the no. of words in a text file
 
#include <iostream> using namespace std; #include <fstream> int main() { int words=0; ofstream fout ("Text.txt",ios::out); char str , s ; cout<...
[9 replies] Last: Here's another variant (stealing exf0's good ideas, but restricted to ... (by lastchance)
Trying to transfer from a textbox on a popup form to a DGV on another form
 
I am trying to allow the user to input into a textbox on an "addform" and when they click "save" the add form is closed and the user input is put into an associ...
[no replies]
October 2016 Pages: 1... 678910... 23
  Archived months: [sep2016] [nov2016]

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