15,300 Posted Topics
Re: >1 In 4 Americans Thinks The Sun Goes Around The Earth, Survey Says That's funny -- well maybe not ([link](http://www.ajc.com/news/news/national/1-4-americans-think-sun-revolves-around-earth/ndQBb/)). About 20% of American adults are functionally illiterate ([link](http://www.ajc.com/news/news/national/1-4-americans-think-sun-revolves-around-earth/ndQBb/)). | |
Re: [Here](http://www.cprogramming.com/c++book/?inl=ft-nhp) is a free c++ ebook for beginners that I just found. I haven't read it, but it looks promising. | |
Re: [URL="http://www.codexxi.com/index.html"]Some example free programs[/URL] for MS-DOS, MS-Windows in C and assembly | |
Dr. Robert Lanza write a book titled “Biocentrism: How Life and Consciousness Are the Keys to Understanding the Nature of the Universe“ which apparently (I have not read it, and wouldn't understand it even if I did) states that consciousness continues after the body dies. >The theory implies that death … | |
Re: >bought Windows 8 as XP is poor with SSD's You should have upgraded to Windows 7, not 8. I bought Windows 8 and couldn't get Microsoft Office 2012 to work on it, so I reinstalled Windows 7 and have Windows 8 in a desk drawer never to see the light … | |
Re: You are probably going to have to pay someone to write the program for you. And you will have to give him/her one of those modules to work with so that the program can be tested. Therre are many freelance web sites where you can hire a programmer. | |
Re: case statements must be constants. You can not use variables there [code] switch( some_variable ) { case 'a': // blabla break; case 'b': // blabla break; case 'c': case 'd': case 'e': // this for all three characters break; <etc. etc for each letter you want to support> } [/code] | |
Re: [QUOTE=Salem;935480][url]http://c-faq.com/ansi/exitvsreturn.html[/url][/QUOTE] >>Finally, the two forms are obviously not equivalent in a recursive call to main. But that's not supposed to happen. :) | |
Re: [QUOTE=danijohn;294394]Thanks for reply. You are probably right that I'm missing some goodies staying with an old compiler, but I don't want the cost of a new one, or learning a new environment. In spite of the bizarre error messages, it turned out to be a simple coding error.[/QUOTE] cost is … | |
Re: >It is impossible for any human> Zombis :) | |
Re: The only time I've ever seen goto useful is to break out of a very deeply nested set of loops. Too bad c++ didn't implement C's setjmp and longjmp functions because they would be similar to goto but could jump across functions. But of course that would be impossible in … | |
Re: Banfa -- gives very good explanations http://www.daniweb.com/members/724268/Banfa | |
Re: >>There was immense pressure to get this system rolling before a hard and somewhat unreasonable deadline, Huh? Ms Dani owns DaniWeb so there should be no pressure to upgrade, she is free to do what she wants when she wants to. Only Ms Dani makes the deadlines. But I'm not … ![]() | |
Re: You have to disable all those things in the BIOS -- when the notebook starts to boot press F2 or Del key before Windows starts. I downgraded my PC a couple weeks ago, all I had to change in the BIOS was disable Secure Boot, and I'm not sure that … | |
Re: or [URL=http://www.symantec.com/pcanywhere/Consumer/index.html]PCAnywhere[/URL] | |
Re: One of the best resources for MS-Windows programming examples, tutorials, and free code is found on [codeproject.com](http://www.codeproject.com/) | |
Re: [QUOTE=kwarnke;867803]Maybe it works with the system command: #include <stdio.h> #include <stdlib.h> int main() { /* not net send under vista, and msg is interactive*/ system("dir"); return 0; }[/QUOTE] [QUOTE=Creator07;868488]To generate a popup, you have to use MFC . ....[/QUOTE] You both flunked the course because you are both wrong. Out … | |
Re: Study [this tutorial](http://www.codeproject.com/Articles/24863/A-Simple-C-Client-Server-in-CORBA) | |
Re: The technical specification lays out the requirements for the project, AKA project design document. It contains great details of the project, such as screen shots, menus, and a detailed description of the purpose of the project. A project could consist of multiple programs which all work for some common purpose, … | |
Re: Windows 8 has made such changes pretty easy. There's an option in control panel to change default programs and file extension associations. | |
Re: #1: repaint the entire screen in the same color. Something like this: [code] RECT rect; HBRUSH hBrush; <snip> case WM_PAINT: hdc = BeginPaint(hWnd, &ps); GetWindowRect(hWnd,&rect); hBrush = CreateSolidBrush(RGB(255,0,0)); SelectObject(hdc,hBrush); FillRect(hdc, &rect, hBrush); EndPaint(hWnd, &ps); DeleteObject(hBrush); break; [/code] #2: I know of no way to do that. The program is created … | |
Re: Since this is school work, and the thread is over 3 years old, its not likely that the op will post the final program. You will just have to write it yourself. | |
Re: You could just read them into some array of structures or class then sort them in memory. If you want to know what a particular person signed up for then sort the items by name, not by type. | |
Re: Probably the fastest way to do that is to read all of file2 into an in-memory array(s). Then start reading file1 line by line. Read a line, search file2 array for employee ID, when found print to third file or to screen. Repeat that for each line in file1. That … | |
Re: It's now been four years since the original article was posted here. c++ is still alive and thirving languge. D?? I don't know a single person who uses it. | |
Re: I rather like the idea of rep and post counts dropping off after 6-12 months. What I did 8 years ago has little relevance today. I'm not very crazy about the idea of paying people (however little) to answer questions. I do it because I want to, not because you … | |
Re: There are a couple problems with that code 1. LPWSTR is a pointer, not a character, so LPWSTR buffer[255] creates an array of 255 pointers. Correction: `TCHAR buffer[255]` is an array of TCHAR characters, and TCHAR is defined as either char or wchar_t depending on whether the program is compiled … | |
Re: wish granted -- you get a computer with no motherboard, CPU, memory or hard drive. I wish to go on vacation to Australia. | |
Re: Because he has a drop-dead gorgous wife and takes no shit of anybody. Why is Austraila down under? Under what? | |
Re: Sorry Thinker but you program doesn't hack it. Its full of syntax errors and undeclared variables, and it just plain doesn't work right. Line 10 does NOT calculate the sum of the digits. If the input number is 15 then the sum of the digits is 1 + 5 = … | |
Re: My first password was probably "Waaaaaa!" -- when I was born :) | |
Re: Are you running Chrome under Windows or \*nix? In Windows 8.1 I used Task Manager to view the process memory and didn't notice that much memory being taken up by Chrome -- with only one tab for DaniWeb there were 3 processes, the largest consumed about 70Mg. After about 10 … | |
Re: link doesn't work | |
Re: My favorite is Chinese combo fried rice. My least is Greek and I've never eaten anything specifically from India or Ireland (I don't think so anyway). I see someone voted USA -- the only things I can think of that are specifically American are pot stew and maybe McDonalds. Although … | |
Re: The extraction operator >> does not read past white space (spaces and tabs). So if the name in the file contains a space your program can not work. you should replace " while (!myfile.eof())" with this: [code] while( myfile>>number>>name>>DOB>>sex>>residence ) { } [/code] Reason: eof() does not detect end-of-file until … | |
Re: you should probably update your tutorial to use current c++ standards -- The information is very very old and many of it obsolete. This makes it pretty difficult for new c++ programmers to weed through the chaff to get to the good stuff. | |
Re: vb is not an ide but a programming language, just like C# is a programming language. Probably the best IDE is Visual Studio. The Express version is free. | |
Re: The F*** bomb, because it can mean so many different things depending on the context in which it's used. But, unfortunately, many people just overuse it which just trivializes it. | |
Re: might be a dumb question -- but did you check your computer to see if those -I<path> paths actually exist? | |
![]() | Re: I just tried it and had a similar problem, but I just hit the back arrow located in the top left corner and it returned to the correct screen. There are a lot of pictures (icons) it has to download so if you have a slow internet connection it might … ![]() |
Re: To be similar to argv in main argument you need to allocate one more than count pointers, the last pointer is NULL. That will also let you pass argv to other functions without needing to also pass the number of strings it contains. Next, argv needs to have it's own … | |
Re: >include (iostream) --- wont let me do the less than sign It should be like this: `#include <iostream>` Post the code you have written so that we can help you with the part(s) you don't understand. | |
Re: The problem most likely is that after you enter the Choice you then press the Enter key. After line 25 the Enter key '\n' is still in the keyboard buffer because scanf() didn't remove it so the next time scanf() is called it appears to do nothing because it sees … | |
Re: I've been using two android devices for over 2 years now and have never encountered such a problem. One is a Samsung tablet and the other a Samsung smart phone (just purchased about 6 months ago). | |
Re: I assume you mean MS-Windows operating system. It all depends on the program, compiler and libraries you used. When you try to run the program on another computer does the os give you some errors, such as missing DLLs? Some compilers let you statically link all libraries so that it … ![]() | |
Re: did you forget to include iostream? #include <iostream> using std::cin; using std::cout; // the rest of your program goes here | |
Re: All messages are sent to the WinProc() procedure -- the first parameter to that function tells you which hWnd the message is for. In the case of wm_create the message is sent before the window becomes visible. | |
Re: >They can install pirated Window XP into thier computer. Wrong. Ending support does not end Microsoft's copyright ([link](http://www.copyright.gov/help/faq/faq-duration.html)). >it is alright or not to install pirated Windows XP Not. You could potentially be sued by Microsoft, fined and/or jailed for theft. |
The End.