General C++ Programming (Page 33)

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...
[9 replies] Last: thanks @Pured , it was so easy, i feel so stupid :-/ (by dualdark)
by Pured
Overloading operator << for use with iterator and array
 
Hello, I need help with an error with my overloaded operator <<. The following works for my vector ...
[2 replies] Last: Thank you, norm. I was struggling for such a long time, yet that's all... (by Pured)
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...
[4 replies] Last: Apparently, this can happen if _X86_ is in the list of predefined macr... (by helios)
looped in loop
 
i have the following program int a,b=100; do { cin>>a; cout<<endl; b=b-a; cout<<b; } ...
[3 replies] Last: You need to check it before you decrement it. if(b-a<0) b=0; els... (by Pured)
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...
[5 replies] Last: @LB, Wow. That was all it needed. Thank you very much! (by Pured)
Bubble sort strings from a 2D array.
 
Hello, I have a project where I have to create a Bubble sort that will ask the user to input name...
[no replies]
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)
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)
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]
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)
Pages: 1... 3132333435... 68
  Archived months: [sep2014]

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