General C++ Programming - January 2019 (Page 5)

by Allaye
statement codes inside my if statement not executing
 
do { cout << "Enter E for the Entire Image or P for Part of the image" << endl; char Option; cin >> Option; if (Option == 'P' || Option == 'p') ...
[9 replies] Last: Please DON'T go back and replace your old posts with new code. It mak... (by MikeyBoy)
by mmgh
Numerical analysis problem
 
Hi everyone! I have an issue regarding numerical analysis. I have written a c++ code to solve an equation where there is a term like this in the denominator:...
[13 replies] Last: Yeah not so trivial. I am trying to find another way to implement the ... (by mmgh)
Memory management marker sequence
 
I am developing a memory manager that will replace ALL new and delete requests globally (at the program level). It segments most memory based on the size of th...
[3 replies] Last: Yes, boundary tags go before and after each block of memory. You don'... (by AbstractionAnon)
HWND txt color
 
Hello, I'm trying to give a color for 1 single HWND in my win32 api.. So far I managed to give color for txt/background but that's for all the static HWNDs i ...
[1 reply] : The lParam contains the HWND of the your textview. Thus you can do... (by coder777)
Reading classes from a text file
 
Hi I'm still new with classes, all i want to do is to read a text file and output it as a shape. The thing is, i already put the ifstream but i didnt know how t...
[8 replies] Last: The way you describe your assignment makes no sense to me. Maybe someo... (by dutch)
by mezhhh
Cannot access members in my class C++ ISSUE
 
Hey! i'm relatively new to programming and i am trying to make a clock using a structure and various for loops, its a clock that retains the time for all planet...
[15 replies] Last: Thanks for that, i ended up making some code based of yours and it wor... (by mezhhh)
Array compression
 
Hi, What is the most efficient tool to compress data (arrays of unsigned short). It can be time consuming for compression, but needs to be fast for decompres...
[19 replies] Last: if you needed more accuracy for #2 you could use your own wavelet inst... (by jonnin)
Why std::copy changes my pointer position?
 
Duplicate http://www.cplusplus.com/forum/beginner/248645/
[2 replies] Last: Duplicate http://www.cplusplus.com/forum/beginner/248645/ (by salem c)
by Vinno
C++ ERROR - Crashes upon compilation
 
Please help me I did a program on participating in quiz competition. Upon compilation the program crashes. The source code: #include<fstream.h> #inclu...
[1 reply] : You need to throw away your book and your compiler. Whatever it is, it... (by salem c)
by frek
Enumerations and an error in tour of C++
 
Hi, I'm reading Tour of C++ 2nd edition . In section 2.5 Enumerations , it says: enum class Color {red, green, blue}; Catching attempted conversions to ...
[5 replies] Last: Thank you both very much. That field was blank but I chose "ISO C++ La... (by frek)
HWND txt color
 
I'm trying to give a color for 1 single HWND in my win32 api.. So far I managed to give color for txt/background but that's for all the static HWNDs i have ...
[no replies]
Missing type specifier- int assumed
 
I am trying to build a solution in Visual Studio and the compiler keeps throwing the error: "missing type specifier- int assumed. Note: C++ does not support def...
[12 replies] Last: Thank you for that thorough link, @JLBorgees. Thanks everyone else fo... (by vaderboi)
versatility of box2D/chipmunk
 
I am about 40% done with my first c++ game (being made in cocos2d-x v3.17), that being the UI pretty much finished, leaving the part I am most scared of, physic...
[no replies]
problem with game.
 
Gameboard not working. code///
[4 replies] Last: @dhayden yea, that makes sense. It works. thanks. now just trying the... (by Mikeyy222)
Is the articles section on this website still active?
 
Hi everyone, I recently submitted an article in the articles section of the website which is pending for approval. I noticed that the last article published on...
[no replies]
What is the meaning of scoped object in the context below.
 
Hi, The Note section of following isocpp guideline, https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c10-prefer-concrete-types-over-class-hiera...
[4 replies] Last: Thanks mbozzi & Peter87 :) (by kapil2905)
by cj1983
Polymorphism - probably simple!
 
Hello, I am helping out my brother with some C++ revision work and.. well i am stumped. He has to annotate the following code demonstrating where polymor...
[8 replies] Last: Incidentally, template instantiation is technically another form of po... (by doug4)
by mikix
Is it possible to change a string/char/variable in a binary file ?
 
Hi, I have a very basic question I was hoping someone could help me with. Let say,and this is just theoretical situation, I compile a program and at compi...
[3 replies] Last: well, yes lol. If the program is YOURS, there is no sense in hex-edi... (by jonnin)
by arjv
A little problem with my assignment on a telephone directory
 
How do i validate the strings where if someone accidentally types a number in the name category , it says "Try again" also how do i add a sorting program which...
[1 reply] : read input as a string and check that it is all letters. as for how... (by jonnin)
How to increase speed of large for loops
 
Right now i'm trying to run very large for loops for some task, nearly about 8e+12 iterations. I tried using c++11 threading, but it do not seems to be working ...
[8 replies] Last: I agree, it looks to be doing too much work. But without some feedbac... (by jonnin)
January 2019 Pages: 1... 34567
  Archived months: [dec2018] [feb2019]

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