|
Did you try
_getch?
Regards,
-Ron
Sincerely,
-Ron
|
|
|
|
|
Hi, does anyone know any code editor that is suitable for learning assembly programming language, C and C++ programming language? Because i'm busy with my task at workplace, i can't go check on the market. anybody know the url to download the editor for free to use on learning purpose only?
|
|
|
|
|
Try http://www.textpad.com.
This editor allows you to customize the syntax coloring for different types of documents. I have been using it for programming PLC's in a proprietary Assembly-like language. The syntax coloring is great. There is also synchronized scrolling, macro's, regex's and a lot of other nice stuff. But of course, it is just an editor.
Regards - PSMKB1110
vita non est vivere sed valere vita est
|
|
|
|
|
Thank you very much, it looks pretty good.
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
What is the syntax for a method that returns a pointer to a managed array? I don't know where to put the stars...
|
|
|
|
|
I have been trying for about a month now to get my computer to support php. The problem is, I downloaded the crap from php.net, and when I run the set-up in DOS, it con't find most the stuff!
..................
|
|
|
|
|
try this:
www.apachefriends.org
|
|
|
|
|
I started with C++ recently Basically i am trying to overload the >> operator but couldn't succeed.The aim is to parse the string into different values.Infact this was provided with IBM open classes but not present with standard C++ string
#include <iostream>
#include <string>
using namespace std;
#define DELIM '~'
main()
{
string S="2~R~10/01/03~Personal Watercraft~Pers. Watercraft~9.0500~";
string s1,s2,s3,s4,s5,s6;
S >> S1 >> DELIM >> S2 >> DELIM >> S3 >> DELIM >> S;
S >> S4 >> DELIM >> S5 >> DELIM >> S6 >> DELIM;
}
Basically i am expecting the values between delimiters to be populated itno s1,s2...
I have declared this fucntion as in IOC
#ifdef __IOC_ANSI_STREAM
friend std::istream& operator>>(std::istream& aStream, string& aString)
#else
friend istream& operator>>(istream& aStream, string& aString)
#endif
Can you experienced guys let me know how to implement this or what has to be done to acheive the desired values.Thanks a lot in advance
Thanks
Sas
|
|
|
|
|
I am working on development of an email system for large attachments. Since we cannot mail large attachments via mail.I want to develop an email system which automatically detects the size of an attachment and if its exceeding the LIMIT it splits the attachment and mails it to the user providing a .exe file or presupplied s/w for joining the splitted files.
I want a file splitter source code in c/c++/java for a reference and quicker development.
Can ne body tell where i can get???
thanks
ramki
|
|
|
|
|
Please help me create class display conception of trapezium , with functions : draw trapezium , move it , check if a point in it , etc...
Thanks if you write to me , bye!
I want to become a programmer.
|
|
|
|
|
Why did you show the ' '?
Maxwell Chen
|
|
|
|
|
I am using Asynchronous calls to a remote object in managed C++. The client is also managed C++ and uses delegates with BeginInvoke and EndInvoke. I have this all working and compiling fine so long as the parameters to the romote object are all input parameters. I can not figure out how to specify the delegate/BeginInvoke/EndInvoke with an output parameter. Is there an equivalent to the C# ref or out ? Can anyone provide an example of how to do this?
|
|
|
|
|
Here's a simple example:
#using <mscorlib.dll><br />
using namespace System;<br />
public __delegate Int32 FactorialCallback(Int32,Int32*);<br />
public __gc class Factorial{<br />
public:<br />
FactorialCallback *fc;<br />
Factorial(){<br />
this->fc=new FactorialCallback(this, GetFactorial);<br />
}<br />
Int32 GetFactorial(Int32 iSeed, Int32 *iNumberOfCircles){<br />
(*iNumberOfCircles)++;<br />
return (iSeed==0)?1:(GetFactorial(iSeed-1,iNumberOfCircles)*iSeed);<br />
}<br />
Void FactorialComplete(IAsyncResult *ar){<br />
Int32 iNumberOfCircles;<br />
Int32 iResult=this->fc->EndInvoke(&iNumberOfCircles,ar);<br />
Console::WriteLine(S"The result is {0}, nuber of circles is {1}",iResult.ToString(),(iNumberOfCircles-1).ToString());<br />
Console::Read();<br />
}<br />
};<br />
<br />
int _tmain()<br />
{<br />
Factorial *fact=new Factorial();<br />
Int32 dummy=0;<br />
AsyncCallback *ac=new AsyncCallback(fact,&Factorial::FactorialComplete);<br />
fact->fc->BeginInvoke(5,&dummy,ac,NULL);<br />
Console::WriteLine(S"Main complete");<br />
Console::Read();<br />
<br />
return 0;<br />
}
|
|
|
|
|
Hello,
I discovered Jay Nelson's article XML Commments for Managed C++ Applications (http://www.codeproject.com/dotnet/MCXDoc.asp) with great joy, as this is a pressing issue for me. However I have not been able to make the addin actually generate XML. There is no contact info for the author in the article or elsewhere that I can find. So...
Has anyone had success with this addin?
If the author is reading this thread, would he be willing to contact me?
Michael Kairys
SL Corporation
michael@sl.com
Michael Kairys
|
|
|
|
|
er anyone here knows how to translate java into C++?? really need help guyz...i'm workin on datastructure type classes like linkedlist,linkedstack and linkeddeque and soon, i'll be workin on hashing tables... plz..plz...plz..plz.. any help would be appreciated...
|
|
|
|
|
Look at this wonderful tutorial: Java to C++ Tutorial.
I started in C/C++. Java and C# were much easier to learn because they got plenty of syntactic sugar from C++
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
so u know C++ very well man?? i'm workin on datastructures more specifically on linkedlist as deque/linkedlist/stack as linkedlist and closed hashing...and i'm having some trouble with translating these datastructs to C++...
|
|
|
|
|
|
woah! tnx man!
|
|
|
|
|
Hello everybody,
I want you to help me.
This is the question :
In dynamic polymorphism , if you had a pointer point to base class , it also can point to derived classes.
Example :
class Base {};
class Derived_1 : public Base {};
class Derived_2 : public Base {};
class Derived_3 : public Base {};
int main()
{
Base *BPtr;
int choice;
cout << "Which object do you need(1,2,or 3) ?";
cin >> choice;
switch(choice)
{
case 1: BPtr = new Derived_1(); break;
case 2: BPtr = new Derived_2(); break;
case 3: BPtr = new Derived_3(); break;
default:
cout << "Error number";
} // switch
} // main
*** In the exam above , I used switch...case control , so I want to ask you : by what way , you don't use switch...case in that exam ?????
I want to become a programmer.
|
|
|
|
|
The key point in the code was not focused on switch but polymorphism. You should have a look at the downcasts, upcasts, and the usage about dynamic_cast<> in your textbooks.
If you insist to replace the switch in the code, try if - else.
Maxwell Chen
|
|
|
|
|
When I am writing a little endian 4 byte int for the integer value 10 it writes out 5 bytes: '0D 0A 00 00', which is an extra byte in the first position.
10 should be '0A 00 00' but no matter how I try to write it out it ends up with 0D (which is the value signed byte 13).
The program creating the file is a C program using the fwrite function:
int Total_Points_Qt;
fwrite(&Total_Points_Qt, 4, 1, File);
The value is in an integer. I have tried unsigned int as well and it does not make a difference.
The extra byte problem does not occur at the values 1-9 and goes away at 11 and does not reoccur again at any other integer value except 10.
Does anyone know why this happens?
Thanks,
Steven
|
|
|
|
|
How to get HDD fabric number in NET?
were rgrtgrtvrtrt rtrtb brt tyuhjghj hbhbnh hnjm 1234567?
|
|
|
|
|
Sub : How to use Amazon Web Services..
Hi all...
Please let me know How to start with amazon web services..
I'm not finding any XML or REST Query format to send request to amazon..
I've purchased Seller account but How to use that to upload Items..I don't know...
Please help me getting start..
I hope some one definatly know about this
e-mail if attachment at sumit_kapoor1980@hotmail.com
Thanks...
--Sumit Kapoor---
|
|
|
|
|
1) Wath is the corret way to use "put_Picture" for an Image control if I have the Path of the Picture to load (C++ MFC)?
2)How can I find the Ptah of the application that is running?
Thank's for all
Sorry for my English!!
Giulia
|
|
|
|