General C++ Programming (Page 3)

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]
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)
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)
problem with recursive definitions
 
Hello wise C++ forum, I'm aware that "ordinary" recursive definitions are allowed in C++, the mos...
[2 replies] Last: Thanks very much coder777, this isn't the first time you bailed me out... (by STxAxTIC)
Class constructors and data member initialization
 
I recently discovered the new - new to me anyway! - feature of modern C++ that allows you to set the...
[16 replies] Last: keskiverto, that's a great little link. Cheers. (by mutexe)
Problem with Strings
 
I am supposed to be writing a program for class, but I am having trouble with a string. Here is the...
[2 replies] Last: Thank you, I did not notice that. (by TheUnholy)
Running C++ Program on C# Tool
 
Hi, There's a tool (with GUI) which was built in C#. Additionally, I have a C++ script. Is it...
[3 replies] Last: Sure there is, you of course will need access to the source code of th... (by Z e r e o)
by yo2xia
P value from lffff function in C++
 
I am beginner of C++, any help will be appreciated. #include "stdio.h" #include "lffff.c" #inclu...
[2 replies] Last: thank you, I have got it. (by yo2xia)
by yo2xia
P-value calculation is not exact via F distribution in C++
 
New code in C++, no precision error. share it with you! //*---*---*---*---*---*---*---*---*---*-...
[4 replies] Last: Sorry, I am late to reply you. And this is the code with no problem, s... (by yo2xia)
by ostar2
Zlib outputting blank file
 
Hello, I wrote a program to compress a file with gzip, which works fine. I also wrote a program to d...
[4 replies] Last: I would like to decompress the file into a buffer but it is becoming f... (by ostar2)
Function stuck
 
I've written some code to randomly generate probabilities: int Queue::car_per_hr() { sran...
[3 replies] Last: Ye used srand in my int main instead of calling it everytime car_per_h... (by JudyFaye)
Pages: 12345... 67
  Archived months: [aug2014]

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