General C++ Programming (Page 48)

Insert one program into another
Hello, Newbie C++ programer with an question. I have a dice roller program that I want to use in...
[2 replies] Last: When writing code, make it as modular, independant and as reusable as ... (by Krisando)
IntelliSense: expession must have integral or unscoped enum type
So far I have the following code: // Purpose: To write a program that displays the number of milli...
[16 replies] Last: With some help from another source I was able to solve it with the fol... (by ProgrammingIsNotMyThing)
Exit two-threaded program with user input?
Hello, // clang++ -g -std=c++11 main.cpp -pthread #include <iostream> #include <thread> #include...
[2 replies] Last: -- thank you JLBorges! (by vincegata)
streams (1,2)
Can someone explain to me what exactly is the difference between buffers and streams?
[20 replies] Last: They have nothing in common. A stream is an object that abstracts away... (by helios)
Regarding reading .txt into struct array
My code is outlined below. I am trying to read in heart two 2 heart three 3 etc to an array of card...
[3 replies] Last: Are you running the program from the same directory where the executab... (by dhayden)
Code::Blocks doesn't recognize C++11 !!!
I'm trying to use c++11 std::thread, including <thread> header, but it says this: error: 'thread' ...
[2 replies] Last: The default codeblocks compiler doesn't support std::thread (by Yanson)
by DevTK
Virtual & Template method
I have the same implementation for 2 methods, they both insert argument to a text file. void...
[5 replies] Last: One can do the other way too: class base { virtual void write_impl(... (by keskiverto)
Help with 2 dimension array of char
#include<iostream> using namespace std; int main(){ int size_col = 12; int size_row =...
[7 replies] Last: I'll take just some bits: check_low = rainfall_array ; int lowestMont... (by keskiverto)
Building a simple program? Help with output
I am building a simple program that finds the average of three grades. The program runs fine. But, I...
[6 replies] Last: Shouldn't it be cout<<std::setprecision(2);?? I don't know, I've nev... (by SatsumaBenji)
by Gyiove
Creating costom function param header and passing that.
Hello cplusplus forum, I have this here: int *funclist; int func_count = 0; void push_func(...
[8 replies] Last: > Basically i want to create a dynamic function params header i guess.... (by JLBorges)
Matrices #2- Please Help Fellow Programmers!
#include <iostream> #include <cstdlib> #include <iomanip> using namespace std; char menu(char...
[3 replies] Last: Arrays other than one-dimensional are a bit tricky. There are third-p... (by keskiverto)
Cannot access private member declared in one class BUT I can in another class (1,2)
So I have an ImageManager class, Board class, and Box class. In Board.h I can declare ImageManager ...
[26 replies] Last: Passing by reference is efficient for anything larger than primitive t... (by LB)
Which is Best Encryption Algorithm
Hi, I am working client server data transfer project. I need one help for encrypt and decrypt the d...
[1 reply] : (by mutexe)
MD5 Encryption and Decryption
Hi, how to do encrypt and decrypt the text by using md5 algorithm without using the any library? Onl...
[4 replies] Last: Thanks guys. i understand the md5 hash algorithm (by gopal2773)
by fang2
Need tutorial on writing this program please
I have to do this program on Visual studio. Some help would be appreciated please: Write a progr...
[6 replies] Last: Won't this work?? #include <iostream> int main() { int n = 4; ... (by avadhootp)
Using resources in executable.
i have seen a lot of programs that have images inside their exe, dont use external ones. I tried to ...
[2 replies] Last: Personally i use windows, but i want a cross-platform answer (if it is... (by hakeris1010)
How to make a shape outside of main()
Hi, I know how to define a shape and attach it to a window as follows: #include <Simple_window.h...
[4 replies] Last: That answer is a kind of else question! Also (as I said) I want use of... (by khoshtip)
Matrix Operations - Help !
#include <iostream> #include <cstdlib> #include <iomanip> using namespace std; char menu(char...
[3 replies] Last: never mind, i found the problem. Thanks so much ! : )) (by VibeNFlow)
by sebz92
duplicate array
hello all, I'm trying to duplicate a string array. i created a function called duplicate but, when ...
[3 replies] Last: The duplicate is completely independent of the original. First string... (by Chervil)
I need a method of syncing time between server and client for udp packet timestamps that are accurat...
[3 replies] Last: > wouldn't it be possible if you used an external source for atomic cl... (by JLBorges)
Pages: 1... 4647484950... 56
  Archived months: [aug2014]

Cannot post in this page. To post a new message, go to the first page.