General C++ Programming - June 2016 (Page 7)

That Aha Moment - How long does it take?
Hello all, When learning anything in life that you find challenging, there is usually that almost magical moment when the fog is lifted and you can see thing...
Jun 15, 2016 at 8:30am
[1 reply] : It’s All In A State Of Mind If you think you are beaten, you are, I... (by closed account 48bpfSEw)
Clear text file content
Hi frnds, Is there any way to clear the content of write protected text(.txt) file in c++?
Jun 15, 2016 at 8:27am
[1 reply] : no. but you can install unix on your system and have access to all hi... (by closed account 48bpfSEw)
Searching text files for items of same type
Hi everyone! So, I am trying to run a function that would search a file that is filled with data in this format: // each line is a library item. type uniqu...
Jun 15, 2016 at 8:20am
[3 replies] Last: I would create a struct Media, read the file line by line into the str... (by Thomas1965)
C++: coordinates (x,y) overlapping, classes
Hi everyone! I would like to know how can I create a set of classes where there is a main big square shape with coordinates (x,y). And derived rectangular an...
Jun 15, 2016 at 6:25am
[3 replies] Last: I get the impression you are moving rectangular objects within squar... (by closed account 48T7M4Gy)
From 999 to 1023
Hi Everyone! This problem seems to be really easy to me at first but I couldn't quite figure out how to solve it. The distinct numbers into arrays then outputti...
Jun 14, 2016 at 9:22pm
[4 replies] Last: http://www.cplusplus.com/forum/general/192783/ (by closed account 48T7M4Gy)
by helios
Portable fibers
I'm implementing an M:N job scheduler and I'd like for jobs to be able to be suspended in the middle of a stack. I'm wondering if there are any coroutine implem...
Jun 14, 2016 at 4:06pm
[3 replies] Last: Great, thanks! (by helios)
Valid and Invalid date (incorrect) HELP ASAP!
Assignment due in 2 days ASAP HELP Please help me to find my errors!! Also some date's don't come up or a valid date would be (example 32/12/16) pleas...
Jun 14, 2016 at 1:36pm
[8 replies] Last: Ok then take JLBorges advice and just work on small steps. Just choo... (by closed account 48T7M4Gy)
how to run the cpp executable from local machine to the remote servefr, not moving executable to remote
I have a Perl program. In it we have executable, which is reading a.ini file. In this file it get a line to path_tyo_dir/b.ini The line in it: It has many li...
Jun 14, 2016 at 12:59pm
[2 replies] Last: The first problem is that I don't have a source code. I received the P... (by digioleg54)
Assignment due at 5pm uk time, how do you do make valid and invalid data work in c++ menu
Assignment due at 5pm uk time ASAP HELP Please help me to find my errors!! the valid is not working please help!! #include <iostream> #include <limits...
Jun 14, 2016 at 11:25am
[2 replies] Last: that is my friend from my class his one isnt working aswell (by pardeep12905)
assigment is due in a week need help
hey guys i recently was assigned with an assesment on c++ to make a date validation and modulus 10 isbn number check. but im getting mad errors and the code its...
Jun 14, 2016 at 11:15am
[9 replies] Last: thats a thing we need to do thats 10 number that are added up and divi... (by mastergnar)
Detecting lies from clues
Hi guys, I came across this problem from a Bloomberg Codecon coding contest. Truths of Predation Memory Limit: 1024MB Runtime Limit: 5s Score: 300 On plan...
Jun 14, 2016 at 10:06am
[2 replies] Last: Thank you very much :) (by Guessit)
by Vabi
problem to return string from class function to main
Hi, here is ny code for sample assignment. I am getting bank account details first and depending on those details I am going to perform the rest operation on th...
Jun 14, 2016 at 4:41am
[3 replies] Last: thank a lot kemort and AbstractionAnon for your kind help.... (by Vabi)
Is a class necessary?
Good day, my name is Paul (under protest), I am a self taught video game programmer, you can check out my latest project at store7697404 ecwid com. This project...
Jun 14, 2016 at 12:49am
[6 replies] Last: @Paul Perhaps you could post a 50 to 100 lines sample. Of course make ... (by closed account 48T7M4Gy)
Defining a variable inside a class from that data type
Hi , I have a class and i want to define some variables on it which the data types are the same with that class name. class MyClass { MyClass(); MyC...
Jun 13, 2016 at 7:23pm
[14 replies] Last: > Will the code you wrote work ? Yes. The members are static. (by JLBorges)
Key Press
ok so lets say i wanted to make a program where if i hit lets say space bar itll do something like open up google chrome or something like that how would i go a...
Jun 13, 2016 at 6:45pm
[4 replies] Last: a k n do i set up keybindings from my computer or through c++ (by dmacfang8)
Is is okay to use undefined behavior if it works?
Hello! In the code below, I'm accepting some buffer (1-byte aligned) and swapping bytes as if it's an array of int16s. (Full code has equivalent methods for 32 ...
Jun 13, 2016 at 5:16pm
[8 replies] Last: Thanks JLBorges, useful to see the output with that compiler option. (by zbjornson)
calling new when heap is full
Hi, I want to know what happens when we call new when the heap is full. Do we get a core dump or does the program just stops or what exactly? Thanks...
Jun 13, 2016 at 11:57am
[2 replies] Last: thanks mate. (by codebusters)
contribution to free project
Hi there! I would like to collaborate to a C/C++ (preferably C++) free source project to improve my C/C++ skills. But I am completely lost and I do not know ...
Jun 13, 2016 at 11:41am
[2 replies] Last: Hi leryss22! Thank you very much for your response! I do not have any... (by hebrerillo)
by eroki
switch inside while loop not stopping at break
so I tried making my first game, it is supposed to be a text-based multi-option game but it doesn't stop when it should. this is the best way I could figure out...
Jun 13, 2016 at 10:00am
[6 replies] Last: OH! thanks alot (by eroki)
Help with this simple program
just starting out with programming and need some help figuring this out Miles Per gallon A car holds 12 gallons of gasoline and can travel 350 miles befo...
Jun 13, 2016 at 7:42am
[4 replies] Last: #include <iostream> int main() { const double gallons = 12.0 ; /... (by JLBorges)
June 2016 Pages: 1... 56789... 14
  Archived months: [may2016] [jul2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.