Friday, July 31, 2009

What MSDN library should i install ?

I have recently installed Microsoft Visual Studio and C++ says that it`s help sistem is missing.


It says that i need the MSDN collection .


Now i`m not sure but i think that Visual Studio 2003 is the product that i have,and I want to ask you guys if the MSDN library for VS 2005 is compatible with my version ?


I`ve made some researches on the MSDN home page but i dont know what to download !


Thanks :)

What MSDN library should i install ?
You should have received CDs with the MSDN files. Check if you have the CDs, and install whatever's on the CD.
Reply:MSDN is the reference you'd use while programming.. installing it is absolutely optional.. You can save the space and just use the web when you want to use the reference if you can rely on your internet connection..


Need to delete song from my limewire library but still need to delete from my hard disk?

I have songs that need to be deleted from limewiry library, but when I tried it says it is shares with other programs, and went to my computer, c drive and still can delete them

Need to delete song from my limewire library but still need to delete from my hard disk?
free up space in your control panel. it will get rid of all your useless files on your computer for more space (along with those songs).


At the library, the quickest way to locate varied, reliable information for your research paper is to?

At the library, the quickest way to locate varied, reliable information for your research paper is to





A. ask the reference librarian.


B. check the Readers' Guide.





C. check the encyclopedias.





D. search the card catalog for related titles.

At the library, the quickest way to locate varied, reliable information for your research paper is to?
Talk to the reference librarian. He is familiar with the best ways to consult the catalog and Readers Guide - with increasing use of electronic catalogs, the search tactics change regularly.
Reply:Probably use the reference librarian./ The Readers Guide is not the only source.
Reply:i would first ask the librarian for the topic you are doing it on then once they send u in the right direction look through the books for what you need

gifts

I have trouble with C programming converting from decimal to binary?

Hello, I am taking a programming class and I wrote the following program for C. I was unable to use the power function in the math library so I made my own, but it only works for converting from 0 to 1023, when I try 1024 the answer is wrong. I think it has something to do with the fact that 1024 requires 10 bits, but I dont know how that fits into the program's bug. thanks


#include %26lt;stdio.h%26gt;


#include %26lt;math.h%26gt;





int power (int , int);





main()


{


int deci, resid, binary, count, multiplier;





printf("input a number: ");


scanf("%d", %26amp; deci);





count=0;


binary=0;





if (deci%26gt;0)


{


while (deci%26gt;0)


{


resid=deci%2;


multiplier = (power (10, count));


binary=(resid*multiplier)+binary;


deci=deci/2;


count=count+1;


}


}


printf("0b%d\n", binary);


}


int power(int base, int exp)


{


int ans;


ans=1;


if (exp==0)


{


return ans;


}


else


{


while (exp%26gt;=1)


{


ans=base*ans;


exp=exp-1;


}


return ans;


}


}

I have trouble with C programming converting from decimal to binary?
.. I dont have a c complier any more so bear with me .. I'm doing this in my head.. But you are trying to take a binary number and you are representing it in a decimal form





meaning your answer may be "1001" = 9


but the var you are storing it into is seing 1001 = 1001


you are simply running out of space.. Convert your answer to char thus the answer = "1001\0" readable





hope this works


and I didnt run you out to the wrong conculision


Can you transfer an iTunes library from one computer to another?

I'm wondering if there's a way to send or e-mail someone my entire iTunes library somehow. Because I'd really like to get all the songs from my home computer onto my laptop b/c I use it way more. I've thought about burning CDs but, I have over 620 songs, so that would be a LOT of CDs and time. Any suggestions?

Can you transfer an iTunes library from one computer to another?
You could burn them as MP3s. That takes up MUCH less room and would require fewer CDs or DVDs. Also, just in case of system failure, you should have back-up files of your music anyway. This would be a good time to make that backup to safeguard everything.


If you could network your computers you could file share there either wirelessly or by a crossover cable. If you aren't sure of what you're doing the CDs would be the safest thing.
Reply:Nope. If they allowed that, everyone would be sharing music without paying for it. You can, however, copy the files and burn them to a CD. Thing is, you have to know where they are. I hope you organized your library! :)
Reply:Burn as data onto a DVD. Might all fit on one disc depending on what the file format is.
Reply:that guy who answered first is wrong I have done so on the bran new computer I am using. just copy them to cd's or to a memory stick.





copy them to a folder on your computer and then import the files you have to do each one seperately if you use a memory stick.





this works for music you haven't bought through itunes. if you have bought music in itunes, itunes will ask you to log in to the account that purchased the music to confirm you are yourself or family.

innia

Library and Information Technicians from Mohawk College?

Has anyone ever taken this program through Mohawk via part-time distance ed? I have some questions.


Most of the courses only take around 3 hours a week of "in-class" time, but you're supposed to give yourself 10-15 hours per week to accomplish each of them. Did you really find they took this much time, or if not, how much time did you actually put into them?


I have no prior experience in a library. Do you think this diploma (which includes a co-op of course) could actually get me a job in the field?


Also, did you have a hard time finding a place to do your co-op at if you didn't live in Hamilton? I'm concerned no one will take me here b/c Mohawk is in Hamilton and I'm elsewhere. (I don't know if this is a legitimate concern or not, but it can't hurt to ask!)


Thanks a bunch! :o)

Library and Information Technicians from Mohawk College?
I am in the process of taking this course by distance ed. If you have no library experience, and if you do all the exercises in the modules, you will need 10 hours per week. You could certainly get a job in a library or in a related field but your chances are better if you live in a larger town or city. Haven't done my co-op, (although I already work in a public library) but if there is a library near you, they will likely be glad to have an extra pair of hands so you can probably do your practicum there. Maybe ask them before you sign up. Bear in mind that if you have some university or college background you may be able to get out of doing some courses.


Library shelf question?

a library shelf contains 7 different books. In how many ways can they be arranged if


a) no restrictions


b) the mathematics of data management textbook must be first


c) the three mathematics texts must be together

Library shelf question?
a) 7! = 5040 { This assumes all books are unique }





b) 6! = 720 { First book is placed, and then the other six in any order }





c) 5! * 3! = 720 { The three mathematics books are considered to be one item, but they can be ordered within themselves }
Reply:a) 7!


b) 6!


c) (123)(234)(345)(456)(567)..........


5 diff ways
Reply:a. 7!


b. 6!


c. The 3 math texts can be arranged in 3! ways. They may start at any of five positions (1, 2, 3, 4, or 5; but not 6 or 7).


The remaining 4 books can be arranged in 4! ways. Answer: (3!)(5)(4!)
Reply:The way to figure this is to look at it mathematically.





There are 7 possiblities for the first book, 6 for the next and 5 for the next etc. So your math looks like this








7 * 6 * 5 * 4 * 3 * 2 * 1 = 5040





Now, if you take away the first choice, then it leaves only 6 books left for the rest so your math would be





1 * 6 * 5 * 4 * 3 * 2 * 1 = 720





If the three of the books must be together, AND you want the most options, putting them at the end garners this


4 * 3 * 2 * 1 * (3 * 2 * 1)= 144


(Note that the three books only need be put together, yet they can offer up 6 variations of placement.


My floppy is stuck in the computer at the school library.?

I am using the library computer right now, and I must have put my floppy in wrong b/c it is stuck and won't come out. I want to get it out without being to obvious, b/c I don't want to have someone look at it b/c I will look like an idiot. What should I do.? Hurry!!

My floppy is stuck in the computer at the school library.?
Those are tricky to unstick....Anyone needs a really thin blade to run along top and bottom of the floppy..chances are the metal edge got bent a little causing it to stick
Reply:Well, the button is usually always on the bottom side of the floppy disk. I think anyway it should only go in one way. If it is all the way in and the button won't release it, then I would say you should contact a person in charge and get some help. Sometimes stuff happens. If it is partly in, maybe you could "very gently" wiggle it sideways, not up or down to bend it. But... ask for help. I just thought, sometimes the door of the floppy can stick up on an older one. The label could peal as well.
Reply:Sorry, but you don't have much of a choice other than to ask one of the library attendants to help you. I'm sure they won't mind and it'd be better for you to do it sooner than later.
Reply:most CD, DVD and floppy drives have a little pinhole somewhere on the face of the drive. take a paperclip and straighten it out as best you can. put it into the pinhole and push it to manually open the tray or eject your floppy.





don't feel like an idiot -- on floppies that metal cover that slides to the side to expose the disc inside can sometimes lift up and the flap gets caught on the internal mechanism. so don't be afraid to ask for help rather than ruin your disc or be suspected of trying to damage the library computer. ;-)





good luck!


Our Public Library has the movie "Saw"...is there anything we can do to have it removed?

Our local library has the movie "Saw" %26amp; others like it. We pay taxes here, so it seems we would have a say in what is bought. I called there %26amp; she said that she is the one that purchases it %26amp; did it b/c she had a request for it.





Said our only recourse was to sign a complaint form which would be "kept on file". A lot of good that would do! Said that they "couldn't sensor what people watch."





What can I do - anything?





People want to complain when we have people who's mind's run in violent ways, yet we have our public library BUYING IT FOR THEM - to make it easier, I guess!





I am upset about it...is there anything I can do!?

Our Public Library has the movie "Saw"...is there anything we can do to have it removed?
Move to a country where censorship is permissable.


If you get to remove from the PUBLIC library what YOU find objectionable, then I get to remove what offends ME, and so does the next guy, before long, you have an empty library.
Reply:You can avoid checking those films out, or you can make requests for what you consider more tasteful materials. However, you should understand that not everyone likes the same books and movies and that you have no right to infringe on the rights of other taxpayers to see what they want (within reason) offered in the public library. Just my $0.02.
Reply:I would just like to know how you got so all-knowing that YOU know what is best for every one.
Reply:You can just not check it out, and leave it there for other people to make their own choices.





No, there isn't anything you can do. Would you like the library to send out a form each month for you to approve their latest purchases? And if each proposed book is not unanimously approved by the voters, the library should refuse to purchase it? Does that sound like a way to run... well, anything?





The point of having a library is to provide free and open media and educational resources for everybody. The premise being that an educated public, with their right to freedom of speech and choice, is what's going to keep this country going.





I know that this isn't an educational movie! But libraries also serve to provide entertainment, and most importantly they are there to serve the public... if somebody actually called in and requested it, what was the librarian supposed to say? "Sorry, we don't think that movie is morally appropriate for a public library." That may be fine for "Saw," but what about when someone requests a copy of Nabokov's "Lolita"? I don't want people like you, for example, making those calls for the rest of us.





I haven't seen it, because it looks to me like a pretty distasteful and graphic film. So I don't want to. But other people do, and that's okay with me. I make my choices, and they make theirs, and I'm glad that my library is there to support all of us. I use it frequently, and the more variety on the shelves, the better for everyone.
Reply:If you don't like it, you are under no obligation to check it out. Pure and simple.





There are plenty of things in libraries that someone, somewhere is not going to like. Atheists might not like to see the Bible there. Republicans don't like to see liberal works. Many people wouldn't want to see Mein Kampf. Yet all of these things are in virtually every library in the country.





We are a free and open society and do not censor things just because someone doesn't like it. You have every right to your opinion, but you have NO right to dictate what I might want to see at the library.
Reply:What can you do? YOU CAN REALIZE YOU LIVE IN AMERICA WHERE WE ARE SUPPOSED TO BE FREE FROM OPPRESSORS SUCH AS YOURSELF. WE ALL PAY TAXES THAT SUPPORT THINGS WE DO NOT AGREE WITH. SUCK IT UP, SIT DOWN, AND SHUT UP.





I'm sure the library has a policy regarding renting only to those old enough (18 and over for R movies). It is not YOUR place to determine what materials are acceptable for a PUBLIC institution to carry. It isn't porn. Get over it.





So now we're to punish everyone for acts that MIGHT occur by someone, somewhere, sometime? We do not live in a nation of "thought police". Do you want to ban all movies and games that might, possibly influence another human to do something illegal? Yes, it is your tax money buying those DVD's but it is also the guy next doors tax money and HE wants to watch SAW and rent it from the library. Why shouldn't he be able to rent a LEGAL movie? Your tax money pays for the war, welfare, abortion, corporate welfare, farm subsidies, protection of the scrub jay, bridges in Alaska that serve 50 people, and any number of other wasteful and harmful projects. Why do you choose this one thing to complain about when this is something that is PROTECTED BY OUR CONSTITUTION?
Reply:Yes there is something that you can do! Are you ready invoke your freedom of choose by not renting it. Stop telling people what they can and can't rent. Find a real cause and stop making waves where none are needed.





Oh and FYI its a PUBLIC library which means its sponsored by our government which means they are subject the have the same constitutional rights that you do.





In short help starving children, abused animals, or something that is impotent. So in conclusion you have the right to not rent said movie as much as other people have the right TO rent that movie.
Reply:A public library is for the public. You could start a private library and put into it what ever you want. The public is everyone. Not just those who agree with us.
Reply:You have to think of it from all perspectives. There are people in your community who would feel exactly the same way about The Passion of the Christ being funded with their tax dollars.





Instead of focussing on how you can get it removed, why not take a different approach and ask if you can hold a 'round table' at the library, invite the public and get people talking openly and without hostility about everyone's feelings on movies and entertainment in general.





Talk to them about your feelings, listen to theirs, and maybe you will open some hearts to your point of view and help others realize that that sort of entertainment is unhealthy for our society. Maybe you will learn from their perspective as well, and become more tolerant. Either way, you will feel you have accomplished something perhaps?
Reply:The First Amendment, baby. If you don't like the movie, don't rent it.

gerbera

Three things you need in order to find a book in the library are:?

Three things you need in order to find a book in the library are:





a. topic, author, publication date


b. author, title, call number


c. author, call number publication date


d. title, publication date, number of pages

Three things you need in order to find a book in the library are:?
author, title and call number.
Reply:e. title, author, ISBN number (and a computer, so you can reserve on-line and just drop by to pick up)
Reply:Are you looking for fiction or nonfiction? If it's fiction, all you need is the author's last name and the title. If it's a topic, you need the call number and title, the author's name can help. So my answer is b unless it's fiction.
Reply:b. author, title, call number
Reply:B..


Microsoft Visual C++ 2005 express edition?

I am a college student and have worked in C++ before but in the Unix environment. I just started using Visual C++ Express Edition (Version 8.0). I am using it for a data mining project. So I have to work with a MySQL database which is present on my local windows machine.





I have some very basic questions:





1.From the IDE when I try to create a new project (File-%26gt;New-%26gt;Project),I see three options. CLR, Win 32 and General. Each option has a few templates, I am not sure what do these options mean and what is the best option for me, can anyone explain this briefly ?





2.I want to use the BOOST library(for some algorithms) and MySQL++ library (connection to MySQL database) and STL. Where do I add these libraries to my project? Do I have to build them seperately ? What does building a library mean ?





Thanks

Microsoft Visual C++ 2005 express edition?
You said you had previous C++ programming experience?





Q1:


CLR refers to managed C++. Managed C++ is the .NET version of C++, so if you are running standard C++ code, this is not what you want.


Win32 refers to Win32 applications. Only pick this if you are writing specific Win32 API code. That is, no console window. You know how to use the Win32 API. And so on.


I'm not sure what general means. Is there an option for command line? If not, general would refer to the command line programs. It's a good bet this is the kind of program you want to write.





Q2:


I don't recall the exact steps for adding libraries and includes. You'll have to open up the project settings. Somewhere, you should be able to add in include paths and lib paths. For each library you want to use, add the appropriate include folder to the include path list, and the library folder to the library path list.





%26gt; Do I have to build them seperately ?


You'll want to build the libraries you use before using them. Otherwise, you can't use them.





%26gt; What does building a library mean ?


Why do you compile code? Because otherwise it's useless. You want to use a library right? A library is a bunch of code. But it's useless as code. You need it to be compiled to be usable.





EDIT: What do you mean by use the STL? Do you mean STLPort? Visual C++ comes with a solid implementation of the STL, so you don't really need STLPort.


Chem combinatorial library?

How many compounds would there be in a combinatorial library of ester compounds made from every isomer of monofluorobenzoic acid and every possible alkyl alcohol with 4 or less carbon atoms?





a. ) 11


b. ) 12


c. ) 21


d. ) 24


How do I group songs together in my itunes library?

I have uploaded songs from c.d.'s that are not originals, and when I browse through the library, each song is individually listed as an album. Is there a way I can group all the songs together on ONE album? I know I can do this with songs that ITunes can recognize, but I am lost with these burned c.d.'s...

How do I group songs together in my itunes library?
Right click on the song and choose "get info". A box will pop up. Click the second tab and it will show you all the music info like artist, album, etc... Just put the name of the album so you can group it where it belongs. Do this with whatever songs you are trying to group.
Reply:to put it quite bluntly, just drag and drop all of the songs into the "Music" section of iTunes.
Reply:You´ll have to change the information about the song by right clicking on it. Then you can adapt the album name and if needed the artists name. After that they should be recognized as being on one album.
Reply:you can do this by following the advice of the other posts...you can also create playlists and combined multiple artists or multiple albums together

rosemary

Fd_set in ANSI C?

Why would gcc not understand the fd_set data type when compiling in ANSI C? Could it have anything to do with the unistd.h library? How can I fix this?


Thanks!

Fd_set in ANSI C?
If I remember well fd_set function (and similar) should be defined in %26lt;sys/time.h%26gt;, but your problem is more simple: fd_ family functions are not defined in ANSI C. Simple solution don't exist... because you should find a third parties library wrote in ANSI C that can be used instead of fd_ ones.








cheers


Help with filling up itunes library with GOOD songs?

This question might sound stupid but all my friends have a good itunes library with good songs. how do i get those songs and how do i organise them well so i have a good organised library. E.G. having all album artwork, no duplicates of songs e.t.c





Thanks and please help me out here as i am getting a new ipod classic.

Help with filling up itunes library with GOOD songs?
Well. Go find songs you like. Buy them. Quite simple really.


Windows Media Play songs disappear off Library?

Last night I tried creating a compilation c.d. I was ripping the songs using a different software (cant remember the name). Then I'd go into Windows Media Player and add to the library getting it to search the desktop for new music (ripped songs from software to the desk top). It would find the songs and put them in the library but as I added more to the Library some songs would just totally disappear before I had the chance to send them to the Burn List. I then tried to send them to the Burn list before adding more songs to the library and found that they continued to drop off the library but remained in the burn list but then I found i had more than one copy of song. Does anyone know where i am going wrong? Why are they disappearing from the Library?

Windows Media Play songs disappear off Library?
This is odd, i do the same thing but are successful at burning my CD's. Check your settings, are you using the latest version of the Player? Good Luck


Installing GD library in php ?

hi...how to configure the php.ini file to support the GD library ..i downloaded GD 2.0.34 and the zip file contains many c++ scripts ...so what to do ..with some details please...i have windows xp.

Installing GD library in php ?
It depends on the php version you are using. You might already have it on. The c++ is the source in case you want to build it for yourself.


You only need php_gd.dll file, so uncomment this line php.ini (if you have windows).


extension=php_gd2.dll





Also check this out:





http://www.jpowered.com/php-scripts/php-...
Reply:If you installed the MSI version of PHP (version 5 or later), then you don't need to get the GD library separately - it's built into the MSI installer. Just re-run the install (from Add/Remove programs in the Control Panel if you didn't delete the installer) and pick custom/advanced, and click the plus next to the folders to expand all the options...





There are several in there that I enable normally, like GD, mbString, MySQL and MySQLi.





I've tested this with Apache version 2.0 and 2.2.
Reply:i use windows xp and do u know what i did ? i downloaded and installed "WAMP". Just uninstall ur php and mysql man.. then install wamp, its a life saver it installed everythign u need, php with all required extentions, mysql, phpmyadmin, apache and so on, all for windows. WAMP means - Windows Apache Mysql Php.


you can download it here http://www.wampserver.com/en/download.ph...
Reply:i do not know

wallflower

How to do Differentiation in C programming language ??

I am looking for some tool, library or tutorials that would help me do differentiation in C or any other programming language.

How to do Differentiation in C programming language ??
usually differentiation includes variables...





so, it needs computation in variables...(not calculation)





but c language is mainly calculation...(using values assigned to variables)...





it is an NP complete problem to create a program which computes differentiation or integration of inputs...


Adding music from my rhapsody library to my windows media player library?

can anyone help me? I want to add music from my rhapsody library to my windows media player library.Please help if you can I will need details on how to do so if it is possible b/c I am not to familiar with doing any of this. Thanks for all your help!!!!!

Adding music from my rhapsody library to my windows media player library?
I don't know if the WMP support Rhapsody music.


As I know, the Rhapsody music has the DRM technology which avoid the customer play or convert the downloaded music with other uncompatible devices, so if you want to play the protected music with other incompatible players(like psp and ipod) you should remove the DRM with a specialized converter.


And here I found a good program to help me remove DRM and convert the DRM music.


http://www.wmatomp3-converter.com/digita...


It can remove the DRM from protected music (mp3, wma, wav, etc) and convert the DRM music between different formats, and it also can extract audios from DRM video (wmv, asf, etc).


Need more information, you could email me or search on


http://answers.yahoo.com


Moving my iTunes library?

Hi, I am running Windows Vista, and my drive has been pre partitioned (when I got it new) into a C drive and an E drive. My C drive was where I stored all my stuff, so now it is bursting and I need to clean up some space pretty quickly. How can I move my iTunes library onto my E drive easily? Without mucking up my iTunes setup?

Moving my iTunes library?
Export folder to e-drive
Reply:Go into the folder - music/itunes and copy the folder called 'itunes music' - paste it into the E drive and then copy all the songs into itunes after deleting them from the library (not the files).
Reply:Just goto your my music directory and right click on the iTunes folder and select "cut(or copy to be safe, then delete the old when you are done and it works)". Then hightlight the folder you want to put it in on the other partition and right click and select "paste". This will move all the data to the external drive. Open iTunes to the iTunes interface.Once there, select edit, then preferences. Goto the advanced tab. In the general tab you will see "iTunes Music Folder Location". Next to the diaglog box select "change..." Now select the "iTunes Music" folder in the external drive as the location. Now restart iTunes and it should use the library that you moved and everything should be there.


Good Luck


C++ : convert time from seconds to Hours, Mins and Seconds?

how do i convert time from seconds to HH:MM:SS in c++?





I'm can only use these libraries


#include%26lt;iostream%26gt;


#include%26lt;string%26gt;


#include%26lt;iomanip%26gt;


#include%26lt;cmath%26gt;





how would you calculate it mathematically? and how should i implement it in C++?

C++ : convert time from seconds to Hours, Mins and Seconds?
void main()


{


int time,hour,min,sec;


cout%26lt;%26lt;"Enter time in seconds :";


cin%26gt;%26gt;time;


hour=time/3600;


time=time%3600;


min=time/60;


time=time%60;


sec=time;


cout%26lt;%26lt;"\n\nThe time is : "%26lt;%26lt;hour%26lt;%26lt;"::"%26lt;%26lt;min%26lt;%26lt;"::"%26lt;%26lt;sec;


}





for this program, you just need iostream.h

hollyhock

Does anyone know where i can get the iostream.h library?

I got a C++ builder a while back, but it has NO iostream.h library anywhere in the disc. Can anyone help, I need it soon and i need it free of charge(share/freeware) please help me!

Does anyone know where i can get the iostream.h library?
check out this link..it gives iostream.h





I am using Turbo C .It provides iostream.h in


DIRECTORY TC\INCLUDE.


So accordingly , you can find in c++ builder.


If you dont find it search on google.
Reply:In the new C++ stuff, they replaced all the .h files with the ones without any extension. Also, you'll have to explicitly use the namespace.


eg:


#include %26lt;iostream%26gt;


using std;


...etc...


What is the best book to learn C programming for beginners?

Is let us C a good book? because i cant find it in the library. I tried seraching for it and there's no results. Is there a similar book like "Let Us C" that's easy to understand?

What is the best book to learn C programming for beginners?
Actually the best book for c is the book by Kernighan and Ritchie ..it descibes all the needed concepts in C language


or u can try com.lang.c FAQ on net it is filled with questions which help u to understand the language even better
Reply:hii..





you can try to search ebook in this site





http://www.freecomputerebook.net





find on the c sections








cheers
Reply:Let us ''C'' - Yashwant Kanetkar from a Indian Author.





One of the best
Reply:Try looking the ' for Dummies' series. Programming For Dummies or C Programming for Dummies. These books are very good at teaching you how to do programming in an easy to understand English.
Reply:The definitive C book is "The C Programming Language" by Kernigan and Ritchie. They created the language.





You might also find something that will teach you both the development environment and the language at the same time. When I was learning C++ I got a book like "Learn Visual C++ in 24 hours". It taught both C++ and the Microsoft Visual Studio environment in 24 lessons that each claimed to take one hour.





Shop around at Barnes %26amp; Noble where you can handle the books.


How do u program this c++ visual program using the following libraries?

Topic: Write a program that allows the user to enter numbers in the range 0-19, terminated by a sentinel, and then perform the following functiosn on the numbers: the average number, the maximum number, the range, the median





#include%26lt;iostream%26gt;


#include%26lt;vector%26gt;


#include%26lt;string%26gt;


#include%26lt;stdlib.h%26gt;


#include%26lt;time.h%26gt;





using namespace std;

How do u program this c++ visual program using the following libraries?
Try this:





cout %26lt;%26lt; "1"


cout %26lt;%26lt; "am 2"


cout %26lt;%26lt; "st"


cout %26lt;%26lt; "up"


cout %26lt;%26lt; "id"


cout %26lt;%26lt; "an"


cout %26lt;%26lt; "d la"


cout %26lt;%26lt; "zy 2"


cout %26lt;%26lt; "due"


cout %26lt;%26lt; "hom"


cout %26lt;%26lt; "e"


cout %26lt;%26lt; "work"
Reply:Why do you have to use those libs?





Looks like all you'd need is iostream.





int myInput=0;


do {


cout %26lt;%26lt; "Give me a number: ";


cin %26gt;%26gt; myInput;


if (myInput == -1) {


cout %26lt;%26lt; "C-ya!" %26lt;%26lt; endl;


}


else if (myInput %26lt; 0 || myInput %26gt;19) {


cout %26lt;%26lt; "Bad number... Try again!" %26lt;%26lt; endl;


}


else


numbersRead++;


numberTotal+=myInput;


if (myInput%26gt;maxNumber)


maxNumber=myInput;





and so on...





Your instructor would probably want you to complete it yourself.


Graphics c++ first time .... please help?

I am a beginner in c++ programming, and i have found a good tutorial for making graphics using direct x with visual c++ 6.....


We have to download two libraries : d3dx8.lib and d3d8.lib


and not any newer or older version.... So, I want someone to tell me where to download them... and how to use them in my program ( Do we just include them and that's it?) .... Please answer in details.......





Also, if you know another easy c++ graphics tutorial, tell me ;)

Graphics c++ first time .... please help?
Typically the libraries are added to your the 'lib' directory. Then the header file is added to your 'include' directory. I'm not sure exactly where those would be in visual C++, but maybe looking somewhere for those directories will help.





Try checking out the directx page, also. I think you need the entire SDK, but I have no clue as I do most of my development on linux using glut/opengl.


http://www.toymaker.info/Games/html/dire...

cabbage

Lost downloaded limewire files from library..HELP!!?

This is my situation, I had alot of media downoalded in my Library and all the downloaded files were shared in a "limewire" folder in my "c" drive.


I have'nt use it for a few weeks so when I got on to limewire today i was surprised to see that there was a problem with accessing my library on limewire,....apparently it seems all the music in my limewire folder is gone, i looked in my recycle bin and its not there...no idea what could have happenned..does anybody have any ideas as to how to find them or get them back?.Also there is no music in my "my music" folder either...


when i try to access my library on limewire it says i need to reconfigure my folder, than it leads me to a page where i add or remove folders to where my downloaded music will go but even when i changed the folder theres still nothing there...when i click on the "share" tab where my library should open up it says you can configure folders u share in limewire .


I downloaded a file restorer program yet no music came up

Lost downloaded limewire files from library..HELP!!?
You are one of the few persons left on this planet that has not gotten the word - Lime Wire is a VIRUS and SPYWARE Downloader.





You need to remove the virus that has deleted your folders.
Reply:So now I have 3 more Qs,


1- Which media sharing program is a good one, especially for mp3s





2- should I just delete my limewire or just scan it with some anti-virus software, I don't know much about that though, would Norton antivirus work?





3- How do I recover my deleted/lost mp3 files? Report It



2 simple programs in C++. & also a basic doubt. please make it simple as i am a beginner.?

C++ : should main() b defined compulsarily?can it b inside a class? also in array c[]={1,2,3} what will be c[1]?


define a class to represent a book in a library with datamembers: book number, Book Name, Author, Publisher,Price, no. of copies, No.ofcopies issued.


member function : (i) to assign initial values (ii) issues book after checking for its availability.


(iii) to return a book. (iv) to display book information.





Define a class ELECTION with the following speciations. with a suitable main() fumction also to declare 3 objects of ELECTION type %26amp; find the winner %26amp; display the details.


private members: candidate_name, party, votes_received


public memberfumctions: enterdetails()-input data


Display()- to display winner


winner()- to return details of the winner through the object after comparing the votes received by the 3 candidates.

2 simple programs in C++. %26amp; also a basic doubt. please make it simple as i am a beginner.?
"C++ : should main() b defined compulsarily"





Not sure what you mean.





"can it b inside a class?"





Not in C++, no it must be global. You can do this though:





int main(int argc, char **argv)


{


return Program.Main(argc, argv);


}





static class Program


{


static int main(int argc, char **argv)


{


return 0;


}


}





"also in array c[]={1,2,3} what will be c[1]?"





Arrays in C are 0-based, so c[1] is the second element, in this case the value is 2.





The rest of your questions sound like homework and I'm not going to ruin your learning experience.


What's the difference between an API and a library, such as iostream?

What's the difference between, say, the Windows API and a library or whatever they're called (a library, I think) such as iostream? (I'm programming in C++ by the way.) Thanks.

What's the difference between an API and a library, such as iostream?
A library is a series of ready built functions you can utilise, so rather that having to type in a load of commands every time you simply select the library function and fill in the parameters such as :





CreateWindow(SizeX,SizeY,Bordercolor, WindowColor)





An API Applications Programmer Interface) is a gateway in to a program or operating system. So if you had a terminal emulator program that loaded in two halves such as Terminal.exe (user interface) and kernel.exe (the kernel of the operational part of the program) when kernel.exe loaded you could talk to it via its API, usually via a software interrupt. Such as -





INT Kernel (Function number, parameter).
Reply:An API is an Application Programer's Interface. It's a collection of functions that access a library or a set of objects or a compiler or an OS. A library is also a set of functions, but one that adds functionality.





But in the real world, often the terms are used interchangeably.

phlox

Is C# a good platform for building games?

I'm interested in using C# to build my first video game. What interests me with C# is that it is fully object oriented and contains a wide array of codes in the .NET library. I'm thinking of designing a role playing game in C#, much like the Resident Evil series.





However, though it seems C# is up to the task of building games, I haven't heard much about developers using it which brings me to the question: Is C# a good platform for building games?

Is C# a good platform for building games?
I would say no. If you write a game using .NET functions, that requires the user to have .NET installed on their machine in order to run it.
Reply:yes
Reply:yea that what my dad uses
Reply:i don't know about c#, but c++ works great. then you can use directx or open gl, which are free graphics libraries. otherwise, making a game in c# is nearly impossible. i don't know how much experience you have, but c in general is very difficult. if you're a beginner, start with flash or vb.
Reply:only ameture games but still its better for just shows and animation
Reply:I personaly use Java, it's easy to use and it's cross platform. One of the major problems is deploying it to users but there are programs and methods that make it less difficult. I like to use it because it's easy, clean code, object-oriented, cross-platform, and applets are nice. Java has become quite advanced recently in the gaming area, there are libraries for OpenGL and joystick/controler input. It's my method, just be weary of the deployment.


I need help with my C++?

- I need Car rental system, Cd rental system, Library system, Restaurant system example.


- Must support with visual C++

I need help with my C++?
may be can find it at codeproject or sourceforge
Reply:May be you can contact a C++ expert to help you code your project assignment. Check websites like http://askexpert.info/
Reply:hihi.. thats a lot of systems.. well you must first fill us with requirements.. like the business rules.. :D hihi
Reply:http://www.a1vbcode.com/app-3962.asp





click to get similar project





http://www.planet-source-code.com/vb/scr...


Basic C++ problem.?

Hi. I m just a begainer in c++. I m learning c++ by studying " c++ how to program" by Deitel %26amp; Deitel. I m using visual c++ 6.0. In the book there is a function " end1" under the library file %26lt;iostream%26gt;.


but I cnt use this " end1" in visual c++. when ever i use it it says, "end1 unidentified operation or end1 doesnt belong to %26lt;iostream%26gt; ."Is there a solution so that i can use end1 properly?


plz help me. your help will be much appreciated . thank you.

Basic C++ problem.?
sorry to remind u of ur mistake. infact whatever u r showing as 'end1' is 'endl', which means 'end line'; which can be used to substitue "C language '\n' " for ending the line.


it is not a function, but it is a macro.
Reply:Well I think its because you are using "1" it should be end l, a lower case L, in books it looks like a one. Hope I helped.
Reply:it is endl





well its 'L' in lowercase sometimes in some fonts it looks like "1" "one"


A C++ program?

Can you tell me any c++ programs or sites .


Programs like:


1.to make a library booking system.


2.ATM system


3.bank account


can I get the coding for such programs?


Any programs which will show the features of C++

A C++ program?
http://www.cprogramming.com
Reply:Or else may be you can contact a C++ expert at websites like http://askexpert.info/
Reply:what is it worth to ya?
Reply:Try using www.codeguru.com..
Reply:The implementation of the ATM simulation in C++ consists of eight modules that declare and implement the various classes - most consisting of an interface (.h) file that contains the class declaration(s) and an implementation (.cc) file that implements the methods declared in the interface. (No implementation file is needed for the class Status, and no interface file is needed for the main program.) Most modules implement a single class, but all the component parts of the ATM are grouped together into a single atmparts module, and all types of transactions are grouped into a single transactions module.





The current version of these files has been compiled and run on both a VAX/VMS system and a Linux system, both using gnu C++. A complete downloadable package of the all the source code will eventually be available via anonymous ftp. The README file in that package contains information about system specific details.


for libraries.


Free Compression and Archiving Libraries


Free Database Libraries, SQL Servers, ODBC Drivers, and Tools


Free Debugging Libraries, Memory Leak and Resource Leak Detection, Unit Testing


Free Edit Controls, Libraries and Source Code


Free Encryption Libraries


Free C/C++ Font Libraries


Free Games Programming Libraries and Source Code


Free Graphics, Image Drawing Libraries, 3D Engines, 2D Engines


Free GUI Libraries


Free Numerical, Graphs, Statistics and Mathematical Libraries


Free Sockets, Winsock, TCP/IP, Internet Libraries


Free Spell Checker Libraries and Source Code


Free Standard Template Libraries (C++ STL Libraries)


Free Thread Libraries


Free Audio, Sound, Music, Digitized Voice Libraries


All Other Free C/C++ Libraries





Bank operations using threads in java


New Visual C++ MFC Codes www.ucancode.net/index.htm
Reply:i think u can go ahead with any of the answers all will sound good

verbena

A C++ program?

Can you tell me any c++ programs or sites .


Programs like:


1.to make a library booking system.


2.ATM system


3.bank account


can I get the coding for such programs?


Any programs which will show the features of C++

A C++ program?
#include%26lt;stdio.h%26gt;


#include%26lt;conio.h%26gt;


#include%26lt;stdlib.h%26gt;


#include%26lt;iostream.h%26gt;


void main()


{


int choice, a;


float money,m;


clrscr();


void deposite();


void withdraw();


//int func1();








cout%26lt;%26lt;"Student ID : TATA_12345"%26lt;%26lt;endl;


cout%26lt;%26lt;"NAME : RATAN TATA"%26lt;%26lt;endl;


cout%26lt;%26lt;"(1) DEPOSITE MONEY"%26lt;%26lt;endl;


cout%26lt;%26lt;"(2) WITHDRAW MONEY"%26lt;%26lt;endl;


cout%26lt;%26lt;"(3) FIND THE ACCOUNT BALANCE"%26lt;%26lt;endl;





cout%26lt;%26lt;"Enter your choice : ";


cin%26gt;%26gt;choice; /*read the choice*/





switch (choice)


{


case 1:


deposite(); /*to deposite money*/





break;





case 2:


withdraw(); /*to withdraw money*/





break;





case 3: /*to see the balance*/


cout%26lt;%26lt;endl%26lt;%26lt;"This facility is not currently available"%26lt;%26lt;endl;


break;





default: /*if choice is not valid*/





cout%26lt;%26lt;"ERROR// PLEASE TRY AGAIN";


exit(1);


}


getch();


}





void deposite()


{


float money;


cout%26lt;%26lt;endl%26lt;%26lt;"Enter the amount of money to be deposited(dollars.cents):";


cin%26gt;%26gt;money; /*read the amount to be deposited*/





if(money%26gt;0)


{


cout%26lt;%26lt;endl%26lt;%26lt;"$"%26lt;%26lt;money%26lt;%26lt;" has been deposited in your account"%26lt;%26lt;endl;


}


else


cout%26lt;%26lt;endl%26lt;%26lt;"Please enter valid amount......."%26lt;%26lt;endl;


}


void withdraw()


{


long int rem,f,t,e;


long int mon;


cout%26lt;%26lt;"Enter the amount of money to be withdrawn: ";


cin%26gt;%26gt;mon; /*read the amount to be withdrawn*/





if(mon%26gt;=20)


{


if(mon!=30)


{


f=mon/50; /*decides the notes of $50*/


rem=mon%50;


if(rem!=20)


{


if (rem==10||rem==30)


{


f-=1;


rem+=50;


}


}


t=rem/20; /*decides the notes of $20*/


e=rem%20;


if(e==0)


{


cout%26lt;%26lt;endl%26lt;%26lt;"Nos. of 50$ note : "%26lt;%26lt;f;


cout%26lt;%26lt;endl;


cout%26lt;%26lt;"Nos. of 20$ note : "%26lt;%26lt;t%26lt;%26lt;endl;


cout%26lt;%26lt;"TOTAL AMOUNT : "%26lt;%26lt;mon%26lt;%26lt;endl;


}


else


cout%26lt;%26lt;endl%26lt;%26lt;"This amount is not possible... Please try again"%26lt;%26lt;endl;


}


else /*if amount is not possible*/


{


cout%26lt;%26lt;endl;


cout%26lt;%26lt;"This amount is not possible... Please try again"%26lt;%26lt;endl;


}


}


else


{


cout%26lt;%26lt;endl;


cout%26lt;%26lt;"This amount is not possible... Please try again"%26lt;%26lt;endl;


}


}
Reply:See this website,





http://www.deitel.com/books/cpphtp5/cpph...


Does anyone know an easier way to empty the library of WMP?

I could simply not find out how to empty the library of windows media player 11.


I followed a lot of tips after google-ing... eventually I uninstalled version11. and 10. now I still had a full library...





SO: I MOVED the LIBRARY from it's original location, from D drive to C drive...


then I asked media player to play all the music from its library... and let it find out for itself that it could no longer find the files...


that worked and then I finally got a window asking me if I wanted to empty the library from files it could not find....


Gee....


is there a better way?





thanks for reading all that...

Does anyone know an easier way to empty the library of WMP?
http://www.softwaretipsandtricks.com/win...





Just instructs you to delete the library meta data, like where your files are stored. Once deleted, restart WMP and it should rebuild it :)


Is there a library for dealing with rm files?

I am wondering if there's a library that can deal with .rm files written in c++.

Is there a library for dealing with rm files?
Try checking forums for RM files and see what you can find.

snapdragon2

To develop games using C#, XNA and 3D Studio Max?

Hi, Im trying to develop a simple game using 3DS Max to create the 3D geometry that I need, C# as programming language and XNA libraries in order for it to run, not only in Windows, but XBox too.





I've exported the file as .X and .FBX, but when I run my code, all I see is my objects "merged" as if they were occupying the same space at once.





I've seen that the geometry is well displayed if it is "frozen" from the 3D software, but the examples I've seen are using XSI and Maya, not 3D Studio Max, which is the one I have. I've tried "freeze objects", "freeze tranformations", "freeze rotation"... anything that has to do with "freezing", but it hasn't worked.





What am I missing?

To develop games using C#, XNA and 3D Studio Max?
Have you tried GTKRadiant? Sounds much easier than all the program you are currently using. Good luck.
Reply:I tend to use blitz3d or blitzmax, its great fro all sort of theng, the the forum is fantacstic.


Recover itune library... is it possible?

so my dad cleaned out our computer [by downloading/using spyware], and little did i know, it also meant that it would clean out my WHOLE itunes library and limewire library. So i was wondering if ANYONE out there can help me recover my songs in the itunes library. Now, keep in mind, that the songs that i have are not purchased from itunes, but from limewire... I am not sure if this would make a difference or not. **also, it would also be nice [ whether you know how to recover itunes library or not] if you could help me recover my limewire library.**


THIS WOULD BE A BIG HELP!


this is fairly important, b/c stupidly, i had set my ipod to 'automatically sync' (which means that as soon as its pluggd into itune, my ipod would update from what has been changed in my library.) Therefore, if i were to plug my ipod in now, all of my songs would be erased, so i will have to live like this until someone helps!


PLEASE HELP ME!


THANK YOU!

Recover itune library... is it possible?
Sorry to tell you this, but if you lost the file with the source mp3s it means you lost everything. If you had only lost the itunes you could've recover because you still had the limewire source music file. This happened to me on a different sircumstance and I had to download the music again.


How to implement sizeof operator in c lanaguage?

The sizeof operator is part of the standard library,but is it possible to


write a c program or function that does the job of sizeof?

How to implement sizeof operator in c lanaguage?
as the other person said, sizeof operator is evaluated at compile time, not run time.





basically, what it does is it looks at what you declared the size of a string to be, and returns that number.





example:


char str[100];


char message[] = "hello";


int size;





strcpy(str, message);


size = sizeof(str);


//size = 100;








if you want to know the actual size of the array then you can use strlen() function.


example:





char str[100];


char message[] = "hello";


int size;





strcpy(str, message);


size = strlen(str);


//size = 5;





can you write a function to dupe sizeof()?


im not sure why you would want to since sizeof() works for what it was intended to do. you could easily dupe the strlen() function though.





int strlen(char *str)


{


int length = 0;


while (*(str + length) != NULL)


{


length++;


}


return (length);


}
Reply:The sizeof operator is not part of the C standard library. It may look like a function call, but that is not what it really is. It is a unary operator of the C language itself, just like the unary minus operator. sizeof is evaluated by the compiler at compile-time, not at run-time.





It is technically possible to implement a function that has the same functionality as sizeof, but you would need to know a lot of intricate details about your compiler, and the function would need to have at least a slightly different syntax than the sizeof operator. For example the sizeof operator may operate on primitive data type identifers, like sizeof(int), but normal functions can't do this.

avender

Graphics and music for visual c++ console applications?

Is there a way to add graphics and music(not just beeps) to CONSOLE APPLICATIONS in visual c++ ?


Or is there a way to setup a library of graphics and music to be compatible with visuall c++ (tell me the way to do it in details) :) thanks

Graphics and music for visual c++ console applications?
It depends on your version of Visual C++. Please add that.





That helps. Okay, the first link is a link to how to get the handle of the console window and to draw right on that window. Once you get a window handle, a window is a window is a window (mostly) so writing to the DC will work . Hope you know your DC stuff, because this is fairly low level for the windows world.


C++ help!!!!!!!!!?

i need a free compiler or the Microsoft C++ visual for download





but i'm using a library computer





so i was wondering if i can use a 1 gig memory stick to download the compiler on the stick, bring it home to my laptop ( no internet connection, and practice at home?

C++ help!!!!!!!!!?
http://www.bloodshed.net/devcpp.html





This is what you want. Should have everything you need, including a nice IDE. You shouldn't have any problems downloading it straight to your stick and taking it home.


C++ project help?

Enter characters one by one until a predetermined “sentinel” or the maximum number of characters is entered. The maximum MUST be less than 96. The sentinel character can be any character other than an italic alpha or, space or a numeral (for example a # (pound) sign might be used).











Keep a frequency count of each of the italic alphas; upper and lower are deemed to be identical (FYI – in this context the term italic alpha refers to the alphabet used in the English Language, a thru ‘zed’). Also keep a frequency count of other characters entered; not each other character but characters other than italic alphas.





Output a frequency count of each italic alpha, and the others.


Determine which italic alpha occurred most often.


Output the stream entered in uppercase transposed form [ A becomes B , B becomes C etc; Z becomes A ].





Do not use any library functions.





How would I go about making this program?

C++ project help?
Done sir.
Reply:Well firstly, for outputting in uppercase, call toUpperCase() on the string or char Array.








Continuisly run the progam with a while loop. For example, while(string.length %26lt; 97)


{


collect input


if(exit character is entered)


break;


}





Italic Alpha...? Meaning?


Can i down load songs from my ipod to my itunes library on my laptop?

i lost all info on my itunes library on my old laptop due to a c drive crash. can i down load all the songs i have on the ipod back into my library?

Can i down load songs from my ipod to my itunes library on my laptop?
I am not sure how to load songs from an ipod to a computer, but i am sure if you contact Apple they will help you alot!!

violet

Library of Congress's budget is $600 million /year. Isn't it too much?

I was just watching a C-SPAN program, and they explained that budget for US Library of Congress was $600 million (FY 2006), and they hire more than 4000 people. I know it's an important library, but considering that many digitized resouces are now available online, shouldn't they restructure the system to reduce the budget?





I wonder why Bush administration has been increasing the budget for the library of congress, while they cut the basic science budget (NIH etc).

Library of Congress's budget is $600 million /year. Isn't it too much?
Doesn't seem like lot of money to me. I think they lost more than that shipping money to Iraq. Remember news stories about people losing track of millions(or billions) of dollars in CASH? That was supposed to be sent to Iraq.
Reply:I'm getting a headache.
Reply:you bet ye.
Reply:The US Library of Congress and US Archives hold the most amount of Books any Library on the planet. Real books, and hand written manuscripts cannot be converted to Digital Media, then they will no longer be original.





Preservation of the Buildings and Documents within take much of the budget. 4000 employees are not enough to manage the amount of material there.





Take a trip and visit the Library of Congress and US Archives. And you will understand.


How to read Tiff file using C++ or C#?

Hi





am working on OCR in TIFF using C++ and C#, but am not able to open an tiff file Programmatically. i have downloaded libtiff library from libtiff website , but in Visual Studio C++ it is shownig link error as LINK : fatal error LNK1104: cannot open file "dlibtiff.lib".





Can any one suggest me what to do???





plz send me the dlibtiff.lib file to me





Am waiting for replay....





Plz help me ......

How to read Tiff file using C++ or C#?
- When you say you downloaded libtiff, did you actually build the source to get a static library?





- If you do have the binary built, did you mention the library in the linker settings? And the library path?
Reply:Hi i have builded and linker is also set but still showing LINK : fatal error LNK1104: cannot open file "libtiff.lib", can any one help me. Report It



Wheres a good place to learn how to program with graphics in c?

I already understand c and I can use the windows.h library(not the graphics.h library though). Can you recommend a place on the internet where I can learn how to program graphics?





thanks

Wheres a good place to learn how to program with graphics in c?
OpenGL would be overkill for normal application.





Use QT, very easy to pick up especially if you have java background.





Visit there website, they have good tutorials





NOTE: QT uses C++

peony

Help with GD Library installation?

Hey, recently I started working with images and decided to install gd library so I could use it in my C++ apps. I am on windows xp professional and downloaded the files from here: http://www.boutell.com/gd/http/gdwin32.z... . I moved the header files into my include folder and copied all the others to the directory the compiler is in. It allows me to make a pointer to an image, but if I try something else I get an error. The code is:





#include %26lt;gd.h%26gt;





int main()





{


gdImagePtr im;


im = gdImageCreate(65, 70);


gdImageDestroy(im);





return 0;





}


and get these errors:





[Linker error] undefined reference to `_imp__gdImageCreate@8'


[Linker error] undefined reference to `_imp__gdImageDestroy@4'


ld returned 1 exit status





Can someone lead me in the right direction? I've read the documentation and would really like to get it working. Thanks for any help.

Help with GD Library installation?
You are going to have to search through the files that came with the gd library, and hope to find the functions/methods named _imp_gdimageCreate and _imp_gdimageDestroy


Upon finding, include the file in the compile commands, as the linker cannot find the appropriate function. ie,


%26lt;compiler/linker%26gt; %26lt;any_options%26gt; %26lt;your_files%26gt; %26lt;the_new_file_or_library%26gt;


RWhere can a person ,non specialist, learn to interpet their MRI and C-scan imaging films.?

Meaning:I have my films and i have to wait til next month to get doctors report. Is there somewhere ?, on line, library, ect. to find what a normal C-scan or MRI image would look like of your skeletal system especially your spine.

RWhere can a person ,non specialist, learn to interpet their MRI and C-scan imaging films.?
really, you would have to be in training to interpret it. i am in med school and have had anatomy and have taken an elective in reading mri and ct's and i wouldn't trust myself to read them. either try to bump your appointment up or do whatever you can to not think about it until then.
Reply:THere is no where else to go. even if you did take a med. Journal you don't know how to interpret it. You have to be in medical training for a couple of years just to egt the basics of it.


Thursday, July 30, 2009

Is there a time function in C++ to calculate running time in microseconds?

I am looking for a time function which can help me to calculate running time for a block of C++ code in microseconds. I see time.h library but still not clear how to use them. What about gettick()?

Is there a time function in C++ to calculate running time in microseconds?
yup in c++ u have a time counter in time.h library. It is used for putting a delay of time in the execution of the program that is this gettick() ;delay() all these are used only to delay the execuion time but not to count the time in seconds.
Reply:delay() and gettick() can help you a lot. However if you need absolute time (for synchronous networking) you may need a third-part utility.
Reply:If your app runs on Windows and you are using some version of Visual C++ you can test the time that code takes to run to a very high degree of accuracy by using Kernel32.dll. A Microsoft article describes it here...


http://support.microsoft.com/default.asp...


What is dynamic link library and how come it cant be found so i can get on myspace im?

Everytime i try to open myspace im it say Dynamis Link Library could not be found in the specified path: C:\program file\myspace\im;:;C:\Winnt;\system32;C:\... What does that mean can anyone tell me PLEASE!!!!!!

What is dynamic link library and how come it cant be found so i can get on myspace im?
a DLL file is a Dynamic Link Library...





They are like a part of a program, but not a whole program. They are created for specific tasks and shared by several programs on your computer. This is way it's called a library. A windows machine has several DLL files in the system directory.





So, the error message means this program is missing a DLL file. Does the message say which .dll file? You can always google the filename, and download it...there are several dll databases on the web. If you put a .dll file in the same directoy as a program .exe file, it will always be able to find it.





Or, just reinstall the program. A big part of Windows installers is making sure the right dlls are installed.
Reply:This DLL is where all of your software and hardware drivers are located. Sounds like you need to finde that driver by doing a search in the start menue and then re-install the driver. Or go to eBay they have this disk called drive repair disk. Take it easy..

long stem roses

I can't use C++ in .NET?

when i put statement "#include ...." in C++ by .NET.it appear "could find in library"

I can't use C++ in .NET?
Are your compiler and linker options set to include the physical file folders where the header files and object files are located?
Reply:You can use C++ and .Net at the same time, you just aren't doing it correctly. Verify that the file exists. For system include files (like iostream) use %26lt;%26gt;, for regular includes use "".
Reply:your settings must be incomplete. ie. it could not locate files or headers etc.
Reply:learn C# instead of C++


How can I compile a .dll using microsoft visual c++ 6?

I need to compile a Dinamyc Library that was originaly developed under Borland C, but now we need to migrate to Visual C++, and I would like to use the same code I used before. How can I compile a .dll using visual C++?

How can I compile a .dll using microsoft visual c++ 6?
Well u need to know how to make the dll workspace to work in it right ?





in your vc++ open new project and choose dynamic link library .. then import all you cpp and headers files into this new project .





finally just remove the default cpp file created with the new project that u don't need it anymore , and save yourworkspace and you can start compilation now .
Reply:Does it need to be recompiled? One of the strengths of DLLs is their reusability - you can write a DLL in C then import it into pretty much any language and use it quite happily, and this normally doesn't mean recompiling.


Where's a good place to learn how to program with graphics in C?

I already understand the basics of C, and I have a windows.h library, can you recommend a website where I can learn to program with graphics?

Where's a good place to learn how to program with graphics in C?
www.opengl.org/

innia

Government documents in a library are classified according to which of the following schemes?

A) Library of congress


B) government printing office


C) Dewey Decimal


D) Superintendent of document

Government documents in a library are classified according to which of the following schemes?
c
Reply:D. it's correct answer. Report It

Reply:You should go to a library an ask a librarian.





Why is this a Law %26amp; Ethics issue?


Where can I find Turbo C++ 4.5 program .......... PLEASE HELP ??

I'm software student and I need turbo c++ 4.5 program to study ... the library on my college ask me to wait 4 days to get the program ... BUT I have an exam next monday... pls , do you know a site to download the program for a trail period .. just for studying up till my turn to get the program from my college !!!

Where can I find Turbo C++ 4.5 program .......... PLEASE HELP ??
Try half.com
Reply:try


http://www.quickerwit.com/links/114894.h...


1. If 20 Pounds of Potatoes cost $3.99, what is the price per pound? a. $1.99 b.$0.50 c.$0.20 d. 0.25?

2. Khalid can type 120 words in 2 minutes on his word processor. How long will it take knalid to ype a 2,000 word paper? a.12 minutes b.33 1/2 minutes c. 60 minutes d. 240 minutes


3. franchesca works 20 hours per week at a library and earns $10 per hour. If she quits her job and gives music lessons intead, for which she charges $25 per hour, how many hours per week would she need to give lessons to make as much money in a week as she was making at the library? a. 4 hrs. b 6hrs. c. 8hrs. d.12hrs.


4.suppose the population of a city was 10,000 in 1950 and it increases 250 percent by 2010. what will the population be in 2010? a.10,250 b.25,000 c.35,000 d.250,000


5. simplify 6-{2(3-7)+9}


6.Farah was riding her bicycle on the 10mile Lakeshor Trail around Kincaid Lake. After she had completed 2/3 of the trail, about how many miles had she biked? a.3miles b.5miles c.7miles d. 8miles


7. A model of the U.S.S. Kidd is 18.82 inches long. If the scale is 1:240, how long is the actual ship?

1. If 20 Pounds of Potatoes cost $3.99, what is the price per pound? a. $1.99 b.$0.50 c.$0.20 d. 0.25?
the answer to the first on is C ($0.20). pehaps some other people will answer thew rest. C ya!
Reply:BASIC MATH


1. $3.99 / 20 = $0.1995 rounding off b. $0.20





2. 120/2 = 2000/x


120(x) = 2000(2)


120x = 4000


x = 4000/120


x = 33.33 min but since you don't have this choice so b. 33 1/2 min





3. 20hrs * $10 = $200


x * $25 = $25x


$25x = $200


x = b. 8 hrs





4. 10,000 * 250% = b. 25,000





5. 6-{2(3-7)+9} follow the MDAS rule


6 - {2 (-7) + 9


6 - {-14} + 9


6 + 14 + 9


=29





6. 10 * 2/3 = 6.67miles round off to c. 7miles





7. 18.82 * 240 = 4516.8
Reply:C. 20cents





2. 33.34 minuites





3. 8 hours
Reply:1) 3.99 / 20 = 0.1995 (closest to 20¢)


2) 120 / 2 = 2000 / X cross multiply


120 X = 4000 divide by 120


X = 33 1/3


3) 20x 10 = 200


200 / 25 = 8


4) 10,000 x 250% = 10,000 x 2.5 = 25,000


5) 6-{2(3-7)+9} parenthesis first 6-{2(-4)+9}


multiply 6-{-8+9} parenthesis next 6-{1}


answer is 5


6) 10 x 2/3 = 6.666 closest to 7


7) 18.82 x 240 = 4516.8 inches or 376.4 feet
Reply:wow dat iz really hard srry cant help b/c i didnt kno wat i wuz doin when i had the sam wrk n class lol hi tarrevia
Reply:Here are my answers.


1. c


2.b


3.c


4.c.


5.6


6.c


7. 4516.8 inches


Scrolling a 2D tiled map in c++?

Hi everyone. I'm developing a map editor for 2D RPG games in c++. No MFC, nono special libraries, just pure Win32. I am, of course, using tiles, and I can't figure out how to scroll my map via scrollbars (duh). Also, if possible, I would like to be able to scroll the map by holding down the right mouse button and dragging the map. Advice on either of these would be helpful, and example source would be even better. I've looked on MSDN for topics on scrolling, and all I get is a whole bunch of bmp.bits.blahblah.ramble. It's all so confusing to an aspiring high school kid. Not to mention, I've also scoured Google and Altavista for help, but I can't find much that pertains to my dilemma without paying for a CD. Once again, any help would be appreciated.

Scrolling a 2D tiled map in c++?
For your WM_MOUSEMOVE message handler, you need to use double buffering (to avoid flickering) and sliding window (to draw a part of the image).


Draw the part of your image into memory device context and then copy to your real drawing area with BitBlt.


You can also render the whole image into memory and BitBlt() desirable part of it according to mouse movement


True or False: Isn't Java just stripped down C++ with some internet junk in it?

Why didn't they just leave it C++ and add a few libraries? And is it interpetive or compiled? I feel like java is a big confusing mess - just blowing off some steam. I love plain old C, by the way. And javascript is okay too. But OO stuff is overrated in IMO. What do you think?

True or False: Isn't Java just stripped down C++ with some internet junk in it?
how about this: C sucked .. C++ sucked a bit less ... java is so bloated that I call it the cobol of the '90s.





I've studied and used dozens of alternative languages...They each had their places, though some no longer have much use.





C++'s little brother javascript (no relation to java) is a great language


Perl 6 looks like it's going to be a real contender


Python, Ruby, and others are the legacy of C.





Java is an offshoot that it is probably best left to fester along with VB and COBOL.





and OO really helps.. especially if you have an "Object Engineer" who controls the team's objects!


Whew! I feel better now!
Reply:I disagree. Java is quite different from C++. I believe it's interpreted bytecode. If you think OO programming is overrated, try creating a large software project entirely in C and then tell me OO is overrated.
Reply:java's a lot more user friendly than C++
Reply:Object-Oriented Programming is designed with certain objectives in mind. There are some problems which can be solved a lot more efficiently and reliably with an OOP approach, and the languages invented for the purpose reflect this need. You will have to study quite a bit of theory before you can make an informed and educated statement about the usefulness (or lack thereof) of a certain theoretical concept such as OOP.





Until you have a firm grasp on the theory behind it, please refrain from making inane assertions pertaining to the suitability of such constructs.
Reply:But java has one MAJOR feature that C++ does't: portability. Sure C++ compiles to machine code, but good luck finding your win32 libs on a linux box...





Java runs on any OS that runs the VM (since its interpreted), this is a huge difference.





Also OOP has a lot to do with organization; with a huge project (100k+ lines of code), nobody wants one gigantic DLL with a gazillion functions in it. These days, we take large projects like that and break it down into modules (classes), to make it more manageable.
Reply:false
Reply:Nah, Java is pretty nice once you've been in the programming game for a while. It completely gets rid of pointers and is referred to as a managed language. It is compiled into bytecode (for minimum size) and is then interpreted at run time by your installed java VM. Getting rid of pointers makes your life MUCH easier.


What was the debate between C.S. Lewis and Tolkien?

I'm writing an essay for school on C.S.Lewis' life, and I've finished it, but I'm stumped about the debate between Lewis and Tolkien. (And I HAVE looked in the library plus online, too, Lol)





Anyways...C.S. Lewis was the famous Oxford professor who wrote the Chronicles of Narnia %26amp; the Space Trilogy series. Tolkien was the author of the Lord of the Rings. My friend said that there was a debate between those two and that Lewis wrote his series to counteract Tolkien or something like that. I dug up a few things in research about their friendship, and that they were very good members of the Inkling club but I found nothing about debates.





If you have a link or book to refer to, I'd appreciate it!

What was the debate between C.S. Lewis and Tolkien?
I doubt that their relationship would be characterized as anything as formal as a debate, or even a deep-seated rivalry. But there were differences which were probably exacerbated in the 1950s.





Tolkien was Catholic; Lewis was Anglican. Tolkien was an introvert, reserved, enjoying solitude, and the quiet company of as small group of associates, as in the Inklings; Lewis was an extravert, somewhat loud and boisterous. Lewis was known to have made comments about women as "the weaker sex"; Tolkien may have been uncomfortable with these comments,whether or not he was with the sentiments. Lewis wrote a number books on Christian apologetics that became "evangelical," something that Tolkien would not have done, or perhaps approved of altogether.





In the 1950s, Lewis's Narnia books became very popular bringing him a lot of pubic attention, including reading his works on the radio; Tolkien's works had not yet come to such public prominence. As erudite as they both were, Tolkien was probably a more serious and meticulous scholar than Lewis; Lewis, a more articulate critic than Tolkien. Then Lewis left Oxford for Cambridge. Lewis had been a bachelor for most of his life; Tolkien was married and a family man. I have heard hints that he may not have approved of Lewis's eventual marriage to Joy Davidman, a divorcee.





None of this--even if it is all true--would have constituted a "debate" or "rivalry."





I suspect that Tolkien was not as appreciative of the Narnia series as Lewis would have been of, say, The Hobbit. For three reasons: (1) Lewis obviously designed the Narnia books to be more popular with readers, less demanding than Tolkien's; (2) Lewis made more eclectic use of his mythic sources, including Greek, Roman, Christian, as well as Anglo-Saxon whereas Tolkien was more narrowly "English" with careful attention to their Celtic and/or Scandinavian sources; (3) the Narnia books were obviously Christian in content, perhaps even allegorical: Tolkien's were not. In fact, though the LotR series appears to many readers to reflect (somewhat allegorically) on the evil of Hitler and Nazism, Tolkien insisted that that was not his intention.





If there was tension between the two authors, probably it stemmed from Tolkien's lack of enthusiasm for the popularity, mythological eclectism, and Christian allegory of the Narnia stories. Simply reading The Hobbit and The Lion, the Witch, and the Wardrobe together will, in fact, demonstrate these differences in their style, stories, and consciousness of their readers.





However, unless biographers have come up with lesser known details of their relationship, I suspect that the distance between them had more to do with Lewis's change in position and marital status than with any open disagreement or rivalry. I feel certain that none of their fiction was written in a spirit of debate with one another.
Reply:Whoops, I forgot to pick a best answer! Anyway I voted for the above, it was very thorough and informative. Thanks B Frank! Report It

Reply:Thanks for your comment.





Enjoy your reading (and study) of Tolkien and Lewis. You can't beat 'em.





And if being addicted to Y!A means you ask good questions like this one--well, that ain't so bad, is it? Report It

Reply:yeah that's what they say ....suppoudsedly the debate was that The Lord of the Rings was better than The Chronicles of Narnia......C.S.Lewis started writing the Chronicles, and when he was in about book two, The Lord of the Rings started geting published and stole the light from Mr Lewis so supoudsedly Mr Lewis got mad at Mr Tolkien telling him he shuold have waited a little longer to publish his books so blah blah i dont believe any of it because I've read The Chronicles of Carnia, The Space Trilogy, and The Lord of the Rings, and I am starting the Screwtape Letters by C.S. lewis, and that book was dedicated to Mr Tolkien. so i dont think we should believe stories told my people who didnt like that Mr C.S. lewis showed the Christan faith to Mr Tolkien

rosemary

Please suggest me an alternative to turbo c++ v3.0 for windows...?

i tried dev-c++ but it doesnt run the old libraries used in turbo c++





i need an IDE+compiler


Please help

Please suggest me an alternative to turbo c++ v3.0 for windows...?
I like Bloodshed


http://www.bloodshed.net/


///
Reply:you can try


Borland Turbo C++ Suite


Symantec C++ 7.0 or 7.2


Microsoft Visual C++


GNU C++
Reply:I use Bloodshed Dev-C++ and have never had a single problem with it.
Reply:a BMW


I want to download a compiler for c++ but..?

i want to download a compiler for c++ but i'm using the library's computer.





i'm 15





can i use a memory stick, bring it home to my laptop, (no internet) and use it on there?

I want to download a compiler for c++ but..?
If your pc is powerful enough(less then 3 years) and memory stick is big enough (%26gt;512mb)


try freeware MS visual C++ 2005 express, it's the best c++ ide plus compiler i come across


http://msdn.microsoft.com/vstudio/expres...


otherwise try this decent compiler,


http://www.digitalmars.com/
Reply:I'll assume you have windows because linux and unix come with compilers.





I would say use visual c++ but you need the internet to download and install it.





try gcc and download it to a flash stick





http://gcc.gnu.org/

wallflower

If you need to reformat you C drive and reload your itunes what happens to the tracks purchased? are they lost

I need to reformat my pc due to a virus. On my C drive i have a large library of itunes purchased. I am afraid that I will loose all thoses songs and have to re buy them. Does someone know what happens to song previously purchased if you had to reload itunes. Are they lost forever or is there a way to get them back as you have paid for the download.





Thanks

If you need to reformat you C drive and reload your itunes what happens to the tracks purchased? are they lost
STOP.





Download windows defender from microsoft - it's free - let that deal with the virus.





Also try Avast Anti Virus if Defender fails.





You WILL lose all your tunes if you reformat.





Try copying the "My music" folder to a DVD or something first.
Reply:yes
Reply:If you have all of your tunes on your ipod there are ways to transfer song from ipod to computer.





I have done this 3 times now for different friends and it works but for some reason, apple dont like us doing it?
Reply:I had this same problem, and yes, they are lost. The best thing for you to do is go buy an external hard-drive to backup your entire music library too (along with your documents etc) before trashing the machine. I got a 250Gb drive for this, it only cost me £80, and if you are in the US, will be cheaper still.
Reply:You have three options to get purchased tracks back.





1. Find and download a program to get the songs back off your iPod.





2. The new iTunes 7 will take only purchased tracks back off your iPod for you if the computer is authorized to play them.





3. Contact Apple and ask them nicely. They have bailed me out once before. I think it is kind of like returning items to a store. They probably keep track to make sure you aren't doing it too much, but they don't mind helping out real customers with real problems.
Reply:That happened to me a while back, too. I bought an external hard drive. Got a 100 gb drive for $60 at Best Buy. Plug it in and copy all your songs.
Reply:you can make a back up for all your songs. use a cd-rw and burn them with using the data disc format. Itunes 7 makes it easier