15,300 Posted Topics
Re: [b]Post Since Last Visit[/b] I don't think works correctly. I was here this morning, left for about 30 minutes, came back and that link shows posts made 2 hours ago. | |
Re: If you don't post your code there is nothing anyone can do for you, except maybe give you a little sympathy. | |
| |
Re: are you seeing double? :cheesy: I don't see anything unusual in those threads. | |
![]() | Re: gotoxy() was NEVER EVER a standard c or c++ function, but it was a Borland-specific function that started with Turbo C. No other compiler that I know of implemented that function. See [URL="http://www.programmersheaven.com/c/MsgBoard/read.asp?Board=258&MsgID=353965&Setting=A9999F0001"]this[/URL] to implement the function yourself ![]() |
Re: [QUOTE=cusado;314814]well i used fout = fopen("%s.txt", "w"); but how do i represet "%s.txt" as the user's input? [/QUOTE] you already posted the answer to that question in your post #5. Just use variable filename [code=c] sprintf(filename,"%s.txt",line); // <<< from your previous post fout = fopen(filename, "w"); [/code] | |
Re: I don't know about phthon but I know that can be done in C or C++ using sockets. Computers attached to a LAN (Local Area Network) do not require internet service provider but others do. | |
Re: why do that in assembly language? Its a whole lot easier in one of the higher-level languages such as C, C++ and basic. And how to communicate with those depends on the operating system and the hardware manufacturer-- there is no standard way of doing it. | |
Re: This works, its essentially the same you had though. I added code to flush the keyboard buffer after each integer input. That may have been your problem. [code=c] #include <string> #include <vector> #include <iostream> using namespace std; class dt { public: int month,day,year; dt() {month = day = year = … | |
Re: 1. Yes its possible to do. 2. Your posting in C/C++ board so why would you not want to use that language? (other languages are also possible) 3. Time consuming for who? Depends on the experience of the person writing the program. 4. Probably not. | |
Re: 1. The problem is that, just like all other objects, tempState is destroyed when it goes out of scope and fillDatabase() runction returns to whoever called it. If you do not expicitely code the destructor c++ will write one for you. Why do you want tempState to live outside the … | |
Re: Lerner: A couple problems with the code you posted: >> 1. int numberstrings == 0; you need to use the assignment operator = instead of boolean operator ==.:mrgreen: >>5. store_string(char*string) This is a function prototype, not a function call | |
Re: use paper & pencil to do this problem. Final answer should be [code] a = 2 b = 1 c = 3 d = 5 [/code] | |
Re: The portable way is to use the functions in time.h. 1. get current time using time() function, which returns the number of seconds since some pre-determined data, normally 1 Jun 1970. ' 2. call localtime() to get a pointer to struct tm, which contains each element of date/time as integers. … | |
Re: how much education do you have already? Have you completed an MS, MA or MBA program? After another 10 years or so full-time experience in the work force you will probably have a good idea what you want to major in the Ph.D. program. Frankly, a Ph.D. isn't worth the … | |
Re: you can do this: [inlinecode]char* ptr = const_cast<char*>(param;)[/inlinecode], but that defeats the purpose of using const in the first place. Casting out the const should be avoided whenever possible. | |
Re: I saw that yesterday too using IE6. And I saw a couple problems (?) just now on both IE7 and FireFox 2.0.0.1. There is some white space (rectangle) in the upper-left corner where an add probably belongs, and in the lower-right, just beneath "Todays Posts" (no posts listed) | |
Re: If you really wrote that program then it should not be all that difficult for you to complete the assignment. Just add two more variables to hold the highest and lowest values. If however you did not write that code, then you are committing plagiarism (claiming something is your work … | |
Re: [QUOTE=Duki;313613]I would critique one thing... Typing in all caps, i.e., HIGHLY EXPERIENCED JAVA PROGRAMMER, does two things to your resume'... 1) Typing in caps makes the paper harder to read. We remember where we are in reading by the rise and fall in characters. Typing in all caps eliminates these; … | |
Re: There are too many holidays and this one we can do without. One doesn't need a holiday to show how much you love someone. | |
Re: stick with c++, the parts that are confusing now will eventually become clear to you. Nobody learns all that stuff over night. | |
Re: >>how do i make sure the student id becomes the output file name, using sprintf() to format the filename string [code] char filename[80]; sprintf(filename,"%d.txt", sudentID); [/code] >>and that the entered answers are printed into that specific file using fprintf() function. The second argument is the format string which tells fprintf() … | |
Re: c++ is NOT a requirement but C (or some other language) is. People have been writing GUI programs for years and years with only C programs. c++ classes will make GUI programming a bit easier, but is not absolutely necessary. *nix GUI and MS-Windows GUI are completely different, but there … | |
Re: I like that change -- now we can turn line numbers on and off as we please. Hope you keep this feature. :) | |
Re: This is compiled and run with VC++ 2005 Express with no errors. [code] class A; class Base { private: int m_x; public: friend A; Base() {m_x = 1;} }; class A : public Base { public: A() {m_x = 2;} int getX() {return m_x;} }; int main() { A a; … | |
Re: Your question has been asked before -- please read [URL="http://www.daniweb.com/techtalkforums/thread51744.html"]this thread[/URL]. | |
Re: Reminds me of [b]The Planet of the Apes[/b] and Charlston Heston. >>I guess I just finds the idea of humanity "destroying" itself somewhat funny You can start laughing when Iran sends a nuke or two to Isreal. Iran is probably the only nation at the moment crazy enough to do … | |
Re: you have to add a function or class *.c or *.cpp to the library before the compiler will create the .lib file. Just putting the *.h in the project is not sufficient -- there must be some executable code. And you will find the .lib file in <project name/debug or … | |
Re: why would you want to save folder shortcuts in a database table? When I delete the shortcut or folder it will just make the table obsolete. | |
Re: [QUOTE=campkev;192957]but it's NOT english. Exemplary is an adjective, not a noun. Anamemnis is a noun, not a verb.[/QUOTE] People should not try to get [b]cute[/b] with the English Language on boards that are read by many peoples around the world -- English is not the native language of many of … | |
Re: Score 66%, average error 89 miles. never was all that great in geography. | |
Re: Heres some reputation your way for being so kind.:) :) :) | |
| |
Re: [quote=cscgal] Regarding color changes, threads used to look like this: [url]www.daniweb.com/techtalkforums/getdaily.html[/url] And now threads look like this: [url]www.daniweb.com/techtalkforums/forum8.html[/url] [/quote] I like the new color scheme better than the old one. But I don't like [URL="http://www.daniweb.com/techtalkforums/forum2.html"]this[/URL] change because it doesn't give me as much information as the older version. | |
Re: If you can get a 4-year college degree, then do it. Computer programming is highly competetive so the more education you have the better off you will be. | |
Re: If you must do this in c++ then use MFC or some other GUI system as jamthwee mentioned. QT is another free one and portable between *nix and MS-Windows (probably MAC also). Note that none of these are trivial to learn -- MFC for example on average has about a … | |
Re: C++ compilers for MS-Windows operating system can compile either console programs, which normally opens a DOS-like window, or a GUI window like you see with your VB compiler. The reason is that many c++ programs do not need GUI windows because they do things that do not require a GUI … | |
Re: >> ch = cin.get(); you should use infine, not cin [code] ch = infile.get(); [/code] And thanks for taking the time to read the board's rules to use code tags correctly. Not many first-time posters do that. | |
Take [URL="http://www.daniweb.com/techtalkforums/thread68614.html"]this thread[/URL] as an example. I want to comment about it on this board instead of hijacking the original thread. How do all those obnoxious color codes get inserted into such posts? It looks like they were created by some other program then pasted into the post. That is … | |
Re: why store them in db? can't you just recreate the calendars whenever needed? If you want the calendars for storing other data in each date then you probably have a major table(s) design flaw. | |
Re: The problem might be the way your database makes string comparisons. Depending on what database you use you can probably set it to do either case sensitive or case insensitive comparisons. Also check the password that your program is actually sending to the db to make sure it has the … | |
Re: [URL="http://msdn2.microsoft.com/en-us/library/ms682438.aspx"]Here[/URL] is information you need. After creating a semaphore your program calls one of the wait functions to gain access to it. When the ReleaseSemaphore() is canned another thread that is waiting will be released. | |
Re: [QUOTE=Infarction;309757] I guess I don't qualify as an old-timer... *whistles*[/QUOTE] neither do I, at 46,588 | |
Re: [URL="http://www.daniweb.com/techtalkforums/thread14186.html"]This[/URL] might help. This is for WinCE operating system and may, or may not, work on MS-Windows. | |
Re: [QUOTE=akyprian;309773]And YOUR conclusion is: no matter what language you use or what code you write, final binaries will have the same speed ...[/quote] Not so -- bad compilers or unoptimized code will produce slower binaries. Different compilers will produce very different binaries (*.exe) even with the same source code. That … |
The End.