Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~7K People Reached
Favorite Forums
Favorite Tags
c x 7
java x 6
c++ x 4
Member Avatar for perlsu

Can anyone help me to get the estimate value of float value 1001.27124 to 1001.27? Math.round(float) function return the int value. But I want to get float value result with 2 decimal point; Thanks in advance.

Member Avatar for mubin_89
1
4K
Member Avatar for perlsu

I would like to know whether the dynamic memory pointer is still available even after freeing the allocated memory. If I want to allocate and deallocate so many times within a loop , I receive memory corruption. Pls help me how I should do.If I call "free" more than one …

Member Avatar for Narue
0
94
Member Avatar for perlsu

I create the dynamic array with malloc and assign the last char to NULL. When I assign the NULL character, the warning message as follow appear: `'=' : 'unsigned char ' differs in levels of indirection from 'void *'` The code is as follows: void main() { const char sendText[] …

Member Avatar for Narue
0
389
Member Avatar for perlsu

I want to change isOpen variable in main function from threadfun. But , the following code doesn't change the isOpen value in main fun . So, main stay forever in while loop even though the thread fun finished. Thanks a lot in advance. Rgds, perlsu #include <windows.h> #include <process.h> /* …

Member Avatar for Salem
0
169
Member Avatar for perlsu

I have a problem in converting char to integer. My code is as follow: char lang [2][4] ={"en","fr"}; char ch = lang[0][0]; int i = sprintf("%d",ch); //want to get integer value of 'e' in string "en" ch = lang[0][1]; int j = sprintf("%d",ch); The error is "sprintf cannot accept parameter …

Member Avatar for Narue
0
825
Member Avatar for perlsu

I use Win 32 API for thread creation : unsigned long _beginthread( void( __cdecl *start_address )( void * ), unsigned stack_size, void *arglist ); How do I pass the multiple parameters to arglist? Thanks a lot. Rgds, perlsu

Member Avatar for WolfPack
0
192
Member Avatar for perlsu

I use CSocket with send() and recv() to send and receive structure packets of type Packet as follows: class Packet { int dataLen; char data[1024]; } packet; I tried but the received structure elements contained garbage. What would the code be on the send and receive sides of the app …

0
67
Member Avatar for perlsu

Hi all, My csocket program is as follow. The program run properly but the server don't wait the message from client and the client also don't send. Can anyone help me what's the problem in client server communciation API. Thanks a lot in advance. #include <afxwin.h> // MFC core and …

Member Avatar for WolfPack
0
233
Member Avatar for perlsu

When I build my project I get an error in the excpt.h header file. The build error tells me that there is a missing ';' before 'string' at the line in excpt.h that reads extern "C" { Another error is "missing storage-class or type specifiers" and "fatal error C1004: unexpected …

Member Avatar for Ancient Dragon
0
129
Member Avatar for perlsu

I want to run the visual C++ projects with the command line arguments. How can I give these arguments in project settings? or How can I run these project from command prompt? Thanks!

Member Avatar for WolfPack
0
132
Member Avatar for perlsu

I'm trying to compile a program and the 3 linker errors I get are: Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Can anyone help me. Thanks., rgds, perlsu

Member Avatar for Narue
0
52
Member Avatar for perlsu

When I run my program, the following error occurs. If anyone knows how to solve this error, pls help me. Thanks a lot in advance. Rgds, perlsu fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1794) Please choose the Technical Support command on the Visual C++ Help menu, …

Member Avatar for SpS
0
192
Member Avatar for perlsu

Hi I got runtime error as "Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ". How can I solve this problem? Can anyone explain me why this problem occurs? Thanks in advance.

Member Avatar for jwenting
0
64
Member Avatar for perlsu

Hi I want to replace "ta,at,an,bc" in main string {ta,at,an,bc,ta,at,an,bc,ta,at,an,bc,ef,ta,at,an,bc,ta,at,an,bc" with (ta at an bc)*.The result array should be "(ta at an bc)*,e,(ta at an bc)*". Can anyone give me some hint? Thanks in advance.

Member Avatar for NPH
0
158
Member Avatar for perlsu

Hi I got the error for possibleseq array . The error is java.lang.NullPointerException. As java doesn't support pointer, when want to use dynamic array, how I can use. The array length cannot know exactly . It depends on the possible subsequences. So, Do I count the possible sequences in advance …

Member Avatar for perlsu
0
127
Member Avatar for perlsu

Hi I need to find the repeated substring in string with repeated times = 2. Can anyone help me some hint? Thanks in advance. e.g, input string = abcdcbcbcada repeated string with repeated times 2 = bc

Member Avatar for chrisbliss18
0
101