|
Look carefully at
for(int j =0; j < wsize; j++)
{
if (isalpha(stemp[j]))
{
FMap[stemp] = offset;
}
}
Do you really want to add an entry to FMap every time you find an alpha character, or everytime you find a word with ALL the characters alpha?
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
cp9876 wrote: if (isalpha(stemp[j]))
humm!
|
|
|
|
|
Use _isascii
Come online at:-
jubinc@skype
|
|
|
|
|
Don Box wrote: _isascii
OP wanted to know if given character is in range a-z or A-Z . I wonder, why you have suggested this function ?
|
|
|
|
|
I had placed this question already
But didnt get any answer.
Please give some solution fast
hopefullyyyyyyyyyyyyyyyyyyy
shyam
|
|
|
|
|
sanjay kaledhonkar wrote:But didnt get any answer.
Please give some solution fast
hopefullyyyyyyyyyyyyyyyyyyy
what you want actual Lan Speed which can be easily found out by using GetIpStatisticsEx and if you want LanSpeed printed on LanCard .. i soubt you have to use WMI
|
|
|
|
|
Thanks is in order: sanjay kaledhonkar
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: Thanks is in order:
sanjay kaledhonkar
didn't understand what you want to say .. bro!
|
|
|
|
|
sanjay kaledhonkar wrote: getting LAN speed
You need to know the engine type of your LAN. If you are planning to increase the speed, use a High octane fuel. Tubeless radials will be an added advantage. If I were you, I would not mind spending a little more to get a couple of nitrogen boosters fixed to boost the speed. And you obviously need a speedometer LanoMeter to check the LAN speed. It is available in all leading automobile LanoMobile stores. See you at the international lan race at Tokyo. Bye for now.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
brahmma wrote: use a High octane fuel.
thats little but costly.. don't you think... but i like lanometer concept.. let make gui for same.. what do you say!
|
|
|
|
|
ThatsAlok wrote: but i like lanometer concept.. let make gui for same.. what do you say!
that is good. Shall we work together and write an article? Lanometer?
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
brahmma wrote: that is good. Shall we work together and write an article? Lanometer?
offcourse.. great Idea!
|
|
|
|
|
Hello,
i have an application in which i use a mysql-database.
the connection is done with the mysqlpp-api.
if i compile (visual studio 2005) the programm in debug mode everything works fine but if i compile the programm in release mode then the programm aborts when trying to create mysqlpp::Query object.
( mysqlpp::Query test = connection.query(); or mysqlpp::Query *test = new Query(connection); )
i get an access violation at adresss null.
i tried to disable all the optimizations in the release configuration. but it does not help.
could it be that i have to allocate extra memory befor trying to create an object?
is it possible to allocate initial e.g. 30mb of memory?
and if yes how?
thanks
|
|
|
|
|
There are different possibilities for this. I suggest you to read this[^] article by Joseph M. Newcomer .
|
|
|
|
|
tiflo wrote: is it possible to allocate initial e.g. 30mb of memory?
30 mb of memory.. he he he.. why do you need so large amount of memory
|
|
|
|
|
hai,
I am working in EVC for socket and am getting the follwoing errors .
I have included Ws2_32.lib and Winsock2.h .
error C2065: 'WSAAsyncGetHostByName' : undeclared identifier
error C2065: 'WSAAsyncSelect' : undeclared identifier
error C2065: 'WSACancelAsyncRequest' : undeclared identifier.
Thanks in advance..
Harshadha
|
|
|
|
|
may be because the INCL_WINSOCK_API_PROTOTYPES got define before including the winsock2.h . I dont know how it got define.
Try including "winsock2.h" above all other includes.( if ur using stdafx.h, put
#include winsock2.h above the first include in it)
nave
|
|
|
|
|
hai,
i added it still it has the same error....
thanks
Harshadha
|
|
|
|
|
try this. I am not sure whether this a right way to do. How ever if the error was because of the pblm I above mentioned, it will compile fine when wrote as below
#undef INCL_WINSOCK_API_PROTOTYPES<br />
#include <WinSock2.h>
nave
|
|
|
|
|
hai,
but still the error is there....
harshadha
|
|
|
|
|
Please forgive my ignorance - What is EVC?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Embedded Visual C++ - Visual Studio-like tool for C++ development for PocketPc and the like
Judy
|
|
|
|
|
Thanks Judy!
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
I wrote the following c++ code.
#include <iostream.h>
float meters, centimeters;
char choice;
main ()
{
cout<<endl;
cout<<"if="" you="" have="" meters="" to="" convert="" press="" m="" or="" m.="" if="" u="" centimeters="" c="" c";
="" cout<<endl;
="" switch(choice)
="" {
="" case('m'||'m'):=""
="" cout<<"enter="" the="" length="" in="" :";
="" cin="">>meters;
centimeters = (float) 100 * meters;
cout<<"The length in centimeters is";
cout<<centimeters <<="" endl<<endl;
="" break;
="" case('c'||'c'):
="" cout<<"enter="" the="" length="" in="" centimeters="" :";
="" cin="">>centimeters;
meters = centimeters/100;
cout<<"The Length in Meters is:";
cout<
|
|
|
|
|
T.RATHA KRISHNAN wrote: I got this error: "case value 1 already used".
It because of your logic. You are using boolean operation as case input. Which is repetitive. case should be different in switch statement.
|
|
|
|