General C++ Programming - February 2011 (Page 24)

how can convert current date to miliseconds from 1970(epoch actually)?
 
how can convert current date to miliseconds from 1970(epoch actually)?
[2 replies] Last: There isn't a portable way because different systems have different ca... (by kbw)
by Jake94
Blender Animations
 
Hey guys, I was looking into game development, and I stumbled cross DirectX, Blender, and C++ to program in. I've already looked into C++ and DirectX, and I ...
[8 replies] Last: Thanks , and I'll have to check out those links. I already looked over... (by Jake94)
How can I convert number of seconds since 1970 to DateTime in c++?
 
Hi, I am trying to convert 1296575549:573352(of type std::string) into date time. The left part of the colon is in seconds and the right part in micro s...
[2 replies] Last: Thanks kb (by subrat7551)
by jr8rdt
Where can I find C compiler?
 
seems vs 2005, 2008, and 2010 don't have it anymore Where can I find C compiler? Thanks
[10 replies] Last: seems vs 2005, 2008, and 2010 don't have it anymore They are C and C+... (by kbw)
String bad pointers in Vector
 
I have following piee of code - std::string sInput = "http://www.cplusplus.com/forum/post.cgi?w=new&i=854"; vector<std::string> sStr; vector<std::...
[1 reply] : Firstly when printf says that with a %s parameter it can print a strin... (by hamsterman)
two dimensional circular buffer?
 
Hello everyone, I am trying to implement a circular fifo buffer that handles a column of numbers. At regular intervals, a column of numbers must be read into th...
[3 replies] Last: Thanks guys, that gives me a lot to work with. (by siegel14159265)
Rectangle inside another Rectanle Class Question
 
I'm wondering if my formula for computing the function looks right..? Below is my code: Rectangle2D r1(2, 2, 5.5, 4.9); // Instantiate r1 object ...
[2 replies] Last: I get what you mean. Thanks! (by kraigballa)
by fafner
passing 'Foo' as 'this' argument ... discards qualifiers
 
Ok, I've been up all night, my head is swimming and I'm getting complete nonsense from g++. So please excuse me if this is a stupid question :p The error mes...
[4 replies] Last: Disch, I owe you my life;) I plan to collect March 5th, 2013 M... (by Disch)
by aatwo
mySql
 
Hey guys. Could anyone recommend a well documented and easy to use, cross-platform c++ library for accessing a mySql database? I have found mysql++ which I c...
[3 replies] Last: brilliant. thanks for the reply :) mysql++ it is :D (by aatwo)
enum problems in fstream
 
Hello all. enum TransactionType {Add, Delete, ChangeOnhand, ChangePrice}; . . . struct BookRec { long isbn; String name; S...
[16 replies] Last: If someone could explain why changing a long to an unsigned int sudden... (by slayer5x)
by J0kerz
Web Automation Library
 
Hi there, I am looking for a C++ library for creating, attaching to, reading from and manipulating Internet Explorer/Firefox/etc... Actually the Library coul...
[no replies]
Problems writing to file
 
Okay, so I have written an exercise using a number of functions to learn array manipulation. I've got the exact output I need and want using cout statements bu...
[2 replies] Last: Okay...I fixed it by moving my ifstream and ofstream declarations outs... (by newberrydc)
rand function called from a static function
 
Hello all, I have a class with a static method that calls the rand function. This class is instantiated several times, for any object I would like that rand...
[4 replies] Last: It's true, thanks. I was confused after reading this: http://www.c... (by bbprogrammer)
about string function
 
do you think this function is safe? string getValue() { string val = "aaa"; return val; } It seems ok, but is the val a temporary object and...
[14 replies] Last: I am not sure which book covers exactly those things. There is mention... (by simeonz)
Looped Functions
 
Hi Is it possible to write a loop as a function, and then is it possible to use two of such loop functions to create a double loop. My thinking is that i...
[8 replies] Last: Simeonz I am not sure how I would implement that for matrices. ult... (by angelliefling)
any algorithms for token reassembly?
 
http://img211.imageshack.us/img211/7775/42287652.jpg am creating a spam filter but I notice many spammers like to use delimiters like whitespace, comma, etc ...
[1 reply] : A better way to deal with this particular problem is to see if the wor... (by PanGalactic)
nice gnu errors
 
There's a filter one can apply to gnu C++ error messages. I can't for the life of me remember what it is called, cannot find it with google, I know it's on...
[7 replies] Last: No, no, I get lots of compile errors :) Some of them several hundred ... (by jsmith)
Can i give a function as a parameter?
 
Hi! I have a quiet simple question. I have a class, which represents curves, it has an Xaxis vector and an Yaxis vector. I would like to make a constructor f...
[2 replies] Last: Thanks a lot, it works. (by emribali)
by JoR
assign zero sized array
 
Hello. I'm using a library (allegro) that uses zero size arrays in internal structs, I want to assign another array to it. I've reduced the problem to this c...
[3 replies] Last: It means the structure is a header immediately followed by an array o... (by kbw)
allegro "simple collision" issues
 
I've been having a hard time trying to figure out how to make a correct response when a collision is detected. The below code works perfectly on my com...
[3 replies] Last: Well what you are looking at is collision resolution, one of the most ... (by ultifinitus)
February 2011 Pages: 1... 22232425
  Archived months: [jan2011] [mar2011]

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