General C++ Programming - March 2017 (Page 5)

Searching and finding an element of vector<struct> for updating and deleting a specific item
 
Hello, I would like to ask you a question about finding an index of a record in a structure that is in a vector. The searching should be according to some param...
[5 replies] Last: you can actually reserve a bunch of space in the vector and hash the d... (by jonnin)
How to use QueueUserAPC instead of CreateRemotheThread
 
Hello hi i did a small injector but now i want to use QueueUserAPC, documentation: https://msdn.microsoft.com/fr-fr/library/windows/desktop/ms684954(v=vs.85).as...
[2 replies] Last: so i can't use asynchronous procedure calls to inject code into remote... (by omarespanol)
How to check process name help
 
Hello i will show the threads and process but i want to check a single process like notepad and show this only. Complete code: void PrintProcessNameAndID( DWOR...
[5 replies] Last: Might be clearer to write the code like this: const int EQUAL = 0; i... (by Thomas1965)
Working with Arrays
 
Hello everyone. I am having a problem with stacking two arrays together. I am trying to do the following output: Name Day 1 Day 2 Day 3 Day 4 Day 5 Day 6...
[1 reply] : you'll have to use nested loops #include <iostream> #include <string>... (by gunnerfunner)
file input output
 
program need to read from text file and "rotate" the data and output it into a new text file.
[2 replies] Last: OP: well there's a std::rotate() but from your cryptic post there's no... (by gunnerfunner)
passing variables between classes
 
I am new to object oriented programming and am having a difficult time trying to figure out how to pass a public variable to another class. I have the #include"...
[1 reply] : assuming public variables in both classes, here are some suggestions a... (by gunnerfunner)
Using extraction operator on a stream for a function argument
 
I am working on the beginning of some code and I am having problems with this snippet: while (getline(configFile, buffer)) { if ('#' == buf...
[6 replies] Last: indeed, that's what friends are for after all. thanks edit: OP: cire i... (by gunnerfunner)
appinit_dlls dont work
 
i was trying to load a dll written in c++ and didnt work for me.
[2 replies] Last: Repeat the injection all the time when i open a process.. so if i open... (by omarespanol)
Boolean Functions
 
#include <iostream> using namespace std; int main() { int n, count; float sum, avg; sum = 0; cout << "How many numbers? "; cin >> ...
[1 reply] : bool keepgoing() { return pressedno(); //whatever press no means t... (by jonnin)
by MojoJo
Flagging specific number in postfix calculator
 
Hi Everyone, I'm having a problem with displaying an error for my postfix calculator. If an input were to be something like: 1.2.3 + Then it should cerr that...
[3 replies] Last: I am not sure how your program works. One way would be to read thow wh... (by Thomas1965)
Why can't we specialize a template class inside another namespace?
 
Hi, I know the question seems silly - it's actually what I would expect. Yet, I would appreciate to know the exact reason just so my understanding of namespa...
[4 replies] Last: Got it! Thanks!! (by JUAN DENT)
Windows : Can you make a program run on CPU 8 ?
 
This is a personal project, please provide an example if you can. Thx
[2 replies] Last: Thx (by SamuelAdams)
deleteNode...
 
i need to replace victim.erase( -> victim.deleteNode( #include <algorithm> #include <iomanip> #include <iostream> #include <iterator> #include <list>...
[1 reply] : your question is very vague with a lot of info in the header files not... (by gunnerfunner)
Process a data set of random numeric information
 
It should start by creating an array that can hold a maximum of 100 double or float elements. There should also be at least one integer that will hold the numbe...
[2 replies] Last: And I discovered the double-post only after spending time doing this .... (by gunnerfunner)
What category of project to choose on Code::Block
 
Hi all! I found a Chessboard program (1700 lines)that compiles well with my Code::Block. I choosed the category "console application" which obviously is wrong. ...
[3 replies] Last: Here's what the author wrote in response to a question asking how to u... (by helios)
Parallel arrays
 
I need help desperately with an array! please someone, help?
[15 replies] Last: Ooooooh I see now! (by whilenotequaltofalse)
problem with mortgage calculater
 
#include <cmath> #include<iostream> #include<iomanip> using namespace std; void inputFunction(); void calculateFunction(); int main() { inputFuncti...
[3 replies] Last: @winonav You can get the values from the user in main(), then pass th... (by whitenite1)
by Yany
Sleep function problem in a Thread, unexpected behavior.
 
Please, some expert who has faced this issue: I'm creating own Timer handler with special features. But I faced with what ::Sleep(1) (1ms) in a another...
[3 replies] Last: In this thread we discuss various methods to get high frequency timing... (by helios)
Passing input file into function
 
I have posted the code I am working on below. Right now everything is working except for the printing function called 'onetile'. I am trying to pass in the inpu...
[1 reply] : use the variable Tsize to manage the loop: #include <iostream> #incl... (by gunnerfunner)
by saleha
source code
 
Hi I need Lamport bakery white black algorithm code in C/C++. Please sere if any one have source code.
[3 replies] Last: https://en.wikipedia.org/wiki/Lamport's_bakery_algorithm#Code_Examples (by mbozzi)
March 2017 Pages: 1... 34567... 19
  Archived months: [feb2017] [apr2017]

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