- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 30
- Posts with Downvotes
- 15
- Downvoting Members
- 18
- Interests
- trips to different times
46 Posted Topics
this program contains a template function that can calculate determinant of any n by n matrix using permutations. it can be run in Visual C++ 2010 Express. | |
Re: Even the latest version of Borland C++ supports an old code written for turbo C 1992! the code had a simple misprint, I corrected: [CODE] #include<iostream.h> #include<conio.h> #include<iomanip.h> main() { char choice; char n, i; int y, z, sum; char x; clrscr(); loop: clrscr(); cout << endl << " Enter … | |
Hi I'm a newbie in linux. I installed Kubuntu 10.10. then tried to install VirtualBox. an error message appeared: g++ is not installed. the OS cannot be connected to the internet. where can I find and download a self-contained package for g++ to be installed on Kubuntu 10.10? | |
hello I'm writing a program. this program needs to create a few files & use them. where should it create the fils? the program should not create the files in the same folder as itself. because it will be in C:\Program Files where Windows Seven won't allow to create files … | |
my app needs to be run as admin, but a link to my app is in startup. when Windows 7 starts my app doesn't work! what should I do? | |
Re: thanks for sharing your code. but [icode]default[/icode] is a keyword! you used it as a variable name! I hardly can imagine a permutation program without recursion (but it is possible). I have a recursive solution! | |
Re: if you put all your program completely, I'll test it in my winxp! | |
I have a problem with this Window Procedure. in new versions of Windows OS, when I run the program, at first everything is painted & then paintings disappear (until the window receives the next paint message) [CODE] long _stdcall WndProc ( HWND hwnd, unsigned msg, unsigned wParam, long lParam ) … | |
Re: why don't you listen to VOA Special English!? they will fill your head with their great historical accidents (from 10 000 years ago). how much they were kind to American Indians! And that the atomic attack to Japan was only a personal mistake & it was completely peaceful! And it … | |
Re: >> how we make the software through c++? :) well, I buy or download a compiler, then I make a project & write a program in it. then I compile! ;) | |
Re: I can't understand your question clearly. but if you want to have five columns in output use a gotoxy function! (in VC you have to write gotoxy yourself) | |
Re: [QUOTE]hope u understand wut i mean to say [/QUOTE] unfortunately I can't understand what you mean! first I should know the text editor is in Console or Windows or somewhere else!? & you can use google to find links! | |
Re: I think finding a person who writes this program for you, is harder than writing it ;) if you start & put your code, then I'll be able to help you. | |
Re: why don't you use Visual C++ 2008 Express. it's free & it's compatiable with DirectX. You may make a dll with VC++ 2008 & use it in VC++ 6.0! | |
Re: but the code you put, is a Borland's VCL code. it's not a Visual C++ code! but I think programming with Borland's C++Builder is easier! ;) about arctan, etc there are appropriate functions in math.h | |
Re: Thanks. I needed such a program! but it has an error in my Borland compiler. to fix the error instead of: [CODE] HHOOK mouseHook = SetWindowsHookEx( WH_MOUSE_LL, /* Type of hook */ mouseHookProc, /* Hook process */ hInstance, /* Instance */ NULL); [/CODE] write: [CODE] HHOOK mouseHook = SetWindowsHookEx( WH_MOUSE_LL, … | |
This is the project of my program: [url]http://www.4shared.com/file/259396798/53d2a9dc/MRKtack.html[/url] it works in Visual C++ 2008 Express! please download & test it on your compiler. it is an API graphical program. It works in my Windows XP properly! but when I install it on Windows Seven/Vista there is a problem with painting! … | |
how can I complete/run the example on this page: [url]http://msdn.microsoft.com/en-us/library/ms644960(VS.85).aspx[/url] :icon_idea: | |
why does this program have an exception in VC++ 2008 Express? [CODE] #include <conio.h> //#include <C:\WString(v2.00).h> #include <iostream> #include <string> using namespace std; class WCS { public: wchar_t* string; WCS(const wstring& wstr) { wchar_t* c = new wchar_t [wstr.size() + 1]; wcscpy(c,wstr.c_str()); string = c; } ~WCS() { delete [] … | |
temporaries: Definition: a temporary is a C++ object which is niether a constant nor a variable, but is has type. example1: [CODE]TYPE f(int a) {...}[/CODE] f(2) is a temporary. it is niether a constant nor a variable but it has a type. example2: [CODE] class A { public: A(char ch) … | |
the process Foo is running. Foo calls a lot of functions (loaded somewhere in RAM). how can a programmer get the names & prototypes of all functions called (or loaded) by Foo? now suppose the programmer suceeded to identify the function Hitler(int,int) called by Foo. how can the programmer redirect … | |
I am writing a Windows API program. I noticed that WM_KEYDOWN message is not sent to the window procedure when I press Alt + Backspace. what message is sent when I press Alt + Backspace? | |
Re: on my computer VC++ 2008 Express fills about 5 GB Borland Developer Studio fills about 1.5 GB. but VC is faster than IE8 for me. I have Dev but use it only when I write portable code. codeblock has good appearance but is fancy. I use it only for normalizing … | |
Re: Dev is light & can be portable. VC is is equipped & has help. Borand C has good editor. Codeblock is elegant. I prefer C++Builder. | |
Re: [QUOTE=someone]If you override them with a matching definition, all uses will refer to your definition, not the implementation's.[/QUOTE] in fact, both implicit & explicit implemations for new & delete are called when you use them. new & delete are strange operators. I have a few examples about the order of … | |
when a window is not active (eg it is minimized, hidden, or under other windows) it does not receive mouse click messages. I am going to write a program that produces a few circular waves around mouse pointer whenever the user clicks. my program is always hidden & so it … | |
Re: I think it needs a help file. for example what is Cosine() doing in a string class?! how do u use it?! | |
Re: I think there must be a start position too! if I was to write such a program. i'd begin with a function like this: [CODE]bool areAdjacentPartOfPath(POINT p1, POINT p2) { if(CharAt(p1) != p || CharAt(p2) != p) return false; if( |p1.x - p2.x| + |p1.y - p2.y| == 1) return … | |
Re: [QUOTE=Shillz;1097301]yaar i think u r nt getting my prblm... i have windows vista in my laptop..it supports tcpp in small screen but does not run ny program hving graphics,i.e.,programs hving header file graphics.h... thats y i need to use notepad++ as suggested by my lecturar..but m not able to compile … | |
![]() | Re: my teacher taught me C & then i learned C++ self-taught. if you learn C it will be easier for you to solve problems yourself. if it is important for u. |
I need an API function that disconnects the computer from internet! does type of connection matter? eg dial up, adsl or.. :) | |
in Windows Task Manager --> Processes there is a list of running exe files. I am going to write a program that lists these running exe files. How can I obtain the list? I use Windows XP :$ & Windows API!:) | |
Re: [QUOTE]You are about 20 years too late. [/QUOTE] I know in some countries (eg Tur.. & I..) in some universities, some instructors use some old compilers to teach some thing in C++. [QUOTE]Hai..... May I know how to simply include external image file in Turobo C++? Where can I get … | |
I have region: [code] Region r[/code] and I have a point: [code]PointF p[/code] is there any method that determines whether p is in r? something like this [code] bool is_p_in_r = graphics.Determine(p,r); if(is_p_in_r) Execute("theMan.kil"); :) [/code] | |
what is the difference between memory allocated by [ICODE]GlobalAlloc[/ICODE] & memory allocated by [ICODE]new[/ICODE]. is GlobalAlloc used in C++ or is it for C? :) | |
I don't know exactly where this question should be asked...: I have a blog in blogger. each post has a comment part. I want to have a global comment part in sidebar so that all comments will be in one place.. in fact I need a link to some place … | |
is there any GDI or GDI+ function or method that copies part of client area? something like this: [CODE] char p[100000]; copy(hdc, p, rectangle(10,10,100,100)); paste(hdc, p, x, y); [/CODE] | |
when I right click a file ( with .ghh extension) a menu appears in Windows. How can I add a tab to it? when I select the tab my program runs & processes the file. (API programming) | |
what's wrong with this code in VC++ 2008 Ex [CODE] #include <conio.h> #include <iostream> using namespace std; class Allocate { private: void* v; unsigned n; __int8 dummy_ret; void* Alloc(unsigned& n) { void* ret; if(n == 0) ret = 0; else { ret = new(nothrow) char[n]; if(ret == 0) n = … | |
why does this have an exception in VC++ 2008 Express: [CODE]#include <conio.h> #include <iostream> using namespace std; class A { private: int a; class B { public: void f(); }; public: B b; //A(){} // default constructor class C { public: int a; }; B g(B); }; void A::B::f() { … | |
console.cpp: [CODE="c++"] #include <iostream> #include <string> #include <vector> using namespace std; template <typename T> T #ifndef _DEBUG & #endif val(const T& x); class A { private: public: void f(); }; void A::f() { val(1);// deleting val solves the problem } int main() { new A; cin.get(); } [/CODE] general.cpp: [CODE="c++"] … | |
please download the VC++ express 2008 project attached. it has linker errors. please help me solve the problem. | |
hi I know C++ & I can write almost every console program with C++. How long will it take me to learn C#? | |
Hi I have a question. [COLOR="Red"]The aswer is very short [/COLOR]I think. I got many different useful helps in different forums but [COLOR="Green"]still[/COLOR] my main question is [COLOR="green"]not answered clearly[/COLOR]! MY QUESTION: Can a [COLOR="Green"]not inline[/COLOR] [COLOR="Red"]method[/COLOR] have [COLOR="Red"]internal linkage[/COLOR]? This question is simple & clear (if you don't think … | |
I always get this error in internet explorer 8 (or 7): [url]http://fdc3iq.blu.livefilestore.com/y1pQ2KBrqRQcgSCWQcFnYCMDnouVpmmACik8avgBYc0XFrzVuJboCSR_dtfGTUnUgtALHOtok3SlCvPVVaDGBACFho1EEMmXvNk/9.bmp[/url] how can I solve the problem? |