General C++ Programming - June 2014 (Page 18)

gamma of complex argument
 
Hi im trying to find the gamma function of a complex number. I see that <cmath> has the tgamma and lgamma function, but both are one argument only. Also I just ...
[1 reply] : GNU scientific library http://www.gnu.org/software/gsl/manual/html_nod... (by ats15)
Simulator written in C++
 
Hello, I am working on a simulator which is written in C++ and I need help with that. For example, I want to know how The data is being collected in this simul...
[no replies]
extracting string from text file
 
I have a program here that writes employee information into a text file called employee.txt. I don't have a problem writing into the text file. I'm supposed...
[7 replies] Last: @Chervil Thanks for your help. I got the program to work. Very much ap... (by closed account L092y60M)
by shaeri
C++11 variadic template templates
 
Hi there, Is there anyway to have a template template class with multi variadic templates something like this: template<template<typename...> class N...
[4 replies] Last: Thanks a lot for your answer! Your code allows any typenames for Netw... (by shaeri)
How to emulate an old x86 graphics card?
 
I've build a routine in my emulator that processes pixels one by one till vblank after which the frame is rendered using SDL. The rendering using SDL takes abou...
[no replies]
Implementing treesort
 
Trying to get my treesort function to execute but I'm getting a segmentation fault. Any help would be appreciated. Assignment Implement the TREESORT function...
[6 replies] Last: The sorted stuff is in sorter . The place you want to put it is data... (by Duthomhas)
How does this work?
 
I have been learning about the windows api recently and have come across code similar to the following. BOOL WINAPI GetClientRect( _In_ HWND hWnd, _Ou...
[1 reply] : WINAPI is probably a #define in a header file. See what that is and yo... (by dhayden)
Boost binding question
 
I am trying to compare strings (char*) using strcmp but I am having a hard time doing it with boost::bind. It compiles but it crashes when I run it. I have a s...
[2 replies] Last: Thanks you are right! I removed "shared_ptr<DeviceInfo>::value_type" a... (by jfc dev)
Type Conversion and Advice
 
Hello all. I am trying to practice C++, wrote a simple class, but encountered many problems with type conversions. Fortunately, I have solved these problems by ...
[3 replies] Last: Thank you very much, rmxhaha and AbstractionAnon, for your advices! Wi... (by nemecfc)
Help - Error printing the solution
 
The program is finished, but it doesn't print correctly the solution, at the screen, can somebody help me ending this code? //alumno.h #include <iostream...
[2 replies] Last: Thanks Chervil, really, I've solve the problem and learn to use strncp... (by jonanderdiez)
by BasV
Slow code hinting when using Boost headers
 
Hi everyone, I'm using Boost Geometry for my Visual studio 2012 project, and ever since I added it my code hints have been getting really slow. When I typ...
[7 replies] Last: Doing just that! (by BasV)
by dkaip
Curious behavior.
 
I have a project in that I have file real.h and all project it runs rightly. With the F11 in Code:: Blocks I create real.cpp and put as header #include “rea...
[5 replies] Last: Thank you very much. (by dkaip)
random number generator between 0 and 100
 
hello I have a random number generator that should genetate 2 numbers between 100 and 0. the first number works fine but the second doesn't, why? i1 = r...
[16 replies] Last: it was for some reason without the loop. just like i2 was before (by p33n kenan)
Using Loops or IF?
 
Hello. I am taking a beginner class on C++ and we have an assignment to make a 5 question, multiple-choice quiz with answers a-d using switch statements. If a u...
[2 replies] Last: I agree with the wildblue as you need to reuse the switch statement if... (by marcusrzheng)
by LunarB
Memory Scanner Only Sort of Works?
 
Didn't know how to remove this topic. But I got it working.
[2 replies] Last: so there might be a better way to do this, however, if this is just fo... (by Little Bobby Tables)
winsock, wininet, libcurl
 
Can anyone tell me which is better and the most well rounded to learn first for network programming in C++? Thanks.
[8 replies] Last: If you want to learn network programming, I'd recommend sockets. WinS... (by chamburger)
by ycai77
Why it is not needed to decorate a “const char *” with “extern” when sharing it cross multiple files
 
While reading C++ books, I learned that to share a const variable/object cross multiple files, we need to define the const variable once in one of the files, an...
[6 replies] Last: const char *ptr = "hello" or char const *ptr = "hello" defines mu... (by MiiNiPaa)
If Statements
 
Trying to figure out the IF statement. Really new, so this will be simple I'm sure. I'm essentially just trying to roll a 6 and 20 sided die. I want the stateme...
[7 replies] Last: == is a relational operator that compares its operands. The result ... (by keskiverto)
Using Z to exit
 
Not sure what am doing wrong on this program, trying to use atoi to hit 'Z' to exit from the console: < #include "stdafx.h" #include <iostream> using names...
[6 replies] Last: Also note that if the string doesn't contain a valid integer, atoi() w... (by Chervil)
Return Reference for derived function
 
I dont know what kind of return reference I have to put to override the following derived member function in C++: virtual SEntityPhysicalizeParams& GetPhysi...
[8 replies] Last: I stand corrected. (by helios)
June 2014 Pages: 1... 161718192021
  Archived months: [may2014] [jul2014]

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