General C++ Programming - June 2018 (Page 2)

RGB colors
 
Hi, I want to know how to use more colors in visual studio 2015, because I need more than thge default ones.
[2 replies] Last: http://www.cplusplus.com/forum/beginner/238656/ (by helios)
C++ outputs "x" as an integer.
 
Hi, so I recently started learning C++ and I first decided to make a quadratic calculator. I have seen through some of the errors and I eventually cleared them ...
[15 replies] Last: I think Mahir wants what you call "mixed" notation. Here's an example... (by Ganado)
why the content of my pointer is nill?
 
hi, I create a pointer, but the content of this pointer is nill. why this happen? ========================================== MobileNode* M; ================...
[6 replies] Last: Multiple posts on same problem is "doubleposting" and that is not help... (by keskiverto)
by krisb
What in the world is going on?
 
I don't know whats happening here. I've been having a lit of issues with arrays lately. Other examples to come. I have array , array , and array copying v...
[3 replies] Last: In a multi-D array The elements are contiguous. constexpr size_t CO... (by keskiverto)
by krisb
assigning a value to a string
 
I am trying to assign values to strings. For instance, I want to say If (apple value > pear value){ cout <<apple; } string apple; string pear; ...
[4 replies] Last: thank you so much ! struct is exactly what I need (by krisb)
by krisb
trying to avoid repition
 
I'm trying to create a way to store information where the most recent data has a greater influence. This what I have thought of so far. I stopped at 5, but it g...
[3 replies] Last: jonnin, you are right on the money, thank you so much (by krisb)
by Lex33
State Diagramm Sketch
 
Hello Guys again I am now trying another task and wanted to ask you if my state DIagram is correct? A Venetian blind should be controlled with two push-buttons...
[17 replies] Last: Doug still there ? Well, I generally don't respond on weekends. To... (by doug4)
Sample libcurl code from internet compiles but doesn't seem to do anything?
 
I finally got this sample piece of code that uses libcurl to compile but it doesn't seem to do anything once it compiles..? It apparently is supposed to log in ...
[1 reply] : I want it to log in to a specific site with the credentials i hard cod... (by aseagle)
how to use a function parameter in the function body?
 
I want to use object M in the function body but It dose not implement,when I create another object from MobileNode class and equal two objects again it dose not...
[4 replies] Last: This in itself seems ok: void MacTdma::NodeLocation( MobileNode* M ) ... (by keskiverto)
Use less RAM for vector (1,2)
 
I have a text file that's about 3.2GB that I stream into a vector, and if there are too many programs running, the program crashes and throws a bad_alloc. I und...
[20 replies] Last: yea its 8GB on the hardware. anyway, enough of all that... please... (by jonnin)
Types of database engines powered by C ++
 
Sql SQLite Mysql Sybase Adaptive Server SQL Server Oracle PostgreSQL IBASE: Borland IBM DB2 Etc... http://saftysign.ir
[no replies]
Architecture help
 
Hi, We have a simulation running environment where it reads the data from text file(Hex data) and runs data on algorithm. At present the code looks like this. ...
[7 replies] Last: Any suggestions? (by srk1986)
double to int conversion
 
auto maximum = std::numeric_limits<uint64_t>::max() & ~uint64_t(0xFFF); double d = maximum; std::cout << (maximum - c); I would expect this t...
[12 replies] Last: There is this, not sure if it will make any difference: https://en.cp... (by TheIdeasMan)
Need help desperately
 
Hello, I need help to create a program with the following requirements: Given initial balance, rate and months to run, how much interest accrues on ...
[1 reply] : This looks like it'd be someone's homework. That being said, they alr... (by roger911)
When to move to Graphics Programming
 
Good Evening, I have been programming for some time now with console applications getting a good foundation of how C++ and programming work. I tried to jump i...
[2 replies] Last: Jump right into it. You'll learn and improve your programming knowledg... (by Uk Marine)
OpenCV issue with template matching
 
Looking for someone who may be able to help me with OpenCV. I'm trying to utilize OpenCV for its template matching functionality, and going through the docum...
[no replies]
Finding Prime Numbers -Help Needed-
 
Hey guys, I'm trying to write a program that loops through numbers 1 to 100 and adds all the prime numbers to a vector list of doubles. The problem Im having is...
[2 replies] Last: Okay sounds good :) It actually turned out the exercise was much simpl... (by bradltr95)
Searching Directory for .CSV file and Searching file (1,2)
 
I am storing each row of the CSV in a string. I.E: row1 outputs: John, More, 33, 80 How can i search through this string and do a if (33 <50) output "error". if...
[21 replies] Last: here is what I have now. It runs but However the data is not outputtin... (by akarbarz)
Copying objects from one vector to another
 
The program I'm working on is beginning to get the better of me. I'm storing class objects (each one with a string and a double) in a vector, then trying to sor...
[4 replies] Last: Wow! Thank you to everyone! I'll digest this information and see what ... (by PeterHicks)
Replacing object in vector of derived objects “no matching function to call”
 
I have class Employee and derived class Worker and Intern. I store them in vector<shared_ptr<Employee>> Firm; Now I want to promote Intern to Worker by replacin...
[1 reply] : The error says that you try to initialize a Worker with a shared_ptr o... (by keskiverto)
June 2018 Pages: 1234... 9
  Archived months: [may2018] [jul2018]

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