Forum: C++ Apr 9th, 2009 |
| Replies: 6 Views: 319 You can just see if AWUTD is y or n and display what you want.
cout<<"Patients Name:"<<Pname<<endl;
cout<<"Patients Age:"<<age<<endl;
cout<<"Patients Current Employer:"<<CEmployer<<endl;
... |
Forum: C++ Apr 9th, 2009 |
| Replies: 6 Views: 319 Change
if(AWUTD=='y'||'Y')
{
cout<<"Please Specify:"<<endl;
getline (cin, AWUTDspecification);
}
else if (AWUTD=='n'||'N')
{
cout<<endl; |
Forum: C++ Mar 4th, 2009 |
| Replies: 2 Views: 455 |
Forum: C++ Mar 4th, 2009 |
| Replies: 2 Views: 455 Hi, I'm reading the header from bitmaps. When I add up everything in a struct I've made, it comes out to 54 bytes. When I do a sizeof(BHeader), it says it's 56 bytes. It adds two null bytes after the... |
Forum: C++ Feb 17th, 2009 |
| Replies: 11 Views: 631 http://sourceforge.net/project/showfiles.php?group_id=2435 |
Forum: C++ Feb 8th, 2009 |
| Replies: 1 Views: 704 Hi, I'm making a program that will get input from a user's microphone, send it to another user with a socket, and play it. It's like a VoIP thing. I can send data using a socket, but I have no idea... |
Forum: C++ Jan 24th, 2009 |
| Replies: 7 Views: 407 |
Forum: C++ Jan 24th, 2009 |
| Replies: 7 Views: 407 I switched from Dev-C++ to Code::Blocks. No difference in compiler (I use MinGW), but I like the GUI a lot more than Dev's. |
Forum: C++ Jan 22nd, 2009 |
| Replies: 5 Views: 828 I found this http://www.codeproject.com/KB/IP/sniffer.aspx. This is what I wanted to do. |
Forum: C++ Jan 22nd, 2009 |
| Replies: 5 Views: 828 1. The port doesn't have to be 1337, it was just an example
2. Thanks pipaman, I'll try that |
Forum: C++ Jan 21st, 2009 |
| Replies: 5 Views: 828 Hi, I was wondering how you would intercept data on a given port without interrupting it in WINSOCK. Like if computer A sent computer B "hi" on port 1337 and it was received on a server program. How... |
Forum: C++ Jan 17th, 2009 |
| Replies: 6 Views: 1,207 |
Forum: C++ Jan 17th, 2009 |
| Replies: 6 Views: 1,207 You can also do:
#include <iostream>
#include <conio.h>
int main()
{
std::cout << "HELLO WORLD!!!!!!!111";
getch(); |
Forum: C++ Jan 5th, 2009 |
| Replies: 2 Views: 1,732 Do you need help with anything? If you're just posting this and don't need help, you could put it into the code snippets section. |
Forum: C++ Dec 23rd, 2008 |
| Replies: 15 Views: 1,086 |
Forum: C++ Dec 22nd, 2008 |
| Replies: 1 Views: 378 It compiles fine with Code::Blocks and MinGW. You have to link with libwinmm.a if you have MinGW or winmm.lib for anything else. |
Forum: C++ Dec 21st, 2008 |
| Replies: 6 Views: 539 I have no problem with WINSOCK, I just wanted to know if there are any other ways to use sockets on Windows. I could probably get cygwin, too. |
Forum: C++ Dec 21st, 2008 |
| Replies: 2 Views: 531 After messing with the program for a while, I found that recv will return 0 if it's done. Is this correct? |
Forum: C++ Dec 21st, 2008 |
| Replies: 2 Views: 531 Hi, I'm using WinSock, and am making a function to receive data. How can I know when I have reached the end of the data that I'm receiving. Like, if I send "GET /" to www.google.com on port 80, I... |
Forum: C++ Dec 20th, 2008 |
| Replies: 6 Views: 539 So I am doomed to WINSOCK? |
Forum: C++ Dec 20th, 2008 |
| Replies: 6 Views: 539 I installed Code::Blocks, and I set my compiler as MinGW which is installed on my computer, but there still is not a <sys/socket.h> include, which compiler should I install. I'm on Windows XP Pro SP2... |
Forum: C++ Dec 18th, 2008 |
| Replies: 6 Views: 539 Hi, is there a socket library besides WINSOCK that I can use with Dev-C++. I don't have a <sys\socket.h> include. Is there a devpak that I can get, or am I doomed to WINSOCK? |
Forum: C++ Nov 29th, 2008 |
| Replies: 4 Views: 322 On this line:
int holdu, holdc, p, i,;
take out the comma after the i:
int holdu, holdc, p, i; |
Forum: C++ Nov 23rd, 2008 |
| Replies: 1 Views: 271 To export code as HTML, do File->Export->To HTML. If I interpreted your second question right, to write output from your program to an HTML file, just do some file I/O. |
Forum: C++ Nov 20th, 2008 |
| Replies: 14 Views: 1,203 I was just curious, I absolutely do not want to make any type of virus, trojan, or malware. |
Forum: C++ Nov 20th, 2008 |
| Replies: 14 Views: 1,203 So there's absolutely no way possible for the average person to write to it? |
Forum: C++ Nov 20th, 2008 |
| Replies: 14 Views: 1,203 Hi, I was told that you can crash Windows in C++ or C by "corrupting the kernel", and I wanted to know if this was actually possible. If anyone knows if this is possible, or how it happens, please... |
Forum: C++ Oct 25th, 2008 |
| Replies: 9 Views: 705 Hello is spelled without the w. =)
Also, trigonometry is the way to go. You can probably find a tutorial or something: www.google.com/search?q=Trigonometry+Tutorial |
Forum: C++ Oct 23rd, 2008 |
| Replies: 2 Views: 447 In Beginning Game Programming by Michael Morrison, it tells how to get joystick input. Get it from the library or something. |
Forum: C++ Oct 15th, 2008 |
| Replies: 3 Views: 905 Hi, I was reading something that said goto was bad. Why is it a bad practice to use it? |
Forum: C++ Oct 15th, 2008 |
| Replies: 10 Views: 1,433 The Dev-Pak for GMP is on this thread. I attached it to one of my posts: http://www.daniweb.com/forums/thread145324.html |
Forum: C++ Oct 14th, 2008 |
| Replies: 1 Views: 1,584 Weird, I just used Windows' BITMAPFILEHEADER and BITMAPINFOHEADER structures and it worked fine. Thx anyway. |
Forum: C++ Oct 14th, 2008 |
| Replies: 1 Views: 1,584 Hi, I'm reading a bitmap manually to try and make a program that does steganography, but I can't read the file correctly. The headers I read come out completely messed up, and they fail the check to... |
Forum: C++ Oct 13th, 2008 |
| Replies: 2 Views: 989 I have tried to do this before. Just read a tutorial on how to do it by hand and make a function or whatever.
Check this out: http://www.permadi.com/tutorial/numBinToDec/index.html
Pretty much,... |
Forum: C++ Oct 7th, 2008 |
| Replies: 2 Views: 465 |
Forum: C++ Oct 7th, 2008 |
| Replies: 2 Views: 465 Hi, I'm taking a programming class at my school. My teacher gave us a pdf that said "..You will be writing a program that can read a bitmap and insert a secret message into the bytes of the picture... |
Forum: C++ Oct 4th, 2008 |
| Replies: 28 Views: 2,768 |
Forum: C++ Oct 4th, 2008 |
| Replies: 7 Views: 2,287 You need to add the bin directory of MinGW to your PATH environment variable. |
Forum: C++ Oct 2nd, 2008 |
| Replies: 0 Views: 421 Hi, I'm need to be able to load bitmaps, preferably as resources, draw them, and get their size. How would I do this? I'm on Windows, and using Dev-C++ 4.9.9.2. |
Forum: C++ Oct 1st, 2008 |
| Replies: 3 Views: 495 Do what Salem said. I'm pretty sure it's called double buffering. |