Sunday, August 2, 2009

My windows has to be reformatted, how can i retain my iPod's library???

u c...my PC is about to crash and i have to reinstall the operating system, how do i maintain the songs and the library of my ipod???

My windows has to be reformatted, how can i retain my iPod's library???
Back it on on a portable usb flash drive. Starting at about $11 at any electronics or office supply store.
Reply:back it up onto a seperate cd or disc, then reload it into your computer incase if anything deleted..........that should work


Limewire...i can download songs, but they don't go directly to my library on window media player?

right now, my downloaded songs go under C:/program files/windows media player...how or is there a way to get them to download directly to my WMP library?

Limewire...i can download songs, but they don't go directly to my library on window media player?
limewire blows I use bittorrent, wanna I should come over and help you with that?
Reply:you should go to a place that i go to, 360share.com
Reply:No I dont think you can get it to directly to your media player library...you will have to manually do it yourself.
Reply:Theres no way of doing that. Renew the WMP song list.. is a pain.....
Reply:After downloaded click and drag to your media player both limewire and media player must be open
Reply:there not supposed to they go to ur limewire library then if u wnat them on wondows media player u have to transfer them
Reply:I dont know but I just click on "add to library" in media player and say I want the songs from C drive moved to media player library. Doesnt take too long to tranfer to library either.


I m running any c program on turboc, error message is coming that can not include header file, why?

when ever i am running any c program, the message is coming like 'undefined symbol printf' or 'function printf should have a prototype', i want should i need some thing else when i download turboc like library or something else.......my op system is widow xp and i am fed up with this getting error

I m running any c program on turboc, error message is coming that can not include header file, why?
Make sure the header files (stdio.h) are available on your computer. Are you using something like include %26lt;stdio.h%26gt; or something like include "stdio.h"?





If you are using %26lt;stdio.h%26gt; then your compiler (TurboC) should look in it's path to find the files. Check how to tell TurboC the correct directories for include files.





If you are using "stdio.h" then this is probably wrong. With the quotes usually means include in the same directory as the source files. Try changing to %26lt;stdio.h%26gt; instead.





Let me know if I can be of any more help.


TAKE IT AS A CHALLENGE FROM ME...............C++ QUESTION???? RELATED TO MACRO #define.............?

Can you write a program in C/C++ which takes an integer number as an input and returns the same number as a string using macro expansion. (#define macro.) Note you can not use any library function and other method. Don't try if U do not use #define macro only.





If U can I Guarantee to U will win 10 points.


Thanks!

TAKE IT AS A CHALLENGE FROM ME...............C++ QUESTION???? RELATED TO MACRO #define.............?
#define a readln();





main(){printf("%i",a);}

gifts

Can any one help me hw do a simple project on c++ based onarrays,function,randomize etc based on topic quiz?

actually can some 1 send a simple project based on quiz in c++ language and i shpuld me mostly based on usage of arrays,strings,standard library functions and concept of functions%26gt;???

Can any one help me hw do a simple project on c++ based onarrays,function,randomize etc based on topic quiz?
i can .. mail to ranjith_1shetty@yahoo.co.in


i ll send u a graphics editor project done in c++ running on linux..


How to write a calendar in C which is same as cal function in unix?

How to write a calendar program in C which is same as cal function in unix, the exact website is good, which just using standard library

How to write a calendar in C which is same as cal function in unix?
That is open source code already written in C.

innia

Wher can i find a C.D which can take my stats and give me money for free In the online runescape game?

IS there a library in west l.a with a zip code of 90024-90025 that i can buy this c.d from?

Wher can i find a C.D which can take my stats and give me money for free In the online runescape game?
Theres no such thing.
Reply:If you find a CD and use it - you'll be kicked out of the game. It's in their rules of the game #7 - macroing.





Just so you know - others can also report you for trying. And anyone who answers this post with that info, can also be reported.


Do you know what change Obama is going for in Washington, D. C.? Do you want to know?

This is what Obama would change from happening with our tax dollars. The frivolous spending in Washington, D.C. is incredible and not right at all; check out this story and tell me what you think:





"Charlie Rangel, a New York Democrat, obtained $2 million earmark to establish a public service center that is named after him that supposedly would prepare individuals for careers in public service. A college spokesman said the center would include an office for Rangel and a library for his papers and memorabilia.





I mean who the heck authorized our tax dollars to go for a library for individual congressmen?





Representative John Campbell (R-CA), said Rangel should be ashamed of using tax dollars to build a monument to himself.





But Rangel, who took office in 1971, brushed aside the criticism, and told John he would have a problem if he did it, because John Campbell had not been around long enough to inspire a building like what he was getting the earmark for."

Do you know what change Obama is going for in Washington, D. C.? Do you want to know?
Can we change that? Yes we can! Obama today in Ohio, in Texas, in Vermont, in Rhode Island. Obama in April in Pennsylvania. And if it is like that, can we change America? Yes, we can.
Reply:Anyone who wants to know fuller details of the Obama platform, you can read it at his website:





http://www.BarackObama.com/
Reply:Yeah we need to end the "buddy system" that is in place. To think, that could have went to paying down the national debt! Or some real help in New Orleans.
Reply:Obama will not change that. Charlie Rangel I'm sure is a friend of Obamas. Obama is one of those earmarking Senators. He has been named on the top ten of Ten Most Wanted Corrupt Politicians” for 2007.





John McCain is the only one running not on that list and he is the only Senator running that did not write any earmarks.





Don't be fooled by speech. Judicial Watch does not endorse any candidates.


UPDATE:


I love the thumbs down when someone actually does have a source of information.


you guys are FOOLS. He is as corrupt as the rest.
Reply:No I don't
Reply:I believe Obama will bring a multitude of positive changes to this country. Especially special interest and frivolous spending of taxpayer dollars.
Reply:Not much. Politic as usual.
Reply:Higher taxes, more government interference in your business, more welfare. Socialism.


What software and code is used to make professional games? Is it really C++?

I browsed on Y! answers for similar topics, and I heard a lot of people say that video games were made with C++. What the hell? How does this work? It takes forever to create even the simplest game with C++; ActionScript or Game Maker Language would take far less time. And what kind of program creates games? Surely they don't use Visual C++ or something like that! Is the software setup similar to Game Maker, where there is a library of graphics, sounds, code, objects, and rooms?

What software and code is used to make professional games? Is it really C++?
Simple games "take forever" because it's likely only you sitting at your screen cranking out code. Any significant project requires several man-hours of requirements analysis and architecture planning, and then you have to code it, and even worse, debug it. If you're talking about a "cool" game, this could take one person alone years. Many professional games are made with C++, but they are made by organizations of hundreds of (professional) people using engineering practices to minimize the amount of effort needed to create something so complex.
Reply:just a comment : my dad knows how to use the C++ thingie but he said that i am too young to learn how to use it. he only teaches me how to use the visual basic thingie. he showed me a super-simple game he made on C++ once and it took him 1 hour to make it so if u are new to things like that, u should start with something easier. EVEN my dad doesn't know much about C++. (my dad sells a program made on C++ in a program-selling site. he set the program's price to 30$ and only 1 person bought it ~_~ (the program is about astrology stuff))(but 1 more thing : U CAN MAKE A VIRTUAL PET GAME ON VISUAL BASIC ^_^ (just ask your parents to help u if u really want to make it. if your parent don't know ANYTHING about that, just yahoo/google search for some codes/info))
Reply:It's all about performance. The languages you are referring to are interpreted script languages. This means they run inherently slower than applications compiled to machine code by C++. Faster code means faster rendering times, better AI, more features, etc.





Also, script languages like ActionScript or tools like Game Maker have not been around for long relative to how long games have been around. Since C and C++ were known to have excellent performance and both were a (relatively) high-level language (making them both much easier to learn than assembly), early games were predominantly written in C and later C++.





Plenty of games have been written using tools such as Visual Basic, BlitzBasic, Game Maker, ActionScript, DarkBasic, Delphi, or one of dozens of other languages. However, none have been as entrenched as C or C++ mostly due to the history of the game industry.
Reply:Yes it's all C++, mostly it's based based on the random generator functions and you need C++ to do that.





Sorry I know it's a pain but that's just the way it works.
Reply:Yes, it's really C++. More specifically, they write their game engines in C++, and those usually include a macro or scripting language that allows them to manipulate game-level objects.





And yes, they do have libraries of graphics, rooms, sounds, etc. They make those, too. 3D models are, for example, build with a 3D design application and are then converted to the game engine's native format with a conversion tool (that the game development company usually writes), which often also performs animation transformations, etc.





When all is said and done, the elements are combined, the game engine starts, reads it's macro scripts and loads all object and game data, and off it goes.





You also forget that ActionScript and Game Maker are just scripting layers set on top of compiled engines, usually written in C++. Almost all desktop software in the Windows is written in either C, C++, or Visual Basic. C/C++ is preferred for things like video games because it is a good balance between hardware abstraction and performance.





And yes, it does take a long time to create game engines. That's why most small development companies usually start by licensing someone else's game engine and building their game with it. For example, the open-source Quake engine. Developing a new game engine can be a multi-million dollar undertaking.


Can you type in another language in a C++ program?

I'm writing a C++ program that involves translating certain things to other languages. The program itself works fine, except that when it comes to languages that don't involve the same letters as English does, I have to type in the pronunciation.





Hopefully this example will show up:





The number 1 in Hebrew is אחד





But when I type that into the C++ editor, it comes out as:


ẦầẨẩẫẬậắỎỏỞ





Or when I write it into Microsoft Word and copy-and-paste it, it comes out as only ?'s.





I end up having to write "1 in Hebrew is pronounced Echad".





Is there any way to type in another language? Can I #include a language library or something? Or is it a lost cause?

Can you type in another language in a C++ program?
The character encoding is probably wrong. For Hebrew, either ISO-8859-8 or Windows-1255 are what's typically used.





To get the text to display properly in Microsoft Word, try using the font "Arial Unicode MS". Information on the font is available at http://en.wikipedia.org/wiki/Arial_Unico... .





The proper steps for viewing the font properly in your C++ editor depends on what editor you are using -- what editor are you using, anyway? -- but generally it involves going into the tools or view menu and selecting the proper character encoding.





And, um, you're going to want to have a look at this excellent article: http://www.joelonsoftware.com/articles/U...





UPDATE:


When I copied the characters into Microsoft Word, they came out fine (i.e., as they are supposed to). What version of Microsoft Word do you have installed?
Reply:The font determines how it comes out as well. Different fonts have different "special" character codes.
Reply:I guess, what you can use is just put in the unicode number for the character for example, the character A in katakana is 30A2, and use printf instead of cout to display the character. If the destination computer supports this, hopefully, it will come out correct. Otherwise, I spose, it IS problematic...

gerbera

How do you do this in C++?

i really want to make a simple 2d game in c++ but i don't know how to actually write the code witch would make a character move around the screen. how can i do this. i watched a video on youtube with a guy that was typing code with the allegro library, and he made a charactor in paint and at the end he made this guy moving around the screen how do i do this in C++...im using devc++ i dont know if that can do it or not.





thanx!

How do you do this in C++?
To write a game like this you should understand the Model-View-Controller pattern and know a good bit about a graphical library package that you think will suite you. C++ might right to write this game in but there are other technologies that could ease you in a bit smoother (Java and Flash might be something to consider).
Reply:You can find some good tutorials in OpenGL (graphics library) from NeHe. nehe.gamedev.net. This is a good reference site if you are just starting out in C++ and it will give you the fundamentals of the graphics libaries, even 3d development. Basically create a picture, create a square and map the picture to it. Good luck ;)


How to write a program in C by turning a hexadecimal to a decimal?

im having a hard time with this right now. help





write a c program that utilizes strings and numeric conversions





1. Read strings using a function you write called getStr ().


2. Write a function named hextodecimal () that takes in (only) a string parameter representing a positive hexadecimal number and return its decimal equivalent (integer). This function returns -1 if the string provided connotes to a negative number and/or is comprised of invalid characters.


-note: you may not use any library functions in this function- you must write all code necessary to enact the coversion and return the appropriate result.


-this function must accept both upper and lower case versions of the hex character.


-You may want to write an additional function that vets any string for invalid hex character


3. If original string is invalid, output an unambiguous message to the user and prompt for another input.


4. Output the original String, followed by its decimal equivalent. Clearly label which is which

How to write a program in C by turning a hexadecimal to a decimal?
I don't want to give you the entire solution, but I will give you some pieces to help, and comments where you need to fill in the code. This assignment justifiably restricts you from using library functions, which you would normally use to do much of the work for you. Use of fgets to get the user input is, I assume, allowed.





Note that I put the validity check in getStr, but part 2 of the problem statement wants you to check validity in hextodecimal, which is probably a better place to put it.





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


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





typedef enum { false = 0, true } Bool;





double Pow(const double x, const unsigned y);


int AtoI(const char c);


Bool isValidHexChar(const char c);


Bool getStr(char *s);


int hexToDec(char *s);





#define MAX_STR 256





int main(int argc, char *argv[]) {


char s[MAX_STR];





memset(s,0,sizeof(s));


if (getStr(s) == false) {


puts("\ninvalid entry");


} else {


printf("\n%s = %d\n",s,hexToDec(s));


}


return 0;


}





Bool getStr(char *s) {


char *p = s;


Bool isValidFlg = true;





/* prompt for hex value and read it using fgets */


/* remove '\n' from end of entered string */


/* loop for each character in the string, */


/* calling isValidHexChar( ) to check validity */





return isValidFlg;


}





int hexToDec(char *s) {





/* loop from the last char in s to the first, */


/* calling AtoI and Pow as you go to convert */


/* from hex to decimal */





return result;


}





double Pow(const double x, const unsigned y) {


double result = 1;


int i;





if (y %26gt; 0) {


for (i = 0; i %26lt; y; i++) {


result *= x;


}


}


return result;


}





int AtoI(const char c) {


int i = -1;


if (isValidHexChar(c) == true) {


if ((c %26gt;= '0') %26amp;%26amp; (c %26lt;= '9')) i = (int)c - 0x30;


else if ((c %26gt;= 'a') %26amp;%26amp; (c %26lt;= 'f')) i = (int)c - 0x57;


else i = (int)c - 0x37;


}


return i;


}





Bool isValidHexChar(const char c) {


Bool validFlg = false;


if (((c %26gt;= '0') %26amp;%26amp; (c %26lt;= '9')) ||


((c %26gt;= 'a') %26amp;%26amp; (c %26lt;= 'f')) ||


((c %26gt;= 'A') %26amp;%26amp; (c %26lt;= 'F'))) {


validFlg = true;


}


return validFlg;


}
Reply:try to avoid hexadecimal value....


How to write a program in C by turning a hexadecimal to a decimal?

write a c program that utilizes strings and numeric conversions





1. Read strings using a function you write called getStr ().


2. Write a function named hextodecimal () that takes in (only) a string parameter representing a positive hexadecimal number and return its decimal equivalent (integer). This function returns -1 if the string provided connotes to a negative number and/or is comprised of invalid characters.


-note: you may not use any library functions in this function- you must write all code necessary to enact the coversion and return the appropriate result.


-this function must accept both upper and lower case versions of the hex character.


-You may want to write an additional function that vets any string for invalid hex character


3. If original string is invalid, output an unambiguous message to the user and prompt for another input.


4. Output the original String, followed by its decimal equivalent. Clearly label which





with ASCII of ‘0’=48; value of ‘A’=65

How to write a program in C by turning a hexadecimal to a decimal?
suggest you post a code sample of what you have done already. this way people can help you and not GIVE you the answer.

rosemary

What's the most accurate way to compare money values represented as float variables in c++?

Using only standard c++ and stl. No outside functions or libraries.

What's the most accurate way to compare money values represented as float variables in c++?
The real question is whether you should be representing money as a float in the first place. Many, myself included, say no.





If you consider a banking application, for instance, even the smallest rounding differences when factored over billions of dollars per day for many days add up to very real amounts of money. Customers and regulators aren't too receptive to losing millions of dollars to "rounding errors".





Consider just using some form of int, long, or long long and using pennies (or whatever is the smallest unit of the currency you are dealing with) as your primary calculation unit. You add some minor computing overhead by having to multiply and/or divide by 100 at the appropriate times (e.g. displaying amounts) but your results will be vastly more accurate over time.
Reply:You can mimic rounding by adding 0.005 to the money value, then setting the precision to 2 decimal places. For example, $35.091 will become $35.096. Once the precision is set, C++ will truncate everything after 2 decimal points, and your money value will become $35.09. If, however, the money value was $35.097, adding 0.005 would make it into $35.102, and the truncated value will become $35.10. Just make sure you run whatever comparisons you are doing after the values are truncated.





Hope this helps,


Zach
Reply:You can always make use of sprintf().





sprintf() is like a printf() function. But rather than sending the output to the screen, it rather sent to a string (array of characters).. So, you make make use of the advantages of a printf() parameters and features.. What am I talking about?





Well, if you don't know how to present a floating number with its rounded form using printf(), here's how...





printf("%.2f", num);





This will print 'num' in two decimal places.. Notice the decimal point sign (.) and the number 2 following it (representing the number of decimal places)..





So, if you use the same procedure but in sprintf(), it would be like this...





char str[10];


sprintf(str, "%.2f", num);





where str is the array of characters to hold the converted value.. So later, if you want to use this value for computations, just convert the number using atof().. Like this..





num = atof(str);





Got it? Then, it would be easy for you later to compare money values... Though this is not really extremely fast for a solution, but it is actually just being resourceful. This is fast enough even for a huge application.. By the way, don't forget to include stdlib fo the atof() i think.. (^^,)





If you need to ask more, or if I missed to answer a part, just, leave a comment in one of my blog posts, then I'll know how to answer back.. Here's my blog.. http://ronaldborla.blogsome.com/


Pls,can someone send me a C++ project of around 400lines whichcan run on linux (fedora 3)O.S.i need in 2 days?

I need this project and i have to give my presentation.


this C++ project ,which should run on linux O.S(fedora 3), can be on any topic like library management,hotel management,ticket confirmation for plane etc.this project should be around 400 or 500lines.if someone sends me within 2days ,i shall be very grateful to him/her.pls send me the code and withthis whatever neccessary.

Pls,can someone send me a C++ project of around 400lines whichcan run on linux (fedora 3)O.S.i need in 2 days?
there aint a person on the planet that is going to do all that for you - by all means ask questions, but expecting people to code entire projects for you is just ridiculous.
Reply:You are amazing. Why are you in school? Certainly NOT to learn anything.


Can any one give me asite that can I down load source c++ code about sun eclipse using open gl???

Hello every one. I need source c++ code that draw the sun eclipse step by step,using open GL library.


thanks for your care!

Can any one give me asite that can I down load source c++ code about sun eclipse using open gl???
I haven't done much open gl stuff with C++ but... looking at their site i pull this up.. hopefully it helps.
Reply:who cares?
Reply:meatspin.com and download.com


I can't download Mansionpoker.net. It replies: error: library not registered?

url://file://C\Documents and Settings\Owner\Local Settings\Temp\ggp9D.htm Line:10 Char:29 Error: Library not registered Code: 0

I can't download Mansionpoker.net. It replies: error: library not registered?
then perhaps thats what you should do, you just said the magic word,so why not just do it,seems that you know what to do, and you,er afraid, if you dont download ang illegal songs, you have nothing to worry about.

wallflower

PLease provide a short explanation with each answer of my C++ program....?

Assuming Point is a class type with a public copy constructor, iden¬tify each use of the copy constructor in this program fragment:


Point global;


Point foo_bar(Point arg)


{


Point local = arg;


Point *heap = new Point(global);


*heap = local;


Point pa[ 4 ] = { local, *heap };


return *heap;





______________________________...





Exercise 13.10: Define an Employee class that contains the employee's name and a unique employee identifier. Give the class a default constructor and a constructor that takes a string representing the employee's name. If the class needs a copy construc¬tor or assignment operator, implement those functions as well.





______________________________...








Among the fundamental operations a pointer supports are dereference and arrow. We can give our class these operations as follows:


class ScreenPtr { public:


// constructor and copy control members as before


Screen %26amp;operator*() { return *ptr-%26gt;sp; }


Screen *operator-%26gt;() { return ptr-%26gt;sp; }


const Screen %26amp;operator*() const { return *ptr-%26gt;sp; } const Screen *operator-%26gt;() const { return ptr-%26gt;sp; } private:


ScrPtr *ptr; // points to use-counted ScrPtrclass








Exercise 14.20: In our sketch for the ScreenPtr class, we declared but did not define the assignment operator. Implement the ScreenPtr assignment operator.





______________________________...





Exercise 14.21: Define a class that holds a pointer to a ScreenPtr. Define the over¬loaded arrow operator for that class.


______________________________...








Exercise 15.4: A library has different kinds of materials that it lends out—books, CDs, DVDs, and so forth. Each of the different kinds of lending material has different check-in, check-out, and overdue rules. The following class defines a base class that we might use for this application. Identify which functions are likely to be defined as virtual and which, if any, are likely to be common among all lending materials. (Note: we assume that LibMember is a class representing a customer of the library, and Date is a class representing a calendar day of a particular year.)


class Library { public:


bool check_out(const LibMemberk);


bool check_in (const LibMember%26amp;);


bool is_late(const Date%26amp; today);


double apply_fine();


ostream%26amp; print(ostream%26amp; = cout);


Date due_date() const;


Date date_borrowed() const;


string title 0 const;


const LibMember%26amp; member() const;





______________________________...








Exercise 15.8: Given the following classes, explain each print function:


struct base {


string name () { return basenatne; }


virtual void print(ostream %26amp;os) { os « basename; } private:


string basename;


};


struct derived {


void printO { print (ostream %26amp;os) ; os « " " « mem; } private:


int mem;


};





If there is a problem in this code, how would you fix it?





______________________________...








Exercise 15.13: Given the following classes, list all the ways a member function in Cl might access the static members of ConcreteBase. List all the ways an object of type C2 might access those members.


struct ConcreteBase {


static std::size_t object_count(); protected:


static std::size_t obj_count;


};


struct Cl : public ConcreteBase


{ /* . . .*/};


struct C2 : public ConcreteBase


{ /* ...*/};





______________________________...





Exercise 15.25: Assume Derived inherits from Base and that Base defines each of the following functions as virtual. Assuming Derived intends to define its own ver¬sion of the virtual, determine which declarations in Derived are in error and specify what's wrong.


(a)Base* Base::copy(Base*);


Base* Derived::copy(Derived*);


(b)Base* Base::copy(Base*) ;


Derived* Derived::copy(Base*) ;


(c)ostreamk Base::print(int, ostream%26amp;=cout);


ostream%26amp; Derived::print(int, ostream%26amp;);


(d)void Base::eval() const;


void Derived::eval();

PLease provide a short explanation with each answer of my C++ program....?
And what makes you think that people here have enough free time to do your homework, when all you could do was to copy and paste it here?


Windows Media Player XP can't locate C.D.?

After burning and rip'g C.Ds several weeks,the p.c.suddenly can't find the C.D. in the player.


I've pressed F5 key but without any luck,I also have no sound through the library.PLEASE can any one help?

Windows Media Player XP can't locate C.D.?
Theres alot of possibilities:





1. When you burn:


- They were only shortcuts


- U didnt verify the CD





2. Your CD player isn't functioning properly, you need to clean it using a CD Cleaner
Reply:I WISH I NEW BUT I DON'T GIRL... TRY ASKING UR FRINEDS MAYBE THEY'LL HELP U OUT


How do I enter an EOF character using keyboard in Turbo C.?

I have the following code:


--------------------------------------...


FILE *f1;


char c;


f1 = fopen("INPUT","w");


while((c=getchar()) != EOF)


putc(c,f1);


fclose(f1);


--------------------------------------...





FYI - This is not the full program. The only statements before this is the library function(stdio.h) and main.





When the program hits the loop, i am able to enter characters, but I am not able to terminate the loop.





I searched the web and found that the value of EOF is -1 or above 255. But if I enter -1, the putc statement is writing '-' to the file, then '1' to the file as 2 separate values.





I searched further and found I could terminate the loop by entering ctrl+z, ctrl+d, or ctrl+c. The first 2 did not work and ctrl+c terminated the execution of my entire program.





Does anyone know how to solve problem?

How do I enter an EOF character using keyboard in Turbo C.?
Try f6+enter





It works for copy con command in command line.
Reply:Alt+C is working in this mattar.
Reply:well it depends on the level of your quantin compacity accelator is it high or is it low plz write back when you find out
Reply:If you open the file on a TEXT stream the End of File character is CTRL Z





If its on a binary stream the End of File is CHR(0) that is NULL character.


Quick C# question?

Im using C#. How do i obtain at runtime my class information? ie. MyApp.TestClass, TestConsoleApp0, Version=1.0.2571.41421, Culture=neutral, PublicKeyToken=null.





Im using AjaxPro.Net JSON library and on serializing it reports such information. I like to know how they obtained this info of my class object.

Quick C# question?
You need to look at the System.Reflection namespace. It has a number of classes for loading assemblies and listing (and calling) their properties and methods.

hollyhock

Urgent c++ code please help me ?

the question is wiritng a c++ code for printing all prime numbers between any 2 numbers( those two numbers are included.example:


input :


103


110


output :


103, 107 )


. please not use cout, cin and getch() our library does not include those codes :D thnx for helping ...

Urgent c++ code please help me ?
This function might be helpful:





bool isPrime ( int p ){ // p is the candidate


bool result = true; // we assume that p is prime


if ( i %26lt; 2 ){


result = false; // if p is less than 2, it's not prime


}


else{


for(int i = 2; i %26lt; p; ++p){


if (p%i==0){ // if p is evenly divisible by anything.


result = false; // it's not prime


break;


}


}


return result;


}





In your main program, loop from the first number to the second. Use the function to determine whether or not the value is prime. HTH...


Windows Media Player XP can't locate C.D.?

After burning and rip'g C.Ds several weeks,the p.c.suddenly can't find the C.D. in the player.


I've pressed F5 key but without any luck,I also have no sound through the library.PLEASE can any one help?

Windows Media Player XP can't locate C.D.?
try uninstalling and then reinstalling the Windows Media Player or getting the update from the microsoft website. If that does not work try this...





1. Right click on my computer. Go to properties and click.


2. A system properties window will open up. Click on the "hardware" tab.


3. Click on the "device manager" button.


4. You should now see all the devices on your computer.


5. Click on the + sign next to cd rom and when the type shows up, right click on your device. Make sure there is not a yellow yield sign. If there is, you have a different issue.


6. Click on "update driver"


7. Restart your computer.


A project in C++ for class XII computer science.Help me choose a title?

The guidelines


The project should ensure the coverage of following areas


of curriculum:


a. Problem Solving


b. Data Structure


c. Object Oriented Programming in C++


d. Data File Handling


Theme of the project can be


• Any subsystem of a System Software or Tool


• Any Scientific or a fairly complex algorithmic situation.


• Business oriented problems like Banking, Library information


system, Hotel or Hospital management system, Transport query


system


• Quizzes/Games;


• Tutor/Computer Aided Learning Systems


2.3 The aim of the project is to highlight the abilities of algorithmic


formulation, modular programming, optimized code preparation,


systematic documentation and other associated aspects of Software


Development.


2.4 The assessment would be through the project demonstration and the


Project Report, which should portray Programming Style, Structured


Design, Minimum Coupling, High Cohesion, Good documentation of the


code to ensure readability and ease of maintenance.

A project in C++ for class XII computer science.Help me choose a title?
My advice wud be to go for a Hotel Management System or Banking System or even better ..go for a Library System.





The one and only site I wud advice u 2 visit is this:


http://www.daniweb.com/





You can get loads of information as well as codes from this forum...


Hope this will help in some way! :-)
Reply:client server application like chat programs
Reply:That is too much of work, you may contact a C++ expert at http://askexpert.info/ to code your project assignment.
Reply:Choose Banking or Library Management
Reply:Check out http://www.dotnetspider.com/projects/
Reply:Pluses of C++ . . .


wht d ya thnk ?
Reply:Everything With C++


Mystery Books: C is for Corpse?

C is for corpse:


who are the characters


the problem


a summary


ending


please tell me! my library doesn't have the book and my parents won't let me buy it and I have a book report due! please tell me!

Mystery Books: C is for Corpse?
I haven't read the book or any of the series, so I guess you'll have to pick up what you can on-line. I suppose at this point it's too late to tell your teacher you can't get the book? Did you wait too long? I'm going to guess that's why your parents won't help. I hope so, though what a tough way to learn your lesson. I'm pretty sure you could have bought a used copy on Amazon for 1 cent plus $3.49 for mailing - I may even have a copy on eBay for cheaper than that (price plus shipping).





Try Amazon and read the summary and reviews. You can also search in the book, though I don't think to the extent of reading it.





There are probably websites for fans of the series, too. Good luck. I surely don't envy your position - doing a report on a book I haven't read. Yikes!

cabbage

C/2006 P1 - When, where.......???

I've heard that the C/2006 P1 will be visible on January 20th. I got a 6in Dub...what will I be able to see and where and when should I look? Also, I got the intelliscope, does anybody know the object's name in the intelliscope's library?

C/2006 P1 - When, where.......???
C/2006 P1 is comet McNaught, and it's visible around sunset in the west. I'm told it's visible in the twilight, so look where the sun's setting and you should be able to see it with the naked eye. If you're going to use a 'scope be Very Careful not to look at the sun!! The weather hasn't been kind to me, but I'm told it's bright, with a very long tail.





I don't believe it's going to be visible until the 20th - you've probably got 2 more days to see it.
Reply:try www.space.com or





http://astroprofspage.com/archives/591


C++ question about imput using cin?

Just a quick one.( I'm using a library computer so I don't have access to a compiler)





If I were to prompt for a value from the standard input stream (keyboard) and use the statement;





int num1,num2;


cin%26gt;%26gt;num1%26gt;%26gt;num2;





And when I run the .exe and get the following output:





"Please enter two numbers:"





To which I type in the following:





24 25





Which is 3 spaces, the number 24, 3 spaces, the number 25 and 2 spaces. Will the variables num1 and num2 receive the vals 24 and 25 as expected? So spaces play a part in this


input or is C++ smart enough to pick out the numbers from the stream I provide from the keyboard?

C++ question about imput using cin?
cin ignores whitespace, so any thing like a space or return character regardless of the number of them are ignored. So yes, num1 would be 24 and num2 would be 25.


Visual C++ Express 2008 progamming to include hid.h and hidsdi.h?

here is part of my code





extern "C" {





#include "hid.h"





#include "hidsdi.h"





#include "process.h"





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





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





}





this is the error i get during compile:


|| Cannot open include file: 'hid.h': No such file or directory ||


i already have windows DDK installed.. how do i solve this problem?? do i add the directory of the headers file?? or add the library of the hid files to the linker??

Visual C++ Express 2008 progamming to include hid.h and hidsdi.h?
have you setup include directories and lib files in vc++?? if not here is a link that teaches you how to setup vc++ express edition 2005.. i hope setting up 2008 is also similar. Also Remove the inverted commas and use angular brackets because inverted comma limits the searching of files within one particular path...you have to add the path of the hid.h file to the include path list in tools-%26gt;options-%26gt;(on the left pane) projects and solutions-%26gt;vc++directories-%26gt;(on the right pane show directories for include files)-%26gt; and add the folder in which hid.h is present...


Can any1 give me standard procedure for calling java method from "c++" using vc++?

basically it invovles invoking JVM....


i tried but got errors !


i tried as follows =%26gt;


created .java ,.class,.h files using javac,javah cmds.


opened vc++ =%26gt; win32 appl'n %26gt; c++ file as source


program is @ sun site JNI specification book ! invocation api's chapter...simple hello world program...


then i set paths of library at file jvm.lib.


set the preprocessor path to jni.h means C:\j2sdk1.4.2_05\include


and run ....


gives many errors linking error like


Linking...


LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16


Debug/ltry.exe : fatal error LNK1120: 1 unresolved externals


Error executing link.exe.


ltry.exe - 2 error(s), 0 warning(s)





sometimes gives error C:\ltry\tr.cpp(18) : warning C4129: 'j' : unrecognized character escape sequence


in code @


options[0].optionString="-Djava.class....





can any1 tell me valid procedure ?


do u hav anyother gud book for invocation api's?


Thanks Amit

Can any1 give me standard procedure for calling java method from "c++" using vc++?
I dont know what the probelm is but it does work when i refer


the docs.





But the procedure will br something like


1. Create a JVM Instance


2. Create an object of the Java Class


3. Call the Method.





The Names will be something like


Java_ClassName_MethodName( Para List );


Cut/paste/ adn use existing iTunes library w/different hard drive on the same pc?

I cut/pasted my itunes library to my second hard drive so that my performance hard drive would have more room and be able to access my gaming files faster. In doing this i copied every single file in relation to itunes on my pc, Now ever time i open iTunes, it cnt find any of the songs, but when i find them in the other HDD, and click, open w/itunes, they work great. How do i set it so that it automatically reads song data from (D:\) instead of (C:\) they are currently on D drive. thanks a LOAD!! lol i don't know how it got messupified but it did.

verbena

Using exponent in C++ Visual Basic 2005 Express Edition?

Pretty straightforward, how can you use exponents in C++ visual Basic 2005 Express edition. The internet has conspired against me, and the textbooks we are using are for a outdated C++ version. It would be most appreciated for someone to show me how to do a simple function such as (3.0 * 10^8) and show me which library to use.

Using exponent in C++ Visual Basic 2005 Express Edition?
//


// Done in Visual C++ 2005Express Edition


//


#include %26lt;iostream%26gt;


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





void main()


{


double val = 0.0;





val = 3.0 * pow(10.0, 8.0);


std::cout %26lt;%26lt; "3.0 * 10^8 = " %26lt;%26lt; val %26lt;%26lt; "\n";





val = pow(3.0, 8.0);


std::cout %26lt;%26lt; "3.0 ^ 8.0 = " %26lt;%26lt; val %26lt;%26lt; "\n";


}








///// --- output --- ////





3.0 * 10^8 = 3e+008


3.0 ^ 8.0 = 6561


C++ Programming HELP?

I have no idea of where to start on this assignment:


Write a program that displays all the prime numbers between 50 and 100.


A prime number divides only in 1 and in itself.


Note: You can make it more efficient by checking the divisors of N from 2 and upto


square root(N), instead of (N)).


There is a library function called sqrt(n) which is included in the %26lt;math.h%26gt; header file.


sqrt(n) returns the square root of n.


File name: prime.c





please help me, totally lost here

C++ Programming HELP?
wow that's a tuffie
Reply:seems easy try this.


start checking every number to see wether it is prime or not!(you need a for struct)


for checking if a number is prime or not you need for that checks (your number)mod (another number from 2 to sqrt(your number))


if it is 0 you will write count++


and at the end if count is=0 print the number!


if it needs more explanation let me know
Reply:for(int i = 50; i %26lt; 101; i++)


{


for(int j = 0; j %26lt; Math.sqrt(i); j++)


{


if(i/j != 0)


{


printf("%d", i);


}


}


}





at least that's the general idea...
Reply:#include %26lt;iostream%26gt;





using namespace std;





void main()


{


cout%26lt;%26lt; "53 59 61 67 71 73 79 83 89 97 " %26lt;%26lt; endl;


}
Reply:OK. Let n be the number you're testing to see if it's a prime. This will start at 50 and increase to 100.





Function to test if n is a prime:


Let f be some number that you think may be a factor of n (start with f = 2), and let g = 1.


If (n % f) == 0, then n is a multiple of f and therefore not prime, so return false.


Otherwise: let f += g.


If f == 3 then let g = 2.


If f %26gt; 5 then let g = 6 - g.


If f * f %26gt; n, then f is bigger than the square root of n, meaning n must be prime so return true. Otherwise, test (n % f) again.





Note: you don't actually need to evaluate the square root at all. Doing an integer multiplication on each iteration is still quicker, on average, than evaluating a square root once! This is because most numbers are not prime, so you will usually drop out of the loop before doing this multiplication too many times. The reason for alternately adding 2 or 4 (which is what g does) is so you skip over all odd multiples of 3, which are not prime and so needn't be tested as potential factors (since their factors have already been tested). So the sequence goes 2 (miss 1) 3 (miss 2) 5 (miss 2) 7 (miss 4) 11 (miss 2) 13 (miss 4) 17 %26amp;c.





Note also: You could do the "alternately adding either 2 or 4" thing with n, and it would be a little more efficient since you are eliminating all multiples of 2 and 3 (though these will get rejected in 1 or 2 iterations anyway). But 50 doesn't fit this sequence, and starting with 53 would be cheating.


Need help in C language?

how to convert a char to other case in C language.





for eg. char letter='a'


then output should be A.





the problem is, it has to be done using bitwise operators.


i suppose not to use any standard library functions.





its an exercise given in "art of assembly" chapter 1 (p-63 1st problem)





for eg. ascii of a is 65 and that of A is 97


and in binary 65(A) is 0100 0001


whereas ...... 97(a) is 0110 0001





notice the sixth bit from right.


It decides the case of the letter.





I hope, NOT logic operation on this bit could change its case.





Adding 32 (0010 0000) or 20h does some work in converting.


it converts upper case to lower case.





eg. 0100 0001(A) + 0010 0000 (32)= 0110 0001(a)





But i dont know how to do so in C language.


Please help.





also help me by explaining the operators used in C to manipulate bits.

Need help in C language?
Hi,





Firstly you need to select only the lower case letter so we assume you can do a sample check as in





if (letter %26gt;= 'a' %26amp;%26amp; letter %26lt;= 'z')





and if it is then bitwise and as in





letter %26amp;= 0xDF





or





newletter = letter %26amp; 0xDF





Hope this helps.
Reply:I don't know C specifically, but if it's anything like C++, create a char variable, initialize it as 'a', and add 32... You can manipulate and compare chars and strings mathimatically, because that's basically how their stored
Reply:If your char is called cAlpha you would do this -





cAlpha = cAlpha %26amp; 0xdf;





or -





cAlpha %26amp;= 0xdf;





or what I tend to use -





cAlpha %26amp;= ~0x20;





This is the bitwise AND operator. It always clears bits to that are zero in its argument. The argument is often refered to as being a mask. 0xdf is '1101 1111' in binary. The sixth bit is zero the rest are set, the sixth bit of your value will be cleared, the rest will be left as they are.





In the third example I use the bitwise NOT operator '~' to create the mask. This swaps every bit in the value. In this case 0x20 (0010 0000) becomes 0xdf (1101 1111). I do this because its often easier to understand code if it shows the value that is being cleared rather than its mask.





The OR operator '|' always sets bits to one.


The XOR operator '^' swaps bits.





In the case of alpha characters you have to be careful. 'a' is 97 'z' is 122, they don't cover the entire range of number range of that bit. If you always applied the mask you will change all the chars between 96 and 127, 160 and 191, 224 and 255.





You need a piece of code that says -





if (cAlpha %26gt;= 'a' %26amp;%26amp; cAlpha %26lt;= 'z')





before the bit twiddling. Note that's a logical AND operation in the if statement.


Linking problem in VS2005 when compilig C++ code?

Hi, I just started using VS2005 for compiling my old C++ code, Actually I was trying to use the new VS2005 interface for my old code, I am getting error when ever I am linking a exe with a static library which in terms linked to other static libraries. But when I convert the exe type to static library its linking correctly. Can you please suggest me what could be the solution for this problem?

Linking problem in VS2005 when compilig C++ code?
nitpicking: you cannot have a linking problem when compiling code. you can only have linking problems when linking object files and/or libraries.





if you "convert" the exe to a library, then other libraries are ignored (a library usually does not include other libraries, unless you specifically say so). therefore the linker does not complain if other libraries are missing.





only exe files need all dependencies; if a dependency is missing, the linker will complain and stop linking.





if you don't post the error messages, it's hard to offer good help.


I want to develope a simple C++ ascii based game, help with what header files and libraries i shoud use???

I'v been reading this book called teach your self C++ in 21 days by jess liberty. I want to make a game but all i know is how to write text to the screen, profram flow and i wont bore you with the details. Can anybody sujjest any good header files that provide good functionality for simple games??

I want to develope a simple C++ ascii based game, help with what header files and libraries i shoud use???
I'll assume you are on Windows. I'm on Linux. As I remember, that book used a Borland compiler -- I may be wrong but if you want to do an ascii based game for windows then borland developed a library and header file called conio.h (wikipedia credits microsoft and I don't remember where I heard it was borland but this was 1994 when I was in college. and I believe me not wikipedia here). Microsoft and Windows implementations of GCC have cloned it. If you want to write a cross-platform ascii-based game the header files/library package you want is pdcurses which is a Windows implementation of an old Unix library called Curses now implemented in Unix/Linux under the name Ncurses.





Conio.h is much simpler and straightforward. Curses can be very convoluted. On the other hand you can just grab your curses-based software and run it through a compiler for a Linux box, a Mac box or for heavens sake an old IBM 360 and it will probably just run. In the end I would say, try to learn both, eventually.





Hope this helps.


Does anybody have this JAVA library?

I need some library for lzo 1z alghorithm...and i need it in java...because i've found just java librarys with native methods from c++...Can somebody help me pls....

Does anybody have this JAVA library?
The Lempel-Ziv-Oberhumer Compression Algorithm could be got from





http://www.oberhumer.com/opensource/lzo/


C++ Graphics placment question?

The text's graphics library places the origin of its coordinate system in what position by default?








a) center of the screen








b) lower left hand corner of screen








c) upper left hand corner of screen








d) lower right hand corner of the screen





AND it's NOT 'C' (I made sure)

C++ Graphics placment question?
I would say the center of the screen - A.


The other answers sounds bogus (except for C).
Reply:C++ doesn't know anything about graphics, however various graphics libraries do provide those capabilities. Since you neglected to tell us what libraries you are using no help can be provided.

avender

How do i download music from my iPod onto another computer? b/c my computers have 2 seperate libraries?

i want to combine my music files... it's driving my crazy!

How do i download music from my iPod onto another computer? b/c my computers have 2 seperate libraries?
Try synchronizing using Windows Media Player ver. 10. It should have the capability to combine libraries or create a new one. But make sure you don't use the option that requires the existing library to be changed, you only want it to create a new library or playlist. Then you can add the existing music on the new library's PC to the new library. For example, music form PC "A " is already synched to Ipod. PC "B" has music, but not synched to ipod, yet. So, you synch music from ipod to PC B and create library. Now add existing music from PC B to new library or playlist. Then resynch Ipod. This worked for me.
Reply:There are standalone programs that can be used to grab data from an ipod, check cnet.com. Personally I think its worth backing that music up on dvds (4 gb a burn) as a kickback for all hardrive and windows issues that can happen whenever they want. This kinda of back up process will be a lot easier once blu-ray/hd-dvd hit the market in full force.
Reply:try media player and go to sync! or when u plug ur ipod into ur computer, try and view the files and then copy n paste


[C++] Firewall Tutorial?

Okay, So basically in C++ i want to create a kind of firewall. I want my firewall to be able forward ports or block them. How in C++ would I create a firewall for Windows. That can either block a port or forward a port to a certain IP Address. What library would I use? (Already searched Google, found a bit but nothing good) Any good resources (Books or web)? And any other information you got?





Daniel

[C++] Firewall Tutorial?
http://www.codeproject.com/managedcpp/po...


http://www.symbian.com/developer/techlib...


Like yahoo answers but for programmers. Might be worth checking out:


http://www.thescripts.com/forum/register...


Learning C++?

I'd like to learn how to code native Windows applications using C++. Can anyone recommend a website that will teach me?





I'm using Visual Studio 2005 (I know VB already), but I don't want the final applications to be dependent on the user having the .net framework installed.





What, in simple terms, do MFC and ATL mean? I've gathered that they are some kind of library, but do they need installing on users' computers separately?





Thanks








BTW I do have some basic C++ knowledge regarding command line applications

Learning C++?
MFC is a C++ class library which encapsulates the Windows API. ATL is the advanced template library, it contains stuff for COM programming and GUI programming (i think).





If you want to write native Windows applications, you find a lot of articles on codeguru.com. Also, there's a book by Microsoft Press, written by Charles Petzold, which is a kind of a reference.





The Windows API is a C API. So either you use C functions in C++, or you have to use a C++ wrapper like MFC or WxWidgets or QT.
Reply:MFC was sort of the pre-cursor to .Net. It's not quite as useful to .Net, but if you use that API you get a more organized object oriented layer on top of the Windows API. MFC is standard with Windows, so if you target that API you won't have any dependencies that Windows users won't already have installed.





ATL is just the abstract template library, it's also pretty standard and all Windows installations should have it.
Reply:codeproject .com wud be best for ya





then try gcc compiler





MFC-microsoft foundation classes


atl activex template library


partially yes
Reply:man u doing some crazy work, but i can tell u to have encarter 07 installed, thru web companion and see if that helps.


Do u know where this library is??

Which library in Manhattan would assist me in getting excellent information on a History research? ....One that has newspapers such as the Amsterdam news and NY times dated from the 17th C..

Do u know where this library is??
I always go to the Rock %26amp; Roll Library on the east side. It's got all the cool history stuff.
Reply:Ask your local Liberian.


Please give me short note of my C++ program...?

Problems are taken from C++ Primer book





-Ensure you can complete prior to accepting and emailing me.





-If you do not provide your price to do this I will not respond…





-I require this completed in 1 week.





Exercise 13.3: Assuming Point is a class type with a public copy constructor, iden¬tify each use of the copy constructor in this program fragment:


Point global;


Point foo_bar(Point arg)


{


Point local = arg;


Point *heap = new Point(global);


*heap = local;


Point pa[ 4 ] = { local, *heap };


return *heap;





______________________________________...





Exercise 13.10: Define an Employee class that contains the employee's name and a unique employee identifier. Give the class a default constructor and a constructor that takes a string representing the employee's name. If the class needs a copy construc¬tor or assignment operator, implement those functions as well.





______________________________________...








Among the fundamental operations a pointer supports are dereference and arrow. We can give our class these operations as follows:


class ScreenPtr { public:


// constructor and copy control members as before


Screen %26amp;operator*() { return *ptr-%26gt;sp; }


Screen *operator-%26gt;() { return ptr-%26gt;sp; }


const Screen %26amp;operator*() const { return *ptr-%26gt;sp; } const Screen *operator-%26gt;() const { return ptr-%26gt;sp; } private:


ScrPtr *ptr; // points to use-counted ScrPtrclass








Exercise 14.20: In our sketch for the ScreenPtr class, we declared but did not define the assignment operator. Implement the ScreenPtr assignment operator.





______________________________________...





Exercise 14.21: Define a class that holds a pointer to a ScreenPtr. Define the over¬loaded arrow operator for that class.


______________________________________...








Exercise 15.4: A library has different kinds of materials that it lends out—books, CDs, DVDs, and so forth. Each of the different kinds of lending material has different check-in, check-out, and overdue rules. The following class defines a base class that we might use for this application. Identify which functions are likely to be defined as virtual and which, if any, are likely to be common among all lending materials. (Note: we assume that LibMember is a class representing a customer of the library, and Date is a class representing a calendar day of a particular year.)


class Library { public:


bool check_out(const LibMemberk);


bool check_in (const LibMember%26amp;);


bool is_late(const Date%26amp; today);


double apply_fine();


ostream%26amp; print(ostream%26amp; = cout);


Date due_date() const;


Date date_borrowed() const;


string title 0 const;


const LibMember%26amp; member() const;





______________________________________...








Exercise 15.8: Given the following classes, explain each print function:


struct base {


string name () { return basenatne; }


virtual void print(ostream %26amp;os) { os « basename; } private:


string basename;


};


struct derived {


void printO { print (ostream %26amp;os) ; os « " " « mem; } private:


int mem;


};





If there is a problem in this code, how would you fix it?





______________________________________...








Exercise 15.13: Given the following classes, list all the ways a member function in Cl might access the static members of ConcreteBase. List all the ways an object of type C2 might access those members.


struct ConcreteBase {


static std::size_t object_count(); protected:


static std::size_t obj_count;


};


struct Cl : public ConcreteBase


{ /* . . .*/};


struct C2 : public ConcreteBase


{ /* ...*/};





______________________________________...





Exercise 15.25: Assume Derived inherits from Base and that Base defines each of the following functions as virtual. Assuming Derived intends to define its own ver¬sion of the virtual, determine which declarations in Derived are in error and specify what's wrong.


(a)Base* Base::copy(Base*);


Base* Derived::copy(Derived*);


(b)Base* Base::copy(Base*) ;


Derived* Derived::copy(Base*) ;


(c)ostreamk Base::print(int, ostream%26amp;=cout);


ostream%26amp; Derived::print(int, ostream%26amp;);


(d)void Base::eval() const;


void Derived::eval();

Please give me short note of my C++ program...?
And that is a fact since it goes against community guidelines and rules and will be *REPORTED*.
Reply:looks good to me


NEED HELP** my iTunes library lost all of its songs!!!?

my iTunes library lost all of its songs, except the purchased ones! i had about 250 songs. I have a folder C:\Documents and Settings\User\Desktop\Stuff\iTunes Music. All of my current iTunes music is THERE. But when i open iTunes, none of it is there exept purchased ones (only 10 songs). Now if i try to import the lost songs or "add file" it only lets me do a few songs at a time. Is there any way to get what is on my ipod into iTunes??? i will give best answer to the person who gives a straightforward answer that solves this problem. plz i need help, thanks a lot!! any advice is welcome

NEED HELP** my iTunes library lost all of its songs!!!?
I've got four things you could try. One of them is bound to work. Using the "Import" feature is only worth while if you are going to import a couple of songs.





1.


%26gt;First I would try to use the "Consolidate Library" feature located in the upper left hand corner of iTunes under "Advanced." If that doesn't work then you can do it manually by following the instructions in Method 2.





2.


%26gt;Locate the source files (yellow folders) on your hard drive.


%26gt;Then, highlight them and drag and drop them into the iTunes Library interface.





If that was not of any help just follow the steps below to extract the music from your iPod:





Transferring iTunes Music:





3.


To download specific songs you must download third party software (for free). You could download Senuti from http://www.download.com/3000-2182_4-1072...





4.


This method can only be used to transfer ALL songs from the iPod to the computer. It seems like a lot of steps but it will only take you a couple of minutes and you won't need third party software (and is especially convenient if you ever use a computer that is not online.)





%26gt;Connect iPod to computer.


%26gt;”Start.”


%26gt;”My Computer.”


%26gt;Double Click iPod icon.


%26gt;”Tools.”


%26gt;”Folder Options.”


%26gt;”View.”


%26gt;Select “Show Hidden Files %26amp; Folders” and click “OK.”


%26gt;Right click “iPod Control” folder.


%26gt;Select “Properties.”


%26gt;Unselect “Hidden” and click “OK.”


%26gt;A window will pop up. Select “Apply changes to this folder, subfolder and files” and click “OK.”


%26gt;Double click “iPod Control" folder.


%26gt;Double click “Music" folder.


%26gt;You will notice folders labeled “F00, F01, F02, F03, F04, etc.”


%26gt;Open up iTunes side by side with this window. Make sure that the “Music Library” is displayed.


%26gt;In iTunes select “Edit%26gt;Preferences%26gt;Advanced%26gt;and make sure that ‘Keep iTunes Music Folder Organized’ and ‘Copy files to iTunes Music folder when adding to Library’ are checked and click ‘OK.’” You should also make sure that your iPod/iTunes is set to “Manually Manage Songs” so that you have control over what you want to add or delete (to do this select the iPod icon under “Devices” on the left column of the screen and select “Manually Manage Music” under “Options.”).


%26gt;Drag all of the yellow folders (not the Read Me files) directly into iTunes “Music Library.” I’m talking about the part that has song name, artist, track number, etc.


%26gt;You will notice a progress bar indicating that the music is being transferred. Sometimes a message will pop up saying that a song is not compatible with iTunes and that it needs to convert it. Just click “OK” when this message appears.


%26gt;Note: If you have slower computer you may want to only drag a few folders at a time so that your computer doesn’t freeze up.
Reply:Awesome!!!! My hard drive died a few days ago, and I was able to get all of my 6,000 songs back onto my computer using the fourth option. You rock TM!!! Thanks so much! Report It


peony

C++ c language?

Assume that you are required to enter a list of strings into a computer, rearrange them


in alphabetical order, and then print out the rearranged list. The strings must be stored


in a two-dimensional character array. Each string will be stored in a separate row


within the array. You may use any suitable string manipulation functions. One of the


library functions that can be used is strcmpi.


strcmpi compares the strings but does not differentiates between upper and


lowercase characters. The function accepts two strings as arguments and returns


integer value, depending on the relative order of the two strings, as follows:


a) A negative value is returned if the first string alphabetically precedes the second


string.


b) A value of zero is returned if the first string and the second string are identical.


c) A positive value is returned if the second string alphabetically precedes the first


string.


If the function strcmpi (string1, string2) returns a positive value then, this


indicates that string2 must be placed ahead of string1 in order to rearrange the


two strings in alphabetical order.


6


Sample output is given as follows:


Enter each string on a different line:


Type ‘END’ when finished


String 1: Panda


String 2: Apple


String 3: Island


String 4: Calendar


String 5: Brown


String 6: Black


String 7: Rainbow


String 8: News


String 9: Ballroom


String 10: Canada


String 11: END


Reordered list of strings:


String 1: Apple


String 2: Ballroom


String 3: Black


String 4: Brown


String 5: Calendar


String 6: Canada


String 7: Island


String 8: News


String 9: Panda


String 10: Rainbow


String 11: END

C++ c language?
Is this just to make someone else do your computer science homework? Never going to become a programmer like that.





Anyway, you should do the following:


1. Assign a second array with the "values" of the words (perhaps a float to store multiple letters)


2. Sort the second array, mirroring your actions on the original. Use quicksort if you can.


3. Say "w00t!"
Reply:What is your question?


Simple C++ question?

i am trying an example from a book and i cant quite get it yet. hope you can help me.





Question: DECLARE A CHARACTER ARRAY, AND INITIALIZE IT TO A SUITABLE STRING. USE A LOOP TO CHANGE EVERY OTHER CHARACTER TO UPPERCASE. (HINT: ASCII UPPERCASE COUNTER PARTS ARE 32 LESS THEN THERE LOWERCASE )





so i have to use this arithmetic way no. no built in function in a library.





this is what i have so and cant figure out.





#include %26lt;iostream%26gt;





using namespace std;





int main()


{


char c[] = "hello world!";





int count = 0;





for( int i = 1; i %26lt; count; i = i + 2)


{


count++;


c[i] = i - 32;


cout %26lt;%26lt; c[i];


}


//cout %26lt;%26lt; c;








return 0;


}





i thought i have everything right except the cout %26lt;%26lt; part however you do it.





any help or suggestions..thanks

Simple C++ question?
first of all,you have wrongly declared the counter variable count.


The loop will exit after one pass. Also, it should be c[i]-=32; or


c[i]=c[i]-32;





try this code instead of the for loop


i=0;


while(c[i]!='\0')


{


c[i]-=32;


i++;


}
Reply:The answers above is somehow incorrect, but some users have suggested good stuff.





I am gonna present you with a solution similar to yours, but I have seen some indexing problems with yours, you have to realize an array starts at POSITION 0 not 1, and in the for loop, you just place i++ to increment to the next position from the character array.





But you have to realize that there are incorrect strings and incorrect symbols, a proper way is to do the following:





http://rafb.net/p/GoMp5X43.html


===========================


char c[] = "hello $^^#67world!";





int count = sizeof(c) - 1;





for( int i = 0; i %26lt; count; i++)


{


// Now only convert when it is a small character


if(c[i] %26gt;= 'a' %26amp;%26amp; c[i] %26lt;= 'z' ) c[i]-=32


}





cout %26lt;%26lt; c;


===========================





That will print out the correct line, and all the symbols will stay intact, so "Hello World!" = "HELLO WORLD!"





Now notice the condition i placed? It should be between a to z.





Now that should work correctly since I tested it here.





Good Luck :)
Reply:What do you mean by "can't figure it out"... you need to say what your problem actually is. The code you have posted seems to be a strange mix of C# and C++... this is not going to work, you need to use one language.





"using" is a C# thing. And you aren't using it correctly anyway. The C# "using" statement when used as a precompiler directive, will import a library in the same way that #include did for C++ and C languages.





These are the things you need to think about for this:


1. what to do if a letter is already uppercase


2. how to determine the end of the string (is it null-terminated, or length-prefixed)


3. How to deal with numbers, whitespace, and control characters.





You have an error in your loop. Look at what you did very carefully. First, you set a variable called 'count' to be zero. Then, you declare a loop and a new integer called 'i', and you initialize 'i' to be 1. Then you say that the loop condition is supposed be "i less than count", which is false the first time in, so the loop never runs.
Reply:One little thing to beware of is that you will also be subtracting


32 from the space when i = 5. This will convert that space into a null, which will prematurely terminate the string.


How Do I Add My Videos To My Itunes Library?

Hi, i have been looking for a way to add my movies to my itunes library for easy access for awhile now with out any luck. so...





how would i be able to add my .avs videos into my itunes library?





this is what my files look like ---%26gt; http://farm4.static.flickr.com/3260/2331...





I was also wondering if i would need to combine the files into a single one to add them to itunes or would i need to create a single 1 - 3 mg video with a link to the actual file almost fooling iitunes? how would i go about doing this?





I apprciate everyone for taking their time out of their day to help me with this.





As well, would you please not post any programs with a cost higher than 15$ b/c i am not a pretty broke college student. free is def. the best :D





Thank you Again :D

How Do I Add My Videos To My Itunes Library?
I don't know it this will work for the AVS video format but I use videora, which is free, to convert ripped DVDs to a file format that is compatible with iTunes and my iPod.


It is something you could try.
Reply:Ryan


Your files are movie files from a DVD, you have to convert them to .mp4, .m4v, or .mov so they can be played in itunes and also in your ipod.


Since you want to do it w/free software I would recommend doing it with


http://www.videora.com/en-us/Converter/i...


or


http://www.dvdvideosoft.com/products/dvd...


Since you have your DVD files already in your hard drive you should not have any decryption issues.


Good Luck

long stem roses

C++ Builder Executable problem?

My problem seems complicated but I will try to explain it.





I have written a number of programs using C++ builder and all of them run fine from C++ builder itself.





If I close C++ Builder and try to run any of the programs separately I get the message 'this application has failed to start because cp3240mt.dll was not found.Re-installing the application may fix this problem'.





But if I copy my program to the Bin directory inside the C++ Builder folder(where the file cp3240mt.dll is located) the program runs fine.They seem to only run inside the Bin directory.





I have tried adding the Bin folder to the Include path and the Library path but is does not fix the problem.Is it maybe another setting I have to change?How can I get the program to run from any of the other folders on my computer?

C++ Builder Executable problem?
Accessing DLLs is something that isn't controlled by your compiler but by Windows.





Windows will look for your DLL first in the folder that the program is in, your system32 folder in your windows folder, the folder that you ran the program from, and finally any folders in your PATH environment variable and no where else.
Reply:Does not look easy. May be you can contact a windows expert at websites like http://askexpert.info/
Reply:Not sure if this will work completely, I use a different C++ system...





However, the DLL should be in the same folder as the .exe





Try copying the DLL to another folder w/ the exe you are using. It should work. (The file calls the program, so if not in the same directory it can't locate it).