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

I need help copying struct to char array
 
below memcpy do not copy anything from struct to char array. sendata stay as '\0'. any thought? struct clientPacket cpacket; cpacket.transacti...
[1 reply] : turns out, I was doing the correct thing. verified with copying char a... (by djhyun0001)
Immaculate Syntaxical Apotheosis?
 
I attempting to make my code as neat and clean as possible as I am embarking on A HUGE project. I have many different structs, unions, and functions that need c...
[11 replies] Last: How completely retarded. (by helios)
Mingw Build-ins Location
 
In which header file does Mingw define its builtins?
[2 replies] Last: Thank you so much you are very helpful and constructive. You have answ... (by da peppester)
Forms and Simple Commands.
 
Hiya, anyone understand C++ on Visual Studio, when I run a command after "Application::Run(%form);" it will only run after I have run the program and closed th...
[2 replies] Last: Why don't you start the commands from the form ? (by Thomas1965)
Generic programming using std::transform() (1,2)
 
I am working on a program that takes an arbitrary number of command line arguments (at least 1), and outputs the minimum and maximum value, as well as what posi...
[21 replies] Last: 5. for(int n: data) std::cout << n << ' '; std::cout << '\n'; The i... (by Cubbi)
age and grade
 
can someone help me write a C++ Program where a user enters an age from 5 to 18 and print what grade that person should be in?
[1 reply] : Duplicate post: http://www.cplusplus.com/forum/beginner/192535/ (by Chervil)
by H A M
i'm a biginner in c++
 
iwant to make a programme that will take a string from the user and its length isn't limitted but each word will be separeted by either ','or';' i want to split...
[6 replies] Last: for (int i=0;i<str.length();i++) { int Pos = str.find('['); string ... (by H A M)
Beast: HTTP and WebSocket implementation Open Source NEW!
 
Beast is a new open source library that implements the HTTP and WebSocket protocols on top of Boost.Asio. Its header only and builds on gcc, clang, and MS Visua...
[no replies]
by Vabi
Factory Method
 
What is factory method of programming?
[4 replies] Last: @MilkeyBoy n @kemort thanks a lot. (by Vabi)
Date picker
 
I am using VS 2015 C++. I have a variety of programs that have picked up a date by reading three separate fields. I now have a new program that wants to read a...
[10 replies] Last: It needs an email address (by norman1312)
by enana
calculator
 
i am trying to make a simple calculator allow to the user to enter how many number her/she wants. it goes well from the out side but when it start the calculati...
[3 replies] Last: AbstractionAnon i did the changes in line 49 and 41. in line 8 i rep... (by enana)
getting a newbie off on the right foot ..
 
Good day .. new to C++ .. wondering if one could offer some insight/suggestions how I might achieve a desired goal. I'd like to have a loop that within a numbe...
[3 replies] Last: THANK YOU folks !! Sorry I didn't respond sooner, I failed to have not... (by dbrenchley)
Bruteforce is confusing!
 
I have seen many bruteforce topics! like this one : http://www.cplusplus.com/forum/lounge/151573/ So lets say for example I made a program that requires a p...
[7 replies] Last: I read these tools are using Network-CPU-Power, wordbooks, rainbow-tab... (by closed account 48bpfSEw)
by nawas
How to open another file for reading without closing the first file
 
In our team project, a file is to be continually read from using a while loop, and whenever a certain word is encountered, another file is to be opened to read ...
[4 replies] Last: @DTM256 Thank you for providing another option if closing the file is ... (by primem0ver)
[SFML] How do I load tilemaps in c++
 
How do I load tile maps in c++? Currently what I have tried to do is have an array with integers that specify a value eg 1 = ground, 0 = stone etc. and loop thr...
[10 replies] Last: Thanks, But I solved it like this: if (map == 1) { ... (by deniedanull)
by AcarX
Question about atomic operations and reading
 
I was wondering if I need to use atomic read operations for sensetive data. For example: - Thread 1: InterlockedExchange(&sensetive_data, sensetive_data + 5)...
[3 replies] Last: volatile is pretty much the worst solution possible, because the meani... (by Cubbi)
Program fails to initialize and display values entered to struct
 
Hello programmers. I would like the below program to initialize the struct below at runtime and then display the values entered. I have two functions as: Ente...
[4 replies] Last: @Mwangi Elihah: Please use code tags when posting code, to make it re... (by MikeyBoy)
How to create an implicit cast between two pointers of two types
 
Suppose I have a pointer of type *Foo. I want to pass it to a function that expects a pointer of type *Bar, so I have to create a cast between those. How do I d...
[6 replies] Last: void make_snafucated(Node *node){ node->snafucation(); } void m... (by helios)
by EddgeX
Learning something new each day?
 
Hello everyone, I am new on these forums however, I browse cplusplus quite frequently. So my question is, does anyone try to learn something new each day ...
[3 replies] Last: Hey Thomas1965 and Cubbi, thanks for the links I'll start taking a loo... (by EddgeX)
C++/cx with sqlite
 
hi, i am building a universal windows application with c++/cx for the first time and i am trying to use sqlite database. has anyone done this before i need samp...
[no replies]
June 2016 Pages: 1... 7891011... 14
  Archived months: [may2016] [jul2016]

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