General C++ Programming - December 2016 (Page 6)

Ignore 'read access violation'
 
I made myself a little challenge: to make a simply memory tool that can read and write a value to an address, in C++. I have it working, but only for memory ins...
[1 reply] : You can't do it purely from within the process. You need support from ... (by helios)
Chess Validation Help
 
So, I have gotten quite far in my mission to finish a chess game in c++. However, I have hit a bit of a small issue I would like to get some input. SITUATION:...
[2 replies] Last: it will not pass another white piece Change the logic so that it w... (by cire)
Random Numbers
 
Hi Guys, someone knows how can i write a function that gives me a random number back between 1 and 3 PS: i am not allowed to use the liberaries .h thx
[5 replies] Last: #include <iostream> #include <string> #include <ctime> using namespac... (by OverSurge88)
BMP file availability.
 
With the following code, I can get a copy of the screenshot without any problems but the .BMP file will only be available for access when the program closes. He...
[3 replies] Last: What kind of problems do you have? After adding CloseHandle(BmpFile)... (by Thomas1965)
Have problems with int, deleting to much
 
Hello guys! have received a obstacle when I have worked with my game. When i have over 10 reps I can buy a item and it will cost me 10 reps. The problem is w...
[2 replies] Last: Okay, thanks for the answer I'll test it! (by anttton)
by RIGHTS
WRONG SECTION
 
WRONG SECTION!
[1 reply] : > using bit shift operator and a loop Using bit shift operator, and a... (by JLBorges)
Structure
 
Hi guys can you help me with this problem? I don't quite get it Help please im new in C++ Write a C++ program to keep records and compute for the scores of ...
[no replies]
how to put username and password in this code?
 
// my main subject #include <iostream> #include <iomanip> #include <string> #include <fstream> #include <iomanip> #include <string.h> using namespace std; ...
[2 replies] Last: http://www.cplusplus.com/articles/jEywvCM9/ http://www.cplusplus.com/f... (by gunnerfunner)
i know only C++, can I partecipate to Hackathon?
 
I know only C++11 and C. I'm quite good with C++11, I code almost every day. The Hackathon will be the next September. I would really liek to partecipate to cha...
[no replies]
Pokemon Catchem C++ game
 
I need help on this, i'm not sure where to begin and need examples on how to set up, thank you. HEADER FILE: Create a .h header file named Monster ...
[4 replies] Last: I need help on this, i'm not sure where to begin and need examples on... (by closed account 48T7M4Gy)
Error message prefix postfix decrement operator
 
I keep getting this error on this and I have no idea how to fix it: prog.cpp:116:9: error: cannot decrement value of type 'NumDays' Z = --add; #include...
[3 replies] Last: const NumDays operator ++ (int) const NumDays operator -- (int) Th... (by gunnerfunner)
by heckl
Print every string possible when each char can be two options
 
Hello, I need to make a program that will allow me to print every possible string when every .at can be two possibilities. So I will need to have some type of ...
[6 replies] Last: Avoiding hard-coded values and the long sequence if-else constructs: ... (by JLBorges)
Help Needed with currency converter in PPP 2
 
I have code here that converts Yen, Pounds, Yuan and Euro to US Dollars that I wrote for Stroustrup's book, PPP 2, and I need to add conversions from Kroner to ...
[4 replies] Last: Alright, thanks. I'll go with the Danish currency, then. By the way,... (by DragonOsman)
Answering "how many sets" with dynamic breakpoints.
 
I was fiddling around with an excell spreadsheet attempting to get estimations on a formula, but I could really utilize exact numbers. I feel like a computer la...
[2 replies] Last: OP: on the face of it yours seems to be an interesting problem but to ... (by gunnerfunner)
Simple Calculator Program
 
Hello! I want to make a simple calculator program can work with float type numbers and arithmetic operators. I don't want the user to enter each term and operat...
[7 replies] Last: can someone please explain me ... and how to take input more than on... (by Chervil)
key press
 
Good afternoon, my program is running on a while loop close to infinite, and i need program to do something if user presses letter 'k'. I do not want the progra...
[6 replies] Last: It works exceptionaly! Thank you guys so much! (by Tomheza)
by bodx
Simple food Ordering system c++
 
develop a simple food ordering system eg a menu of three cuisine....in c++. thank you for anticipated help brothers and sister...sorry for asking to many...help...
[10 replies] Last: I am serious. That is a framework for doing it based on what you wr... (by closed account 48T7M4Gy)
Assistance with sscanf function
 
I am actually writing in the C language. I have a text file that has this format (100 times): time: 0 ms switch0: 1 switch1: 1 switch2: 1 switch3: 1 poten...
[4 replies] Last: What language is this, Ansi C? Is this the GCC compiler? Ansi C is n... (by deffuncOops)
by x2JJ1x
How can I read a webpages source?
 
I am trying to view a webpage's source with c++ so I can get the response for a whitelist. This doesn't read the specified page's source, but it instead reads ...
[1 reply] : Your code is fine. The problem is that the server sends an empty file ... (by Thomas1965)
lvp programmer help needed
 
Hi How to program a PIC16F877A using Low-Voltage-Programming Cable (LVP ICSP) using 'Lothar Stolz' Low-Voltage-Programming Cable from Does it require that...
[no replies]
December 2016 Pages: 1... 45678... 18
  Archived months: [nov2016] [jan2017]

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