Here is my code it work in my other IDE BUT NOT IN VISUAL why THE PRECOMPILE HEADER IS TURN OFF. EVEN WITH TURN ON IT DIDN'T WORK
C++ Help in Visual?
Step 1) RELAX bro, in programming its bad to get fustrated, if you are take a break or something.
You forgot to use the line "using namespace std;" so either you need to use the namespace std, or you need to use the std class and the scope resoultion operator ( :: ) whenever you use cout...example
std::cout %26lt;%26lt; "This is how you use it";
#include %26lt;iostream%26gt;
using namespace std;
int main()
{
int a;
int my;
my = 15;
cout %26lt;%26lt; "What do u think My age is?: ";
cin %26gt;%26gt; a;
if(a == my)
{
cout %26lt;%26lt; "U have Guessed Right.. YEA!";
cout %26lt;%26lt; endl %26lt;%26lt; "Congradulation";
}
else
{
if(a %26lt; my)
{
cout %26lt;%26lt; "GO HIGHER" %26lt;%26lt; endl;
}
else
{
cout %26lt;%26lt; "TOO HIGH..Go LOWER" %26lt;%26lt; endl;
}
}
main();
return 0;
}
Reply:You need this:
#include %26lt;iostream%26gt;
using namespace std; // additional string.
It is very suspicious that your compiler does not catch such things: namespace is strongly required here.
Tuesday, July 14, 2009
Sunday, July 12, 2009
MS-DOS compatability mode-DRIVE C using ??? BIOS a mess!! Lost CD-ROM ?? What do I do???
SYS INFO: IRQ 11 S3 INC TRIO 3D
IRQ 11 IRQ HOLDER FOR PCI STEERING
IRQ 14 PRIMARY IDE CONTROLLER (DUAL FIFO)
IRQ 14 INTEL 82371AB/EB PCI BUS MASTER IDE CONTROLLER
IRQ 15 INTEL 82371AB/EB PCI TO USB UNIVERSAL HOST CONTROLLER
IRQ 15 IRQ HOLDER FOR PCI STEERING
*****WINDOWS 98 SE IBM COMPUTER MODEL 6862 --YEAH OLD*****
I DONT KNOW WHAT OTHER INFO YOU NEED PLEASE LET ME KNOW...
THANK YOU SOOOOOOOO MUCH
MS-DOS compatability mode-DRIVE C using ??? BIOS a mess!! Lost CD-ROM ?? What do I do???
have you done a virus scan ? back in the old days (of win98), computer viruses used to knock c-drives into compatibility mode.
if you've done that, you can always remove them from the device manager and reboot - that will make windows re-recognize them and that might get rid of the problem too (tho you'll be prompted to reboot several more times).
i've also had that problem if the bios settings were messed up (say, if the floppy drive was deactivated or the cd-rom had its settings misconfigured).
good luck !!
Reply:GO TO CONTROL PANEL UPDATE CD-ROM DRIVER IF NOT GET THE 98 DISC AND RE FORMAT
GOOD LUCK MINES OLDER THAN YOURS
ACER
RE-BUILT 3 TIMES
HAPPY EASTER
IRQ 11 IRQ HOLDER FOR PCI STEERING
IRQ 14 PRIMARY IDE CONTROLLER (DUAL FIFO)
IRQ 14 INTEL 82371AB/EB PCI BUS MASTER IDE CONTROLLER
IRQ 15 INTEL 82371AB/EB PCI TO USB UNIVERSAL HOST CONTROLLER
IRQ 15 IRQ HOLDER FOR PCI STEERING
*****WINDOWS 98 SE IBM COMPUTER MODEL 6862 --YEAH OLD*****
I DONT KNOW WHAT OTHER INFO YOU NEED PLEASE LET ME KNOW...
THANK YOU SOOOOOOOO MUCH
MS-DOS compatability mode-DRIVE C using ??? BIOS a mess!! Lost CD-ROM ?? What do I do???
have you done a virus scan ? back in the old days (of win98), computer viruses used to knock c-drives into compatibility mode.
if you've done that, you can always remove them from the device manager and reboot - that will make windows re-recognize them and that might get rid of the problem too (tho you'll be prompted to reboot several more times).
i've also had that problem if the bios settings were messed up (say, if the floppy drive was deactivated or the cd-rom had its settings misconfigured).
good luck !!
Reply:GO TO CONTROL PANEL UPDATE CD-ROM DRIVER IF NOT GET THE 98 DISC AND RE FORMAT
GOOD LUCK MINES OLDER THAN YOURS
ACER
RE-BUILT 3 TIMES
HAPPY EASTER
C# add refrence in notepad?
we all know if u want to add a refrence in most ide you just got add refrence and select what ever you want quicktime libary etc what ever .dll
how do you code that in to notepad say if you wanted to use a manged .dll but add it to the code so it see's it as a refrence so then all you would have to do in notepad was
whateverdll.getwhatever name = new whateverdll.getwahter();
then you could just do string x = name.getfileinfo(); if it was a plublic string i can do it in visual studio and sharp develop but i want to know how to in notepad
C# add refrence in notepad?
You will have to add a /reference argument when you call the C# compiler.
Using /reference:
http://msdn2.microsoft.com/en-us/library...
All Compiler Options:
http://msdn2.microsoft.com/en-us/library...
how do you code that in to notepad say if you wanted to use a manged .dll but add it to the code so it see's it as a refrence so then all you would have to do in notepad was
whateverdll.getwhatever name = new whateverdll.getwahter();
then you could just do string x = name.getfileinfo(); if it was a plublic string i can do it in visual studio and sharp develop but i want to know how to in notepad
C# add refrence in notepad?
You will have to add a /reference argument when you call the C# compiler.
Using /reference:
http://msdn2.microsoft.com/en-us/library...
All Compiler Options:
http://msdn2.microsoft.com/en-us/library...
Where can i find a very good thorough Java Tutorial (JDK6 using NetBeans IDE 5.5) ??
i downloaded it. i Know C++.i just want a thourough step by step info.thanks
Where can i find a very good thorough Java Tutorial (JDK6 using NetBeans IDE 5.5) ??
Try not learn a programming language with the heavy use of a particular IDE like Netbeans. That way you know the concepts not fixing yourself on ever changing IDEs. There are lots of good tutorials on Java online you would have to just search.JDK 6 is still new and I am assuming the API would have limited resources for a learner's perspective.
wisteria
Where can i find a very good thorough Java Tutorial (JDK6 using NetBeans IDE 5.5) ??
Try not learn a programming language with the heavy use of a particular IDE like Netbeans. That way you know the concepts not fixing yourself on ever changing IDEs. There are lots of good tutorials on Java online you would have to just search.JDK 6 is still new and I am assuming the API would have limited resources for a learner's perspective.
wisteria
Can I write C++ (console) on windows, run on linux without a big hassle?
I write console programs that run on a linux cluster. I have to work on my windows laptop a lot, so I write using MS IDE then SCP the stuff to the cluster, compile and run it. Is there an easier way? It would be great to hit a button in an IDE and have it automatically update the files on the cluster, compile it and run it. Any ideas?
Can I write C++ (console) on windows, run on linux without a big hassle?
Use cygwin to install a linux shell on your windows machine or use dev c. Dev c usually goes into linux pretty well.
RJ
Reply:You have to port the application. Not recommended.
Reply:That IDE would be great for me as well, though I haven't seen one around.
What I've been doing for the past few years is, programming on Windows ( for intellisense reasons...love that stuff ), and I have that stuff checked into my cvs server. Whenever I get to the Linux machines, I compile the newest version found on cvs server and run it.
This is, unfortunately, the best way I've found to do it. ( I'll be keeping an eye on this topic in case someone has a better alternative )
Can I write C++ (console) on windows, run on linux without a big hassle?
Use cygwin to install a linux shell on your windows machine or use dev c. Dev c usually goes into linux pretty well.
RJ
Reply:You have to port the application. Not recommended.
Reply:That IDE would be great for me as well, though I haven't seen one around.
What I've been doing for the past few years is, programming on Windows ( for intellisense reasons...love that stuff ), and I have that stuff checked into my cvs server. Whenever I get to the Linux machines, I compile the newest version found on cvs server and run it.
This is, unfortunately, the best way I've found to do it. ( I'll be keeping an eye on this topic in case someone has a better alternative )
How to use the 'print screen' utility in TC++ IDE ?
I have made a program in C++ and I want to print the output screens or to save the output screen as an image.
But the 'Prt Scr' button on my keyboard doesn't work there.
Please HELP
How to use the 'print screen' utility in TC++ IDE ?
Text Mode - If you are working in text mode then come out of Full Screen mode (use Alt + Enter) and use 'Prt Scr'.
Graphics Mode - If you are in graphics mode you have to save your screen as a BMP image (Use Library Functions)
But the 'Prt Scr' button on my keyboard doesn't work there.
Please HELP
How to use the 'print screen' utility in TC++ IDE ?
Text Mode - If you are working in text mode then come out of Full Screen mode (use Alt + Enter) and use 'Prt Scr'.
Graphics Mode - If you are in graphics mode you have to save your screen as a BMP image (Use Library Functions)
2 USB 2.0 hard drives not recognized. 1 IDE drive recognized as?
C: with a logical partition D:, cd-RW comes up as E.
I'm using a USB 2.0 hub. I'm getting 82801DB/DMB CODE XX
4 times. If D: not formatted, will that cause the problem?
difference in 1.1 vs 2.0 wires?
Thanks,
Dick - Win XP Home OS
2 USB 2.0 hard drives not recognized. 1 IDE drive recognized as?
Verify that you have XP Home SP2 installed. Run Windows update to make sure.
Reply:To install USB 2.0 controller drivers
Before completing this procedure, determine if the USB 2.0 controller drivers you have on your computer are installed. To determine this, do the following:
Open Computer Management.
In the console tree, click Device Manager.
Where?
Computer Management
System Tools
Device Manager
On the View menu, click Devices by type.
In the details pane, click the plus sign to the left of Universal Serial Bus controllers.
If the word "Enhanced" is included in any of the listed controllers, your computer has USB 2.0 controller drivers installed.
If you cannot find the word "Enhanced" in any of the listed controllers, perform the following procedure:
Stop using any USB devices (such as a printer or Web cam) except the mouse and keyboard.
In the details pane, click the plus sign to the left of Other devices. Then, under Other devices right-click Universal Serial Bus (USB) Controller, and then click Update Driver.
Follow the steps in the Hardware Update Wizard to complete the procedure. When you are finished, you might be prompted to restart your computer.
Notes
To open Computer Management, click Start, and then click Control Panel. Click Performance and Maintenance, click Administrative Tools, and then double-click Computer Management.
If Universal Serial Bus (USB) Controller is not listed under Other devices, you cannot install a USB 2.0 driver. To find out more about installing these drivers, contact the manufacturer of your computer.
How to Check for High Speed USB (USB 2.0) Support
http://www.usbman.com/Guides/checking_fo...
Reply:None in my knowledge that would cause drive D: to have errors eventhough it aint formatted It is to be detected but that's all.
Might be those 2 flash drives that's causing it better remove it first to check..
I'm using a USB 2.0 hub. I'm getting 82801DB/DMB CODE XX
4 times. If D: not formatted, will that cause the problem?
difference in 1.1 vs 2.0 wires?
Thanks,
Dick - Win XP Home OS
2 USB 2.0 hard drives not recognized. 1 IDE drive recognized as?
Verify that you have XP Home SP2 installed. Run Windows update to make sure.
Reply:To install USB 2.0 controller drivers
Before completing this procedure, determine if the USB 2.0 controller drivers you have on your computer are installed. To determine this, do the following:
Open Computer Management.
In the console tree, click Device Manager.
Where?
Computer Management
System Tools
Device Manager
On the View menu, click Devices by type.
In the details pane, click the plus sign to the left of Universal Serial Bus controllers.
If the word "Enhanced" is included in any of the listed controllers, your computer has USB 2.0 controller drivers installed.
If you cannot find the word "Enhanced" in any of the listed controllers, perform the following procedure:
Stop using any USB devices (such as a printer or Web cam) except the mouse and keyboard.
In the details pane, click the plus sign to the left of Other devices. Then, under Other devices right-click Universal Serial Bus (USB) Controller, and then click Update Driver.
Follow the steps in the Hardware Update Wizard to complete the procedure. When you are finished, you might be prompted to restart your computer.
Notes
To open Computer Management, click Start, and then click Control Panel. Click Performance and Maintenance, click Administrative Tools, and then double-click Computer Management.
If Universal Serial Bus (USB) Controller is not listed under Other devices, you cannot install a USB 2.0 driver. To find out more about installing these drivers, contact the manufacturer of your computer.
How to Check for High Speed USB (USB 2.0) Support
http://www.usbman.com/Guides/checking_fo...
Reply:None in my knowledge that would cause drive D: to have errors eventhough it aint formatted It is to be detected but that's all.
Might be those 2 flash drives that's causing it better remove it first to check..
Subscribe to:
Posts (Atom)