• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
by Pured
Overloading comparison operators for use in a Set
 
Hello, I have a small piece of code that used the set::insert function on a set of myClass. For that...
[2 replies] Last: @Esslercuffi, I took out the > operator since the set::insert only use... (by Pured)
by paligq
Need help on homework. New to programming.
 
I need to build a program that gets 50 random numbers in an array and sorts them using selection sor...
[no replies]
Creating header files with functions
 
Hey guys, so I currently have a running program "game.cpp" that runs a game of tic tack toe. I want ...
[5 replies] Last: Any time. btw, we've just been discussing something similar in anoth... (by Esslercuffi)
Classes that reference classes
 
I've split the main part of my program into three classes and their respective functions. I have my ...
[6 replies] Last: declarations are contained in header files, definitions in code f... (by Esslercuffi)
VS2012 Compile as x64
 
I apologize for my lack of knowledge but that's why i'm here. I am a .net developer don't all boo an...
[no replies]
by Ndrewm
Structures function
 
I'm writing a function that compares two fraction. if the fractions are equal it returns 0. If the f...
[3 replies] Last: I see where thesethese solutions would work but I'm look for something... (by Ndrewm)
Returning a template pack nested N-dimensionally in another pack
 
To explain this question, let me jump straight to main() and my current output: struct Base {}; ...
[10 replies] Last: Inspired by JLBorges' method with his design, I've solved my original ... (by prestokeys)
by Jweim
Logic - Writing input to .txt
 
So I'm trying to take some information that a user inputs and to then write it into a .txt file. The...
[1 reply] : There's the structure. I need to use nested loops for the input, a wh... (by soranz)
Referencing a 2D array in order to sort strings
 
I am utterly confused on how to set up a function that references a 2D array and compares he strings...
[1 reply] : For starters main() must always be declared as int main {} never a... (by ostar2)
C++/CLI Separating .h and .cpp files
 
Hi I need to develop a GUI application using c++. My knowledge in c++ is good but I never used GUIs...
[2 replies] Last: form2.h #pragma once #include "form1.h" namespace Assignment3UI ... (by pringly)
by Kauto
Union Find trouble
 
#include <iostream> #include <fstream> #include <cassert> using namespace std; void main ()...
[1 reply] : ifstream is by default set to ios::in so that's not necessary on line ... (by soranz)
How to make sentence a new paragraph in c++ text file
 
I am writing my code here..I have to modify my output text file and convert every sentence into para...
[no replies]
Problem reading from file
 
Hello everyone, i have this code, but when i tried to read from the file, it crash. this is my code...
[4 replies] Last: want to add the data to an objects array We'd normally use a vector ... (by kbw)
Homework question regarding Time
 
I am making a class called Time in C++ and the class has 3 integers as private member variables. I a...
[no replies]
Compile C++ code at runtime [g++]
 
My program needs to compile various source files at runtime. What is the most elegant way to compil...
[3 replies] Last: I'm not so sure that's what you really need to do. What exactly is y... (by Duoas)
std::vector? updated
 
Since you have a running program, you only need to change the private variables in the header files ...
[4 replies] Last: Thanks for your help. I finished it and turned in the assignment yeste... (by bwilson1)
Unscrambler
 
This program should be easy for those who are experienced //not me So i want to make a simple word ...
[3 replies] Last: How would you tell apart 3*5*8*9*22 from 2*3*4*5*9*22, or from 2*2*2*2... (by helios)
by Gyiove
DispatchMessage taking frames away while moving window
 
Hi everyone! lets start with the code: while(run) { if (PeekMessage(&msg, win->win_h...
[1 reply] : hm, anyone? :/ (by Gyiove)
Switch
 
Hi, I do not want the user to be prompted to key in the first number and second number when the u...
[2 replies] Last: Thank you! (by missjune)
Pages: 123... 66
  Archived months: [aug2014]