Type: Posts; User: andrey_zh
Search took 0.01 seconds.
November 18th, 2012, 08:57 AM
Indeed C++ doesn't provide any libraries for GUI by default. In Windows you can use WinAPI and MFC for GUI but in this case you'll lose portability. There are third-party widget toolkits for C++ -...
November 16th, 2012, 05:36 PM
You have to options, either track dependencies on your own (write Makefile etc.) or rely on your IDE.
Review extern and static keywords. Also don't forget about include guards or #pragma once.
November 22nd, 2010, 08:14 AM
It works great! Thanks! Thread resolved!
November 22nd, 2010, 05:49 AM
I'm solving one problem related to parsing of text files. It would be very convenient for me to read ifstream line by line at first, treat every line as string (preferably c++ string), then...
November 4th, 2010, 01:47 PM
That's my advice related to your post from 07:29 PM.
First, use batch (seems this is bash .sh in Linux) files.
Let your programs are named getUnique and getDuplicates.
Run 'em and stream...
November 4th, 2010, 01:30 PM
Well, run your program like "./myprogram >file1.txt".
From your program start another program with system( "./otherprogram >file2.txt" );
Compare file1.txt and file2.txt somehow.
November 4th, 2010, 01:26 PM
It's quite easy to do this without any redirection of streams.
How are you going to call your program?
P.S. You may use 'cat' command to print a file to console.
November 4th, 2010, 01:20 PM
I'm confused too.
If you just need to run a program from your code form a command and pass it to system():
system( "./runApp > abc.log" );
November 4th, 2010, 12:58 PM
You you are using Windows console use WinAPI only.
See this thread: http://www.codeguru.com/forum/showthread.php?t=472959
November 4th, 2010, 12:53 PM
Try system(): http://www.cplusplus.com/reference/clibrary/cstdlib/system/
November 4th, 2010, 12:51 PM
Could you recommend me a good profiler for Visual Studio 2005?
Whether there is a build in profiler in VS? (And how can I get to it?)
P.S. When I say 'good' profiler I mean an easy to...
Coz 2196550012 is out of range of int type! do like that (int)(2196550012L). If you have it in a file either read as long or as a String, then convert.
This is true for 32 bit representation,...
2196550012_10 = 82ECB17C_16
82_16 = 130
EC_16 = 236
B1_16 = 177
7C_16 = 124
Seems you have to use masks if you need to split an integer to four octets.
Do you need to covert a String to integer?
By the way "2196550012" can be represented with log2(2196550012) = 31.03.... => 32 bits.
You have 2 options:
1) Use library routines. You probably...
You are generally right in evaluation of my skills. I have written only one (!) program that uses databases so far. (That was a Web-"page" on PHP and SQL database.) Basically I already know some...
June 30th, 2010, 08:40 PM
First, not gigabytes but just about 200-500MB. (I'm writing this app for fun and to learn Java, so this is a very optimistic estimation of dictionary completeness.) I don't think that database size...
June 30th, 2010, 09:32 AM
I'm implementing a multilingual dictionary. (In fact, I have plans to extend it to machine translation system.) I need a database engine for it. Here is a list of my demands for the...
Just tested it on original Borland C++ 3.1. You're right, the period is longer than 232.
I'm surprised, this typo could survive through years and some printed books.
This was copied exactly as it is in Borland C++ Help, I believe it was lost before:
Have a look:
From Borland C++ 3.1 Help, article rand():
It used to be so in some old C standard (C89 I guess), then it was fixed.
A proposal: May be the period of generator is shorter than 1000. Let us number the given sequence from 1 to 1000. Search for 1000-th number among first 999. If found, say it's i-th check whether...
April 19th, 2010, 03:30 PM
I need to implement a general purpose graph and I've stuck with OOP design.
The graph is very general, just vertices and edges. Also I'll need to iterate through vertices and edges....
February 10th, 2010, 09:53 AM
For MinGW, use "-pedantic -Wall" flags to view all warnings.
January 10th, 2010, 10:21 AM
It looks like some activation scheme...
Well, consider using digital signatures.
Have a look at your hardware ids. You may sign them separately to allow user to change some hardware components....
November 15th, 2009, 04:33 PM
I didn't really understood what you mean. If you think that tongue is only a part of body than you are false, see http://en.wikipedia.org/wiki/Native_language, or...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.