- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
35 Posted Topics
Re: [url=http://www.parashift.com/c++-faq-lite/exceptions.html#faq-17.2]How can I handle a constructor that fails?[/url] | |
Re: There could be tons of reasons. Firstly, has this happened before? And when you say sleep mode, you mean the monitor refuses to turn on? Or the OS you're running enters sleep mode. I had some problems with my screen monitor awhile ago. How did I fix it? I got … | |
Re: Sounds like [url=http://www.daniweb.com/techtalkforums/announcement8-2.html]a request for us to do your homework[/url]. What have you done so far? | |
Re: Notepad isn't a compiler. But yes, compilers can compile code written in Notepad or JCreator. The point of using an Integrated Development Environment like JCreator is that it provides many useful tools, such as syntax highlighting, better tabs and a pleasant environment to work in. If you're a Java programmer, … | |
Re: [url=http://www.google.co.uk/search?q=C%2B%2B+array+tutorial&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-GB:official]Google has plenty of tutorials on arrays[/url]. :) | |
Re: Replace [code]infile >> temp;[/code] with [code]temp = infile.get() ;[/code] That should do the trick. :) | |
Re: This thread is a little old...but what the heck. I personally use JCreator for all my projects too. I agree that JBuilder is rather bulky, so I hardly ever use it. However, not all Swing applications or Java GUIs are as slow as that. I'm currently using an excellent [url=http://www.jedit.org/]Java … | |
Re: It appears to work for me. The version of my Dev-C++ IDE is 4.9.9.2. One should note that the first parameter is always the name of your program. This is the program I used for testing. [code]#include <stdio.h> int main(int argc, char *argv[]) { if ( argc >= 3 ) … | |
Re: Hmm, perhaps you need another newline all by itself? Try [code]// Assuming that I'm connecting to google... const char *request = "GET / HTTP/1.1\nHost: www.google.com\n\n"[/code] | |
Re: What is the name of your compiler? [url=http://www.talula.demon.co.uk/allegro/]Allegro[/url] is a game-programming library that supports DOS. If you give us more details about what kind of game you're making, it'll allows us to help you better. | |
Re: That's an interesting question. I've never done it myself before this, but this seems to work. [code]#include <windows.h> #include <stdio.h> template<class T> struct B ; template<class T> struct A { B<T> b ; T t ; }; template<class T> struct B { T t; }; int main() { A<int> a … | |
Re: [url=http://www.daniweb.com/techtalkforums/announcement8-2.html]We only give homework help to those who show effort[/url]. | |
Re: Was it [url=http://www.bluej.org/]bluej[/url]? I don't think there's an IDE for C++ like that. But if you're looking for a "regular" IDE, you can try [url=http://www.bloodshed.net/dev/devcpp.html]Dev-C++[/url]. | |
Re: I assume [url=http://www.cpp-home.com/forum/viewtopic.php?t=11203]the issue has been resolved[/url]? | |
Re: I learned my C from these books. I'm not saying they're the greatest (in fact they usually get bad reviews), but I think they worked very well for me. - Teach Yourself C in 21 Days - Teach Yourself C in 24 Hours This online tutorial about pointers and arrays … | |
Re: [quote="Jon182"]I was just wondering with the variables such as day and month as they are pointers how come the new and delete keywords don't have to be used.[/quote] The [i]day[/i] and [i]month[/i] variables are declared to be arrays of length 10. You only need to use new and delete[] if … | |
Re: The [url=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/setactivewindow.asp]SetActiveWindow[/url] function might also come in handy. | |
Re: You have my vote. It's hard to recommend a generic solution to a problem when you don't know if the user is using C or C++. | |
Re: I've posted something like this before [url=http://www.daniweb.com/techtalkforums/thread375.html]2 years ago[/url]. The downloads appear to be still there. | |
Re: The operator ^ is the [url=http://en.wikipedia.org/wiki/Bitwise_operation]bitwise XOR operator[/url], not a cubic operator. There isn't a cubic operator. You can get the 3rd power of a number by using * like this: [code]int n = 2 * 2 * 2 ;[/code] | |
Re: I don't think version 6 is still available for download. [url=http://lab.msdn.microsoft.com/express/visualc/default.aspx]Visual C++ 2005 Express Edition[/url] is though. However I don't think it comes with MFC/ATL/WTL and the platform sdk is a separate download. If you're looking into building Win32 applications using the Windows API, you may also want to consider … | |
Re: You're using the infamous <conio.h>, which is specific to Borland compilers. To port it to VC++, you'll have to either of the following: 1) Find a Visual C++ port for conio.h. I don't know if one exists. 2) Use the [url=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mslu/winprog/unicode_layer_console_functions.asp]Windows Console functions[/url], which I believe is used by conio … | |
| |
Re: [quote]Why's that?[/quote] He doesn't know how to program in it. :) | |
Re: Are you using Win32, MFC or one of the .NET classes to do your drawing? :) | |
Re: Is it a problem with compilation? Or a gray box just appears in the browser? These days, most Java applets have problems being viewed by browsers, especially Internet Explorer. Microsoft has not updated IE to support many features of Swing. You need to have the Java Plug-In isntalled first. | |
Re: If the java class files are in the same directory, you do not need to import them. | |
Re: You're either using a C compiler or you're compiling under C mode in a C++ compiler. The problem is that you can't declare a variable in a for() under C. Replace [code] for (int i=1;i<=oneNumber;i++) { if (oneNumber%i==0) // one factor found { countPositiveFactors++; // add 1 to count of … | |
Re: You can either make gal a global variable, or pass rewrite gas() so that it receives a pointer to a integer. Then pass gal to gas(). | |
Re: 1) Dev-C++ is sufficient if you want to learn C++ programming. Dev-C++ is actually a GUI wrapper for the MingW compiler. In other words, you're actually usng the [url=http://www.mingw.org/]MingW[/url] compiler. And the MingW compiler is the Windows port of the [url=http://www.gnu.org/software/gcc/gcc.html]GNU GCC compiler[/url], and it is very ISO/C++ compliant. 2) … | |
Re: Most of the time you don't need to use the bitwise operations. The only time I've had to operate with bits is combining the modes in the ifstream/ofstream constructors: [code] ifstream in( "myfile.txt", ios::in | ios::binary ) ;[/code] Also when I dealt with bitmaps and transparency, I had to use … | |
| |
Re: I found this problem of yours harder than expected. Firstly, I'm better at C++ libraries than the C libraries. So I had to revise all my C File I/O. Secondly, I hate parsing. Anyway here's my solution to your problem. My technique isn't perfect. It removes all C-style comments. (/* … | |
Re: [quote]how do i write, or create(via a wysiwyg program) an interactive executable program that has two 3d models stored on it, which will allow a user to do the following: [/quote] I don't know of any such WYSIWYG programs that creates executables of interactive 3D models. I think the closest … | |
Re: I've coded a simple program that lets the user control the position of a ball via the arrow keys. [img]http://www.abdn.ac.uk/~u02cll2/windowsapi/movingball.jpg[/img] The program can be downloaded [url=http://www.abdn.ac.uk/~u02cll2/windowsapi/MovingBall.exe]here[/url]. The source code can be viewed in HTML format [url=http://www.abdn.ac.uk/~u02cll2/windowsapi/ball.cpp.htm]here[/url]. |
The End.