General C++ Programming - July 2010 (Page 3)

NTLM Encryption
 
I am trying to convert a given string into an LM hash. Since there are no libraries (that I could find anyway) i went on wikipedia and am in the process of usin...
[14 replies] Last: yes thats what I used for the perl script (by justinformed)
stdint.h use question
 
is there a namespace alias I need to use in order to reference the fields in stdint.h? I included stdint.h in a program I'm using, and I'm trying to set a ...
[6 replies] Last: Dealing with these things in a portable way always gives me pause for ... (by kbw)
Error in compiling header files
 
Hi everyone..... I am using red hat linux server 5.1, and all the packages are installed. I dont have "list.h" (header file) in my gcc comipler, as well as th...
[14 replies] Last: You should post the code, the exact error message you're getting and h... (by Athar)
Cross platform programming with QT
 
I'm trying to enter the world of GUI programming, I keep reading that QT is cross platform. To what degree is it cross platform? Can I take code I wrote and com...
[3 replies] Last: and mobile devices (by yoyowinwin)
search text file to display line from that file
 
i have a homework assignment that states write a program that has an array of at least 10 string objects that hold people's names and phone numbers. Becky W...
[1 reply] : What specific problems are you having? I don't really want to compile ... (by Zhuge)
by sgssn
Numerical integration of data
 
Hello i have data blocks of measurement-data from an acceleration sensor. But I need the displacement. By integration of this data two times i should get th...
[4 replies] Last: I guess you have a second order ODE: d''u/dt = f(); u'(0) = k; u(0... (by memecs)
Detecting Virtualization
 
If it is possible how can i detect virtualizaton on 64bit virtual machines? In 32 bit system it can be with lower level (inline assembly) programming but in 64 ...
[2 replies] Last: http://www.cplusplus.com/forum/general/26387/ (by moorecm)
correct cast for a void *
 
I was wondering what the consensus is. I have a class blob which I pass to a callback of void * Is this the correct idiom to cast if I pass in a blob *...
[6 replies] Last: thank you people. thank you jsmith I will take a look at that code.... (by bigearsbilly)
How to code a function that finds roots of numbers?
 
I'm making a calculator and have so far made addition, subtraction, division, multiplication, raise to the power, and fractorial, but I want to make the option ...
[2 replies] Last: Thanks Athar, That's exactly what I was looking for :) (by CaptainBlood)
can anyone say what does this syntax is?
 
defineTypeNameAndDebug(SpalartAllmaras, 0); addToRunTimeSelectionTable(turbulenceModel, SpalartAllmaras, dictionary); // * * * * * * * * * * * * Private...
[1 reply] : tmp is a template class, specialised by class volScalarField. You s... (by kbw)
by JBtje
Packet Sniffer
 
Hello there, A few years ago I found the source of a packet sniffer for C++. After some editing, I was able to use it to read the TCP connection of a certain...
[1 reply] : Have a look at WinPCAP. That's a port of libpcap to Windows. libpcap... (by kbw)
Just load a text file in memory block
 
I have created a unsigned short TXTBuffer I want to put there an existing text file. Need soome code to do this Thanks all of you Regards Molocas
[2 replies] Last: #include <fstream> #include <iterator> #include <algorithm> #inc... (by Denis)
by pruns
output based on input...
 
I'm trying to make a program that gives an output in matrix format 2 columns but the rows depends on one of the input numbers. here is a copy of my code and In ...
[1 reply] : I don't quite understand your problem.... You want the output to be... (by attaboy)
C++ program to find largest prime factor of a number (1,2)
 
Please tell me the way to implement a c++ program to find the largest prime factor of a given number. A hint would work. Thank you
[21 replies] Last: Some theory: A number is prime if it cant be divided by any prime num... (by ne555)
C++ Tutorial Excercises
 
Hi, I'm starting a set of excercises and tutorials that will accompany the C++ tutorial here on this site. The goal is to start out (requiring no prior programm...
[9 replies] Last: Okay, so the question still stands, would anybody be intrested in a tu... (by und3rgroundh3ro)
by Leegit
Seg Fault from While Loop till Null
 
I am trying to loop through a char array until I hit the null character and I seem to be getting a segmentation fault on the while loop section... Here is co...
[1 reply] : There's nothing wrong with the code parts you posted, so the problem m... (by Athar)
Dynamic Programming
 
I am just unable to get the hang of dp. I know what I've to do but am just unable to implement it. E.g this practice problem from 'Codechef' http://www.codech...
[2 replies] Last: and how do I keep updating the colors of the mixtures for diff k and ... (by ne555)
string.at error
 
i need some advice i cant get the results im looking for and im completely lost. i want to take only the THIRD character of a 5 letter string and cout the corr...
[4 replies] Last: switch(item.at(2)==letter) This is either true or false, not B, W, ... (by ne555)
by zuwaka
2D Dynamic Arrays (1,2)
 
I'm having troubles with some code. I'm trying to implement a dynamic 2D vector class. I've been working on it for the past weeks, and nothing I've tried worked...
[31 replies] Last: That's exactly what my class would be. I'm not a fan of vector<vect... (by Disch)
by GMXeon
Nested structures in a function call
 
I'm attempting to initialize a structure in a function call, can this be done? The compiler simply gives me an error that it expects ')' before '{'. The code...
[5 replies] Last: ^_^ (by m4ster r0shi)
July 2010 Pages: 12345... 20
  Archived months: [jun2010] [aug2010]

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