Forum: C++ Jun 18th, 2008 |
| Replies: 3 Views: 2,489 Why dont you override the OnOK and OnCancel functions.??
Then have a centralized closing function ( in the main dlg ) which calls all the close functions in each class. |
Forum: C++ Jun 13th, 2008 |
| Replies: 3 Views: 2,000 Sorry Im not able to get your question.
1) Do you want to select an entire column by clicking on a cell???
2) Or do you want to select the entire row by clicking on a cell???
If your question... |
Forum: C++ Apr 25th, 2008 |
| Replies: 4 Views: 587 Hey hacker9801
You could also take a look at SQLite. Its very fast and be easily integrated with C++ |
Forum: C++ Apr 24th, 2008 |
| Replies: 13 Views: 1,243 Hey timdog345
include the following headers
#include <vector>
using namespace std; |
Forum: C++ Apr 17th, 2008 |
| Replies: 13 Views: 1,243 The code could look like
int nFirstNumber = 0;
int nSecondNumber = 0;
vector<int> vOddNumber;
int nEvenSum = 0;
int nSumOddSquare = 0; |
Forum: C++ Apr 2nd, 2008 |
| Replies: 3 Views: 554 Hope you have tried... SeekTobegin() |
Forum: C++ Mar 25th, 2008 |
| Replies: 2 Views: 5,939 Hey guys... find() would work if its a per-defined data type. Since you are having a structure ( user - defined data type you need implement your own find function
void Delete(std::string Name,... |
Forum: C++ Mar 24th, 2008 |
| Replies: 6 Views: 1,167 As mentioned by bugmenot this is how you do it.
# include <iostream>
# include <cmath>
# include <iomanip>
using namespace std;
int main()
{
int score, days; |
Forum: C++ Mar 24th, 2008 |
| Replies: 6 Views: 853 The best thing you ca try is a vector of strings
#include <vector>
#include <string>
using namespace std;
int main()
{ |
Forum: C++ Mar 24th, 2008 |
| Replies: 8 Views: 976 Probably this might work for you
const string strDigit = "0123456789";
const string strFloat = ".0123456789";
string strInput; // This the input string.
//// Logic
int nPos = -1; |
Forum: C++ Mar 24th, 2008 |
| Replies: 3 Views: 897 One of the efficient way of sorting is using a multi map. Use the field on which to sort as the key. Fill the multi-map and retrieve it. Your data will be sorted |
Forum: C++ Mar 18th, 2008 |
| Replies: 2 Views: 5,799 This is an unsigned integer type used to represent the sizes of objects. The result of the sizeof operator is of this type, and functions such as malloc and memcpy accept arguments of this type to... |
Forum: C++ Jan 24th, 2008 |
| Replies: 8 Views: 3,673 You are right.. the best way to measure time is to have a timer.
Dont do it manually..... Do it programatically...
// Measuring performance
clock_t commence,complete;
commence=clock();
... |
Forum: C++ Jan 24th, 2008 |
| Replies: 8 Views: 3,673 First of all the performance for a piece of code can be measured by the time it takes and the memory it cosumes. I've been working on code optimization and memory management for over 8 months now and... |
Forum: C++ Jan 18th, 2008 |
| Replies: 1 Views: 2,505 As I understand your problem there are two ways you could proceed...
Scenario 1:
If you are going to lookup ( search ) for words within the vector i would recommend you to do a little change in... |
Forum: C++ Jan 8th, 2008 |
| Replies: 47 Views: 65,043 The most efficient way for swapping whole numbers is
int a = 10;
int b = 15;
a ^= b;
b ^= a;
a ^= b;
y because xor is an assembly level instruction and its much faster than any move... |
Forum: C Jan 8th, 2008 |
| Replies: 4 Views: 942 For better performance if the no.of elements is very large us a large primary value as the hash key for better hashing. |
Forum: C++ Dec 22nd, 2007 |
| Replies: 4 Views: 1,353 Dude.. Try this
#include <string>
using namespace std; |
Forum: C++ Dec 22nd, 2007 |
| Replies: 54 Views: 76,650 W.r.t std::vector.... Especially while loading ( doing a push_back )if u already know the the number of elements to be inserted then u can reserve it before u start loading. Use the reserve(...)... |
Forum: Community Introductions Dec 21st, 2007 |
| Replies: 2 Views: 404 Hi Everyone Im a Software developer working in VC++. My forte is memory management and performance enhancement. Im good with algorithms. Thats it.. This is me.. im looking forward to gain a lot from... |
Forum: IT Professionals' Lounge Dec 20th, 2007 |
| Replies: 107 Views: 15,783 |
Forum: IT Professionals' Lounge Dec 20th, 2007 |
| Replies: 5 Views: 2,617 These days the term 'Programmer' and 'Developer' is been used inter-changeably.
Here is the difference between programmer and developer...
Programmer: One who write codes and do some amount of... |