15,300 Posted Topics

Member Avatar for vegaseat

>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/)).

Member Avatar for vegaseat
11
9K
Member Avatar for Dave Sinkula

[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.

Member Avatar for shahidali6
11
10K
Member Avatar for ~s.o.s~

[URL="http://www.codexxi.com/index.html"]Some example free programs[/URL] for MS-DOS, MS-Windows in C and assembly

Member Avatar for mack1
29
5K
Member Avatar for Ancient Dragon

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 …

Member Avatar for 45ish
0
1K
Member Avatar for happygeek

>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 …

Member Avatar for XP78USER
6
10K
Member Avatar for Strange&Evil

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.

Member Avatar for Nathan_5
0
233
Member Avatar for robski

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]

Member Avatar for ROMEO VINEET
0
372
Member Avatar for eskalemberg00
Member Avatar for HiHe
0
153
Member Avatar for ganesh_bala

[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. :)

Member Avatar for chandanraj
0
703
Member Avatar for danijohn

[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 …

Member Avatar for alifriend7
0
599
Member Avatar for sham
Member Avatar for Learner010

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 …

Member Avatar for Markland
7
708
Member Avatar for happygeek

Banfa -- gives very good explanations http://www.daniweb.com/members/724268/Banfa

Member Avatar for XP78USER
0
612
Member Avatar for rubberman

>>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 …

Member Avatar for Warrens80
0
275
Member Avatar for Oneldinho

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 …

Member Avatar for Kelly Burby
0
518
Member Avatar for Ghost
Member Avatar for adnan_6
0
2K
Member Avatar for Ketsuekiame

One of the best resources for MS-Windows programming examples, tutorials, and free code is found on [codeproject.com](http://www.codeproject.com/)

Member Avatar for overwraith
15
1K
Member Avatar for riahc3

[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 …

Member Avatar for tirumalai
0
9K
Member Avatar for hannahaddad

Study [this tutorial](http://www.codeproject.com/Articles/24863/A-Simple-C-Client-Server-in-CORBA)

Member Avatar for Hector73
0
452
Member Avatar for ayagi

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, …

Member Avatar for mreza
0
175
Member Avatar for LogsdonTechnics

Windows 8 has made such changes pretty easy. There's an option in control panel to change default programs and file extension associations.

Member Avatar for Brouss
-1
1K
Member Avatar for prabhjitsw

#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 …

Member Avatar for amit_26
0
1K
Member Avatar for zandiago

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.

Member Avatar for NathanOliver
0
9K
Member Avatar for nikiki

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.

Member Avatar for Jack_11
0
211
Member Avatar for charan0713

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 …

Member Avatar for glenn_3
0
132
Member Avatar for mikeandike22

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.

Member Avatar for The Old Man
1
476
Member Avatar for Dani

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 …

Member Avatar for Dani
0
2K
Member Avatar for CodyOebel

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 …

Member Avatar for CodyOebel
0
676
Member Avatar for abelLazm

wish granted -- you get a computer with no motherboard, CPU, memory or hard drive. I wish to go on vacation to Australia.

Member Avatar for James_40
8
9K
Member Avatar for awesomelemonade

Because he has a drop-dead gorgous wife and takes no shit of anybody. Why is Austraila down under? Under what?

Member Avatar for Slavi
1
2K
Member Avatar for Adnan S.

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 = …

Member Avatar for sneekula
0
960
Member Avatar for PrimePackster
Member Avatar for slavica.k
-1
206
Member Avatar for mike_2000_17

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 …

Member Avatar for mike_2000_17
0
1K
Member Avatar for zapman2003
Member Avatar for Lardmeister

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 …

Member Avatar for vegaseat
1
298
Member Avatar for hui

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 …

Member Avatar for JessiE_03
0
180
Member Avatar for FireNet

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.

Member Avatar for Swalih
5
12K
Member Avatar for Reapt

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.

Member Avatar for JOSheaIV
0
264
Member Avatar for ddanbe

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.

Member Avatar for bumsfeld
0
1K
Member Avatar for bops

might be a dumb question -- but did you check your computer to see if those -I<path> paths actually exist?

Member Avatar for muhammad raees
0
29K
Member Avatar for humorousone

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 …

Member Avatar for humorousone
0
328
Member Avatar for jephthah
Member Avatar for NardCake

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 …

Member Avatar for dinad578
1
5K
Member Avatar for MrSONOFAHIPPY

>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.

Member Avatar for Erick02
-1
1K
Member Avatar for kartikeswar.parida

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 …

Member Avatar for sanjulovers
0
258
Member Avatar for happygeek

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).

Member Avatar for Kelly Burby
1
384
Member Avatar for Katangka

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 …

Member Avatar for misi
1
10K
Member Avatar for TommyTee

did you forget to include iostream? #include <iostream> using std::cin; using std::cout; // the rest of your program goes here

Member Avatar for David W
0
2K
Member Avatar for cambalinho

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.

Member Avatar for cambalinho
0
615
Member Avatar for khakilang

>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.

Member Avatar for MidiMagic
0
356

The End.