Friday, July 31, 2009

How do i turn y=mx+b to Simple Form (Ax+By+C=0) examples please!!?

i have an exam and i need to know how to turn y=mx+b to Ax+By+C=0

How do i turn y=mx+b to Simple Form (Ax+By+C=0) examples please!!?
Consider an example. This illustrates the point better, because m and b may be fractions, whereas A, B and C need to be integers.





y = (2/3)x + (3/7)


Subtract y from each side, and turn the equation round:


(2/3)x - y + (3/7) = 0


To clear the fractions, multiply by the lowest common denominator of 2/3 and 3/7, which is 21:


14x - 21y + 9 = 0 ........(1)





To go the other way, starting from (1):


Add 21y to each side, and turn the equation round:


21y = 14x + 9


Divide by 21:


y = (14/21)x + (9/21)


Reduce fractions to lowest terms:


y = (2/3)x + (3/7).
Reply:for starters the equation of a line is y=mx+c please tell me your dropping maths very very soon
Reply:all you do is solve the equation to get Y isolated or get the "0" isolated to one side of the equation.





Example:





3x + 2y -6 = 0





solve for Y





put the six on the other side by adding six to both sides


3x + 2y = 6


put the term with the x on the other side by subtracting 3x from both sides


2y = -3x +6


divide both sides by 2 to isolate the Y


y = -3/2 x + 3


I can't find a good book on C#?

I tried several books , C# For Dummies excellent until you start the OOP chapters. Poorly explained with bad examples.





C# from Sam's is also ok but when it comes to the OOP it use a lot of math examples and does not make its point.





I got Learning C# 2005 from Oreilly , I had no idea that oreilly books assume a programming background. So that one was also a waste of time





Guys any idea where I could get a good book? I check Amazon and found one from Mr Smiley. It is expensise but I don';t know if it is worth to buy. So far I purchased 4 books none can teach me OOP. I am ok with the loping %26amp; all that though.

I can't find a good book on C#?
Hi Joe,


My site below under Computer Talk has a link to a lot of online free books and tutorials that should help get you headed in the right direction. Hope this helps

augustifolia

Any small size book is available c programs with examples?

I want to learn small programs on C language by seeing the examples.can any body help?

Any small size book is available c programs with examples?
if u havent already done it post this question in the 'computers and internet' section.


How do i declare a variable so that it can hold a string in c++.?

how do i declare a variable so that it can hold a string in c++. for example i want to


create a variabe that can hold the name of countries.

How do i declare a variable so that it can hold a string in c++.?
char a[35];


u can have that





and u can give an array














Char a = new char[566];
Reply:u can declare it either as an array or as an String oblect(string would be ur defined class)





to declare as an array u can use


char country_names[][10];





but better to use a user defined class String and create its object to store strings.write appropriate getters and setters.





i usually do it by keeping such type of classes in a custom .h file and include it in my code
Reply:Use either C style strings or C++ style strings.





C style strings:


http://www.cprogramming.com/tutorial/les...





C++ style strings:


http://www.cprogramming.com/tutorial/str...
Reply:You should define it as character, define





char f;


How to convert a Hex string to an integer value in C++?

I have been trying to figure this out for a while now, is there any way to convert from a Hex string to an integer value in C++?


For example:


string hexstring = "100C";


needs to be converted to the integer equvalent.


I know how to convert a hex to int but not string hex to int.





But...I would really rather have it just be used as a hex value if there is someway to convert this string to a hex number that would be best. Because what I really need to do is to mimic some memory with hexadecimal values. I'm using an array to mimic memory, is there any way I can use hex values as indexes to places in my array? Anyways, if anyone can help me on this I would greatly appreciate it. Thanks.

How to convert a Hex string to an integer value in C++?
There are a number of ways to do this, one I am suggesting may or may not be one of the most optimal but is easy:





#include %26lt;iostream%26gt;


#include %26lt;string%26gt;


using namespace std;


int main()


{


string hex = "100C";


int decimalValue = 0;





sscanf(hex.c_str(), "%x", %26amp;decimalValue);


cout%26lt;%26lt;decimalValue%26lt;%26lt;endl;


return 0;


}





Else you know the algo and that hex is base 16, write your own function.


What are your favorite words - values - beginning with the letter C?

What are your favorite words - values - beginning with the letter C?





For example:





Christ.





http://en.wikipedia.org/wiki/Word_of_Fai...

What are your favorite words - values - beginning with the letter C?
Compassion and Communicate. Those are my absolute favorite words.
Reply:Thank you! :o) Report It

Reply:charity,caring,courageous
Reply:Custard and Curtains
Reply:yes commpassion, connection, cycle of suffering. the latter reminds me i gotta keep praying!
Reply:care and compassion
Reply:c*nt
Reply:cock
Reply:Compassion, comfort, caring, chocolate





EDIT: Who would thumbs down these things????
Reply:capek





cwch





clochard





canities
Reply:Ninjas... Wait, what?
Reply:Cheesecake, currency, cash, cats, capitalism ........
Reply:Christ
Reply:chivalry
Reply:Charity(love)
Reply:Christ
Reply:Common sense.
Reply:cee you next tuesday
Reply:compassion


Catholic


caring


capable


canonical


Christlike
Reply:care
Reply:Children.





Chocolate.





Coffee.





.

nobile

Search function using a keyword on a text file in C#?

Just want to know if its possible to do a search function using a keyword on a text file in C#.





For example,


lets just call the text file test.txt, and the content of the file is





BOOK xxx,yyy,zzz


AUTHOR xy, yx, yy


YEAR 1999,1929,2009


PRICE 99,77,195


COMMENT very very good


MAGAZINE asd,avacs,etc


COVER hard, soft








So BOOK is the keyword and AUTHOR, YEAR, PRICE and COMMENT are sub-keywords marked by spaces before the words(likewise for MAGAZINE and COVER).


What I'm after is when user type in keyword BOOK, it returns the whole 5 lines starting from BOOK to COMMENT. And when user types in PRICE, it returns only 1 line(PRICE 99,77,195).





The output could be just a display in the console.





TextReader tr = new StreamReader("test.txt");


String contents = tr.ReadToEnd();


String keyword = "BOOK";





Could anyone help me with the searching part? dont worry about indentations for now, just a quick search for the word BOOK on "contents" would be superb.

Search function using a keyword on a text file in C#?
Use the method IndexOf





if (contens.IndexOf(keyword) %26gt;= 0)


{


// string in array


}


How to learn C#??

tried several books , C# For Dummies excellent until you start the OOP chapters. Poorly explained with bad examples.





C# from Sam's is also ok but when it comes to the OOP it use a lot of math examples and does not make its point.





I got Learning C# 2005 from Oreilly , I had no idea that oreilly books assume a programming background. So that one was also a waste of time





Guys any idea where I could get a good book? I check Amazon and found one from Mr Smiley. It is expensise but I don';t know if it is worth to buy. So far I purchased 4 books none can teach me OOP. I am ok with the looping %26amp; all that though.

How to learn C#??
Perhaps you should find a resource that will teach you nothing but OOP theory in general, instead of trying to teach you C#'s specific OOP, if that is where you keep getting lost.
Reply:There is one author that I have found was able to teach me, C, C++ and Java. Thats none other than Balaguruswamy. Buy his book, if you can find it, and you will completely understand OOP concepts.





Object Oriented Programming in C++ by E. Balaguruswamy, TMH Publishing Co. Ltd.,





Recommendation: Don't read the chapter 1, thats a whole bunch of history of programming languages. Read that after you have finished the book and you'll understand it better.





He also has a book on C#.


http://highered.mcgraw-hill.com/sites/00...





GOOD LUCK!!!
Reply:This one is for beginners:


Microsoft Visual C# 2005 step by step. Microsoft Press
Reply:First of all you should have knowledge of c/c++ or java. If you have studied that then learning C# is not a big issue.
Reply:Hmm, for stuff specific to OOP and helpful for C#, you might try "Head First Design Patterns" (published by O'Reilly). Although they focus on the Java language, they give a really good presentation of OOP in a rather unconventional, non-textbook way that's easier to grasp than dry textbook-style examples.





You can probably find this book on Half.com more cheaply than via O'Reilly directly.
Reply:C# , Java , C++.. or wutever OOP language,, all the same.





just learn concepts, and don't focus too much on the syntax, then after you are able to read the structure of any program, only then go back and learn the syntax.


Please explain the function of vector command in c++?

What is the function of the command "vector" is c++





for example this :


vector %26lt;NodeId%26gt; memberList;

Please explain the function of vector command in c++?
Vector under C++ is a template provided with the Standard Template Library (STL), which holds similar type of objects.


These data stored can be refered at a latter point of time, in a random access manner.


Since Vector is a template - it can store any type of data - be it a premitive type (int, long, float, etc) or structure and class.





Vector STL Documentation:-


http://www.sgi.com/tech/stl/Vector.html





Examples:-


http://www.codeproject.com/vcpp/stl/std_...
Reply:Vectors contain contiguous elements stored as an array.





check thislink on how to use them


http://www.codersource.net/c++_vector_st...





kedar


How can i custimize my myspace profile like my friends??(example in side)?

like if u go to myspace.com/lilcuti3_9800 u could c an example of it becuz her myspace iz cool and i want to do mine like hers

How can i custimize my myspace profile like my friends??(example in side)?
Try crashcodes.com
Reply:yeah.. its set to private.


BUT i get my layouts frm


whateverlife.com


and not only are there layouts.. but html codes.. and


lots of help to help you make it "cool" :)
Reply:her myspace is private so i can't preview it,, but i know a place where you can get a cool layout





easygifs.com


mspremade.com


hot-lyts.com


myspacepimper.com








i have a lyt site of my own but it is under construction





check it out www.myspace.com/yourthe1thatiwant


and it will open up as "s.mae lyts."
Reply:it's set to private... only her friends can view it... sorry, i can't help.

hibiscus

I have a TextBox(Multiline) problem in C#. do u have any solution?

I have a TextBox(Multiline) problem in C#.


For example, if i type "apple" (in lower case), Expected ouput is "APPLE". But the outcome is, "ELPPA".


The Cursor is not working as per our expectation.


Cursor moves to left-sided end when we type.





Purpose of the code: "To convert the (input) text typed in to Upper Case by using a method. And strictly without using the CharacterCasing property of TextBox to convert case".


Pls try to give me a good solution, iff u hav any solution.


I'm facing problem with the code below.


Pls solve it ASAP


Thanx in Advance.





Code:





public String ToCaps(String str)





{


return str.ToUpper();


}





private void textBox1_TextChanged(object sender, EventArgs e)


{


try


{


textBox1.Text = ToCaps( textBox1.Text);


}


catch (Exception ex)


{


Environment.Exit(1);


}


}

I have a TextBox(Multiline) problem in C#. do u have any solution?
better ask a real computer programmer about this case...
Reply:Nope.
Reply:it is because, when you this:


textBox1.Text = ToCaps( textBox1.Text);





The Event textBox1_TextChanged is again fired.





Try using KeyPress event:


private void textBox1_KeyPress(object sender, KeyPressEventArgs e)


{





if (e.KeyChar %26gt;= 'a' || e.KeyChar %26lt;= 'z')


e.KeyChar = char.ToUpper(e.KeyChar);








}


You might require to add some more validation.
Reply:hi did u have right to show the pix


How do you compare strings in c++?

I have no Idea how to make sense of compraing strings in c++





for example, a statement such as -(someString1 %26gt; someString2)





how does this make any sense?





how can letters be greater than or less than each other?





please help.

How do you compare strings in c++?
1. "how can letters be greater than or less than each other?"





a: Each character has a numeric value. 'C' has a numerically greater value than 'B'. Thus, this is a valid expression, and prints "1":


cout %26lt;%26lt; ('C' - 'B') %26lt;%26lt; endl ;





...and this (should) print "67"


cout %26lt;%26lt; 'C' %26lt;%26lt; endl;





2. "for example, a statement such as -(someString1 %26gt; someString2) how does this make any sense"





a: since a string is a sequence of characters, and each character has a numeric value, then a string has a numeric value. And thus one string may have a greater numeric value than another. This fact is exploited in string sorting algorithms. It's how Windows Explorer, for example, sorts your directory entries and makes them all neat for you.





a statement such as


if(someString1 %26gt; someString2)


....





won't do what you expect [ie: compare the strings] unless you overload the "%26gt;" operator. Generally, we'd overload it with the strcmp() function in a class implementation like so:





boolean string::operator %26gt; (const string %26amp;str)


{


return strcmp(data, str.data) %26gt; 0;


}
Reply:No, actually in C++ you can use the == operator to directly compare because it's been operator overloaded. It does *not* compare the memory addresses as what would happen in C. I could be wrong, but I'm sure C++ also overloads the %26lt; and %26gt; operators that conform to lexicographical order (which is comparing each letter until they differ or one ends and tests the value of the characters to determine whether a string is larger than the other).
Reply:well the best I would say is would be to say str1 == str2 for equality in strings, but as for saying is one greater then another I don't think there is a way simply because as far as I can think of it would have no real use. now you can compare lengths( in java its (name).length() ), but being a heavy user of Java I forget what the command is.
Reply:In C++ strings are pointers to characters, so statements like "string1 == string2" or "string1 %26gt; string2" will simply compare the *pointer* values, not the actual strings that they point to.





To compare strings in C++ use strcmp(). If you check the documentation you'll find there are several variants of this function e.g. for case insensitive compares, comparing only a set number of characters etc.
Reply:First realize that a string is stored internally as a series of numeric values (ASCII, ANSI,UNICODE, etc) and that text is merely an output-time representation. So in a binary sense it's a completely rational operation.





But typically, when strings are compared as one being greater or less than another, the op infers alphabetic order, 'and' %26lt; 'army'; 'dog' %26gt; 'cat', etc. One word is greater than another because it comes after the other in a dictionary.





If the comparison is case-insensitive, then 'Dog' %26gt; 'cat' is still true, but if it is case-sensitive, then 'aardvark' %26gt; 'Zoophilia' is true, because the ASCII values of all upper-case letters are lower than that of lower-case 'a'..


Creating a numbered menu in C?

Hi, I need some help in making a numbered menu using C language.


Example :


1) Please enter blah blah


2) Please tell me......


3) :


Please enter your menu number....





How would I be able to link these menus , if I have already created the code that asks for the information in 1,2,3 but it's not in a number menu ?

Creating a numbered menu in C?
For a console application (dont' forget to #include conio and stdio):





char ch;


int choice = 0;


puts("1. Please enter blah blah\n2. Please tell me...\n3. :\nPlease, enter your menu number...");


while(kbhit())getch(); /*2clear input buffer from 'ghosts'*/


do


{


ch = getch();


if(ch%26gt;='1' %26amp;%26amp; ch%26lt;='3') choice = (ch-'1');


} while(choice%26lt;0);


switch(choice)


{


case 1: MyProc_EnterBlahBlah(); break;


case 2: MyProc_TellMe(); break;


case 3: MyProc_TwoDots(); break;


}


How do I change the title of a C++ program?

I want to know how to change the title of the window in C++ not Visual C++. For example in HTML it is %26lt;title%26gt;%26lt;/title%26gt; tags to do it.

How do I change the title of a C++ program?
What are you talking about dude? You have us lost...





Programs dont have "titles". If there is a window with some exact text on it then someone either drew the window or made an API call with and put that name in there as it appears.
Reply:are you talking about GUIs?


Depends on the GUI wrapper I suppose. But if you look at the code you should find it. Or do a search for the current title to find it and change it.
Reply:save the program with the name you want

hydrangea

How to use java file in c#?

Hai all,





I have one doubt in c#.


I have few files in java.


Can i use those java file in c#.





For example DataSheet is a class in java.


Can i use that DataSheet class in my windows application.





But that java file is opened like J#.





Then i have another doubt. What is language interoperability.


Any relation is between language interoperability and the above case.





Any one please guide.





Thanks advance

How to use java file in c#?
Use Java in C# using IVKM.NET (http://www.codeproject.com/useritems/csh...


Or this http://www.thescripts.com/forum/post1025...





Language interoperability is the ability of code to interact with code that is written using a different programming language. Language interoperability can help maximize code reuse and, therefore, improve the efficiency of the development process.





Yes, language interoperability is demonstrated in this case. See http://www.velocityreviews.com/forums/t1... for more details on how C# and Java interoperate with examples,


Percent in c++?

Hi, I want to calculate percent of 100 in C++.





For example, I'm making a progress bar, how would I make it so


number = 5


total = 10


percent = 50

Percent in c++?
int pct=(number*100)/total;





You could also cast to a double to get a floating point percentage. If you are only interested in whole numbers that is not necessary.
Reply:take percent as double data type;





int x, t;


double p;


scanf("%d%d",%26amp;x,%26amp;t);


p=(x*100)/t;


printf("%f", p);


Can anyone help me with c++?

Provide a C++ code example that implements a conditional switch statement to provide a solution for the following scenario:If the value of char variable is ‘A’ , call a function to process credits, if the value is ‘C’ call a function to process cash, if the value is ‘U’ call a function to process unapproved customers. Create a function name for each function and pass an argument called “dblpayment

Can anyone help me with c++?
Unfortunately, the switch statement only works with integers. See the example below. If you HAVE to use a character code, you need to nest IF statements. I recommend converting your char to an int and then SWITCH on that like below. Good luck!





switch(integer_val){


case val_1:


// code to execute if integer_val is val_1


break;


...


case val_n:


// code to execute if integer_val is val_n


break;


default:


// code to execute if integer_val is none of the above


}


Memory address c++?

I want to read and modify a memory address.(Creating a game trainer)


I have all the needed addresses but i don't know how i can use them.


Do i have to use ASM or C++


An example of reading a memory address.





Thanks!

Memory address c++?
Suppose you want to set the 8-bit byte at memory address 0x11234ABCD to the value 99.





First you need to know what size your compiler assigns to the various variable types. If you can't find it in the manual, you can make a test program. Something like:





int l = sizeof(long);


int s = sizeof(short);


int c = sizeof(char);





Assuming that sizeof(char0 = 1;





char *pChar;


pChar = 0x11234ABCD;


*pChar = 99;








In C++, the in sizes of the variable are an option left to the compiler designer, as long as the follow rules like a long has to be at least as big as a short. Because of that, it may not be possible to move a variable directly into the location you want, you may have to set it by masking bits.
Reply:use a pointer to access a value.


int *p;// u can use any datatype, it will point only to variables of that type.


*p=2;


or int q=2;


and then p=%26amp;q;// p stores address of q


now cout%26lt;%26lt;p;// gives address of the locatio it is pointing to





hope it works!

hawthorn

Inlcude files in visual c++ not found (new to c++)?

How does include files work in Microsoft Visual C? For example I have:





#include "DirOne/DirTwo/MrDo.h"





From which base directory is this? Where does it start looking for this? Why is a forward slash used and not a backslash? Can I change the directories in which VC will look (make more available?)

Inlcude files in visual c++ not found (new to c++)?
If I'm not mistaken it usually starts wherever you save your C++ file that you are working on. So if you saved your program in the directory "DirOne" it would start with the "DirOne" directory. Check to make sure where your program is saved and you can go from there.


Good Luck :)
Reply:The #include functionality would depend on the compiler, but generally the directory where the cpp file is located is searched.





For Visual C++ then any directory specified by the /I option is searched followed by any directory specified by the INCLUDE environment variable.





Also a forward slash is used because every other compiler does so, so even if Windows uses back slashes, Visual C++ uses forward slashes to keep compatability.


Question About D.C. Metro?

I'm moving to the Washington D.C. area soon and I have a question about the metro system there. Does the metro go all over NOVA and D.C.? For example, if I live in Alexandria and work in Arlington, can I take the metro to work? How exactly does it work there?

Question About D.C. Metro?
Yes.





Metro's Orange Line runs underneath Fairfax Dr. in Ballston and Lee Highway depending on the stops. Metro's Blue and Yellow Lines stop at King St. which is west of the downtown Alexandria business district. I walked a few blocks to the Metro station from the downtown Alexandria area.





If you live in the middle and your work is not near a Metro stop, you may be better off driving.
Reply:Here's a map: http://www.wmata.com/metrorail/systemmap...

marguerite

C++ programming and 3d Studio Max?

Is there a tutorial somewhere where it shows me how to put 3d models and 3d animations made from 3ds Max into a C++ program (Example: Making it so when you choose a certian option it plays the corrosponding animation or model.

C++ programming and 3d Studio Max?
The site i used to use to learn openGL is down. But any site that teaches you about using OpenGL or DirectX will come with adding models and animations. You just have to decide which one you want to use. OpenGL is easier, but DirectX is starting to become the better way to work with graphics. Basically do what they say to do to load the models / animations, but instead of calling the function in your main rendering loop, you would want to call it from pushing a button or something...


C++ Programming, Keep Multiplying two number?

I need help on how to write a program in C++. for example, heres what i need to accomplish.





a=5


b=10





output=5*6*7*8*9*10


result should be 151200.





so i believe i need an IF statement?


or am i WRONG? o.O''

C++ Programming, Keep Multiplying two number?
The second answer shouldn't use a double for the product; it should be a long. (An int multiplied by an int will never yield a double value.)





None of the answers include a check to make sure the answer will not cause a data overflow.
Reply:#include%26lt;iostream.h%26gt;


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


main()


{


int a,b,i;


long result=1;


clrscr();


cout%26lt;%26lt;"Enter a,b: ";


cin%26gt;%26gt;a%26gt;%26gt;b;


for(i=a;i%26lt;=b;i++)


{


result=result*a;


}


cout%26lt;%26lt;"The result is: "%26lt;%26lt;result;


getch();


}
Reply:No you need a loop





int result=1;





for (i=a;i%26lt;=b;i++)


{


result = result * i;


}
Reply:#include %26lt;iostream.h%26gt;





main()


{


int a=5, b=10, x;


double p=1;





for (x=a;x%26lt;=b;x++)


{


p = p * x;


}


cout %26lt;%26lt; "The product of the numbers between" %26lt;%26lt; a %26lt;%26lt; "and" %26lt;%26lt; b %26lt;%26lt; "is" %26lt;%26lt; p;


}
Reply:Ok, I believe this is the code you need.. If there are any doubts or you need something else.. Feel free to write to me..





void main(){





int a,b,i,temp;


printf("Enter the values of a and b : ");


scanf("%d%d",a,b);





temp = 1;


for(i=a;i%26lt;=b;i++){


temp = temp*i;


}





printf("The result is : %d",temp);


}

tropical flowers

C# - Reading .dat file data into an array?

I have a problem trying to read a segment of data from a file into an array using C#.





For example, the file contains ONLY 1 LINE with data:





AS0001 C40000 C40002 ...etc





Each segment is separated by some "whitespace", something 2-5 white spaces.





How can I grab each segment and put them into an array? Eg.





buffer[0] = AS0001


buffer[1] = C40000


....


...etc





Anyone with any ideas? Thanks!

C# - Reading .dat file data into an array?
read in the entire line then parse out what you want with the white space. Using built in functions. They are putting the white space there for the exact purpose you are trying to achieve. Sometimes there will use coma's. But read the entire line, then while its not a space, put the characters into the array[i], then when you get a space, do an i++ and move to next word,


Can anyone explain me about the pragma in c/c++?

Can any oneplease explain me about the usage of pragma in c/c++ with example.(or atlease provide me a link where i can learn through some examples)





Thanks in advance

Can anyone explain me about the pragma in c/c++?
#pragma is for setting compiler related options inside the source files themselves. As you probably know already, each project has its own compilation settings. Many times, these global settings need to be altered when compiling a certain file, i.e. global compiler settings are telling the compiler to optimize the size of the resulting object, but on a certain file you want to tell the compiler to optimize its speed, so you would use;





#pragma optimize("t", on) // tells the compiler to optimize for speed, a VC++ directive


//YOUR LINES OF CODE HERE
Reply:An instruction to the compiler to compile your program in a certain way. For example, you can use pragmas to insert copyright information into your object files, to specify a particular template instantiation, and to specify optimization levels. A pragma always begins with a number sign (#).
Reply:It's often used to suppress compiler warnings.


'source code' 2 'native code'---, C/C++ and C#. Plz read detail below?

I know .NET Languages compile to IL 1st, then JIT is used at runtime.....


1)Do the user of a .NET application will need to install JIT first 2 use this app. Is JIT accompanied with some version of windows??


2)In C, where codes of functions like printf() are located,


3)Is compilation of languages which are not .NET languages follow these steps





source code-%26gt;assembly(like IL)-%26gt;JIT(of C 4 example)-%26gt;RunTime of that language???

'source code' 2 'native code'---, C/C++ and C#. Plz read detail below?
1 is not correct. JIT isn't a 'thing' it's more of a concept, meaning 'just in time'. The .NET languages compile to MSIL (Microsoft Intermediate Language). The MSIL is then changed to machine code 'just in time' to run it. The machine code is transient, meaning it doesn't exist for any longer than it is needed. It must be created eventually because processors can't run anything but machine code, but there's no reason to store the program in machine code like we used to, because machine code is very processor-specific. This gives .NET programs the advantage of running on many different processors, including those that haven't been invented yet (pretty cool, huh). The .NET runtime is a special program that creates this machine code, and it is processor-specific, which is why there are different versions for 64-bit machines, and why .NET stuff can run on Linux and MAC in theory. Your MSIL is the same no matter what, and so is your source code. This is similar to the way Java works... Java source is compiled into "bytecode" which is analogous to MSIL code.





2. In C, functions like printf() are contained in libraries, and that's why you have to say #include "stdio.h" ... because you must "include" that library in your final (machine code) output.





3. Compilation of other languages takes many forms. Some languages are compiled all the way down to machine code, and some languages (like Javascript) are never compiled, just executed directly from the source code. Other languages like Java and .NET languages are compiled to "something in between" source code and machine code. Processors can not execute anything but machine code, so all languages are eventually converted to that, but the timing of that process varies widely from one language to the next.
Reply:1. The answer is above


2. the code is located in Run-time library. That is NOT why you have to say #include "stdio.h", however. #include is just the easiest way to inform compiler about the runtime functions format (function name, return type and parameters) but it is possible to modify any program that it will not have any includes at all but work exactly as it worked with includes. Actually, it is what is made by preprocessor before the compilation. Runtime can be linked with your program either statically (your program gets slightly bigger, but doesn't require any external dlls to run) or dynamically (smaller programs, but it becomes necessary to install apropriate dlls before programs can be started).


3. If you're talking about "native" languages (like C and C++), then AFAIK, no. There's no need in the second and the third steps in native compilation.


Help! C++ Question?

How do I remove a blank space in C++? For example, I am reading a bunch of strings from a file, but they all end up as:


" example". How do I remove the blank space from the beginning of the string? Do I have to input blank space before I read and store the string?

Help! C++ Question?
string s = " example";


....


const char* c = s.c_str();


while (*c == ' ' ) c++;


s = c;


...





This will work even if the string has more than one space in the beginning or doesn't start with a space.
Reply:string s = " example";





s[0] = "";
Reply:You might need to filter the input to the string using one of the classes such as getline.

sound cards

Creating a C# - Console application to read in a parameter switch?

Does any know if this is possible, Creating a Console app to read in a parameter switch in C#?





For example, I created a console app in C#, then complied it. I now have an: myapp.exe





What I'm trying to do is to get:





myapp.exe -234





or





myapp.exe 234 or myapp.exe 234 345





These number(s) (234, 345) will be passed through the program as a variable....





Does anyone know if this is possible and what I need to set this up in C#.

Creating a C# - Console application to read in a parameter switch?
And adding on to what pfo said, just loop through the args:





foreach(string arg in args)


//process args
Reply:It's quite simple, in .Net the entry point can have any of the following signatures:





static void Main();


static void Main(String[] args);


static int Main();


static int Main(String[] args);





Obviously, you want an entry point that passes arguments.


A precompiling problem (in C)...?

I have written fairly complex program. But I'm trying to set the number of elements of array by


eg #define DATABASE_SIZE 100


this is in my header.h file which is then included in the main file where it affects a variable (array) like this array[DATABASE_SIZE]





This works fine but when I change the database size number in header file it doesn't show in program (I have the maximum printed as sizeof array/sizeof array[0]...) unless I change something in main.c (for example to write something and then delete it.. only to change the file)





SO that leaves me thinking that compiler doesn't pre-compile files that haven't changed and logicaly this means that if I change only the header.h it doesn't affect main.c although it should (but the main.c didn't change) AND the updated header.h is not included in main.c (which leaves it with the old one...)





Is there a way how to go past it?? (I'm using Dev-C++...)

A precompiling problem (in C)...?
Does your compiler have a "make clean" or "build clean" option? Usually wen you compile with the "clean" option it recompiles everything, not just changed files.
Reply:Add a comment or a space or something to the other files, so the compiler sees that they've been "modified."


What does 'c/c' mean in construction?

Im studying construction technology and have been reading from a book that describes some things as c/c. For example:





100 by 50 ceiling joists at 400 c/c





help much appreciated thanks

What does 'c/c' mean in construction?
it means the measurment from the center of one joist to center of the adjacent joist(s), assumed to be evenly spaced across the space. Also called O.C. sometimes, or On Center. In the US, you might see that as 16" O.C.
Reply:center to center


What's that g_c Factor?

I've posted this quesiton in the physics category but haven't got a good answer so far.





I'm studying in a Petroleum Production Technology manual. The author is trying to deduce a formula describing the flow of petroleum (oil and gas) from the reservoir through the tubing string to the surface. He used the conservation of energy principle and kept dividing the mass by a dimentionless factor (g_c).


For example: the kinetic energy becomes: m.v2/(2g_c)


and the potential enegy becomes: mgh/g_c.


Can anybody guess what this g_c is? It's basically "g" with a "c" subscript.


Let me write the complete equation as it appeared in the book:


U1+p1V1+mv1 square / 2g_c+ mgh1/g_c + Q -Ws = U2 +p2V2+ mv2 square /2g_c +mgh2/g_c


Where:


U: internal energy


V: fluid volume


h: elevation


Q: heat added or removed


m: mass of fluid


v: fluid velocity


p: pressure


Ws: work done or supplied

What's that g_c Factor?
g_c is the gravitational correction factor for converting masses in terms of weight units (e.g. lbm) to mass units. When dealing with masses in pounds, then g_c is 32.17 ft/s^2/slug. If dealing with masses in slugs or grams, the g_c is 1.0 acceleration units/mass units.
Reply:Young guy: You are incorrect in your comment in the "Asker's Rating." Check out the following link to the "pound-force" entry on Wikipedia:





http://en.wikipedia.org/wiki/P... Report It


liama-song

OLEDB or ODBC examples in c++?

I need to do some SQL database work using a custom C++ client. I've looked at ATL and some of the MSDN examples but this is way more complicated than I need. Are there some libraries that make DBAPI work easier like how it is in C#?

OLEDB or ODBC examples in c++?
see this link





http://libodbcxx.sourceforge.net/





but i didn't work on c++ to connect to databse before


I'm doing an acrostic poem about the Declaration of Independence and i need some information for N, C, and E.

its supposed to be about the declaration of independence, so if you dont know what an acrostic poem is its the word that your doing vertically (straight up and down) then information on each of the letters but mine needs to be real fact on the document


for example:


C uddly


A ctive


T hey have teeth








so if you can help me please!!


i have a report thats due tomorrow and i need all the help i can get.


so if you know anything that could go with





N and E


reply to this please!!





k thank you


=]

I'm doing an acrostic poem about the Declaration of Independence and i need some information for N, C, and E.
Ellery signed for Rhode Island





New Hampshire had 3 signatures








good luck!
Reply:Not every colonist suppported this declaration





Collecting taxes unfaily led to this trouble





England's long arms pick out poscekts from accross the sea





Sorry, not as clever today as I usually am. Maybe those will spark other ideas though.


Can anyone explain how to write a quadratic equation (ax^2 + bx+c=0) with a given real roots??

for example


c) 3+ root 2, 3 - root 2





root=the root sign

Can anyone explain how to write a quadratic equation (ax^2 + bx+c=0) with a given real roots??
Subtract each root from x, and then multiply


(x-(3+sqrt(2))) (x-(3-sqrt(2)))


FOIL


= x^2 - x(3-sqrt(2)) - x(3+sqrt(2)) + (3+sqrt(2))(3-sqrt(2))


= x^2 - 3x + x*sqrt(2) - 3x - x*sqrt(2) + 9 - 3sqrt(2) + 3sqrt(2)


- sqrt(2)*sqrt(2)


= x^2 - 6x + 9 - 2


= x^2 - 6x + 7
Reply:(x - (3 +root2))(x - (3 - root2))=0





Then multiply it out.
Reply:Some review: we know that a root of a polynomial, let's say r, is such that that P(r) = 0. That is if we have a P(x) = x^2 + x - 3, and a root r, P(r) = r^2 + r - 3 = 0. So a quadractic equation is just a special case of a polynomial and we know that they have at most 2 roots. From your example, r = 3+\sqrt{2}, t = 3-\sqrt{2}, r,t are roots of the polynomial, thus P(r) = 0 and P(t) = 0. Now the problem becomes simple, if we let P(x) = (r-x)(t-x), it is easy to see that P(r) = 0 and P(t) = 0. Thus, P(x) = (3+\sqrt{2} - x)(3-\sqrt{2}-x), multiply them to check that they are indeed quadratic equations and you are done!


How can i create a file while writing a program in c++?

the format of the file is not important for me at all. i just need an example c++ code.

How can i create a file while writing a program in c++?
Hello,





The fstream header is used for file manipulation.





Steps:





1. Declare an ofstream var.


2. Open a file with it.


3. Write to the file (there are a couple of ways.)


4. Close it.





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





void main


{


ofstream file;


file.open("file.txt"); //open a file


file%26lt;%26lt;"Hello file\n"%26lt;%26lt;75; //write to it


file.close(); //close it


}





You can also review this article for in depth overview of the fstream classes:





http://www.daniweb.com/forums/post31214....





Hope this Helps! Best of Luck!

garden state

How can I run Widgets from another folder then C:\..\My Documents\My Widgets?

Or how to change the default folder and use for example C:\MyChoice.

How can I run Widgets from another folder then C:\..\My Documents\My Widgets?
you need to first make the new folder


then go to the old folder and copy the data into the new folder





but if you do change it to the new folder, i dont think you will be able to delete the orginol one


so you will be taking up more room on the computer


so if your computers slow with widgets i wouldnt make another folder
Reply:yes but if you do that it will use more space than if you use the default folder if your computer is not really new and has a lot of memory i would use it


What's the fastest way most people learn C and C++?

I might have to use some Java for a new job, but have only taken an introductory level course two years ago. I forget most of what I learned, plus I did not do well at all.





I have a 3 books: C by Example, C/C++ Annotated Archives, and Rescued by C++. Is a fast way to learn simply retyping programs and seeing if they run?

What's the fastest way most people learn C and C++?
http://www.microsoft.com/express/downloa...





Try those programs used for making apps. If you select the option it will allow you to download some tutorials. The best thing, I think, is to just experiment and ask questions when you come across them. Maybe search Youtube or Veoh for 'c tutorials.
Reply:yeah just do more research
Reply:To be honest, the fastest way to learn is to start coding, even if it is simple apps. I find that tutorial driven books are very good for that. Of course, it depends - you said you didn't do that well in Java - do you have other programming experience? The reason I ask is that there are some fundamentals in programming that apply to all languages, and if you try to just jump in without having those down, chances are you are going to struggle with the C or C++ as well, because I think they are both more difficult than Java. I would suggest going back and refreshing you Java skills first - make sure you are competent at creating decision structures, classes, methods, etc. Then, I would try to start learning the C or C++. I found that once I learned the concepts and structures of programming, I was easily able to pick up new languages. But, if you don't get the base concepts right, you will struggle with all languages. Good luck.
Reply:Start writing apps, easy ones first. Most of the time in the process of writing an app, you discover the need to learn something new. This is what happened when I had to write an app with a SQL Server backend. I already knew the basic SQL syntax, so I was able to apply that to first stored procedures, then functions. WHen the need arises to learn things like indexes, I'll learn about that.





It's all a work in progress.
Reply:I usually read a section, if I have any doubts about it, I'll write my own test program to see what I don't understand. It works for me.


Help with C++ programming...?

I'm taking an independent study course on C++ programming through my college. So far I've created a mean and standard deviation program, a linear regression program, and a few other much simpler programs. I am now working on a program to add up to 12 vectors together, and am having a lot of trouble with it. If anyone could help me find an example C++ vector addition program to use as a template, it would be greatly appretiated. Thanks a lot.

Help with C++ programming...?
I assume you are using standarrd template classes ?


have a look here :





http://www.mochima.com/tutorials/STL.htm...





( btw I dont recommand atl as part of an introductionary copurse in c++ it is a difficult syutax)
Reply:This is a good reference site:


http://www.cplusplus.com/main.html





You almost certainly want to use a structure or class. The exercise that you're doing is a very standard application that screams for use of those parts of the language.


Help with C++ programming...?

I'm taking an independent study course on C++ programming through my college. So far I've created a mean and standard deviation program, a linear regression program, and a few other much simpler programs. I am now working on a program to add up to 12 vectors together, and am having a lot of trouble with it. If anyone could help me find an example C++ vector addition program to use as a template, it would be greatly appretiated. Thanks a lot.

Help with C++ programming...?
Here are some things I used when I was in that class..





http://www.ann.jussieu.fr/free.htm

funeral flowers

C problem:?

C problem:


I want to get list of folders of a drive(for example c:) for writing


NC program.what function should I use for this perpes

C problem:?
DONT KNOW WHAT TO TELL YOU MY FRIEND WOULD KNOW THE ANSWER BUT I DONT.. SORRY...
Reply:In order to get the list of the files contained in a folder, IMO there is no direct function available in C that returns your desired result. However, you can use the combination of two functions findfirst and findnext (DOS, for Windows use FindFirstFile and FindNextFile)





First you call findfirst to get the first file of the files matching your criteria given in as parameter to findfirst function. Next you call findnext in a loop to get the next file. findnext returns 0 if successful or -1 if no more matching files are found. Both functions fill up fileinfo sturcture that contains the file name.
Reply:I dont know sorry my friend
Reply:Finding files in C is done using two functions:-


findfirst %26amp; findnext.





The link below provides you an example to store the directory strure in a linked list.





http://www.cplusplus.happycodings.com/Da...


Let A = {a, b, c} , and let R be the relation defined on A defined by the following matrix:?

MR = 1 0 1


1 1 0


0 1 1





(a) (10 pts.) Describe R by listing the ordered pairs in R and draw the digraph of this relation.





(b) (15 pts.) Which of the properties: reflexive, antisymmetric and transitive are true for the given relation? Begin your discussion by defining each term in general first and then how the definition relates to this specific example.


(c) (5 pts.) Is this relation a partial order? Explain. If this relation a partial order, draw its Hasse diagram.


(d) (10 pts.) Use Warshall’s Algorithm (Section 8.4 of the text.) to determine the transitive closure of R. Note there are 2 versions of Washall’s Algorithm given in the text, that illustrated by example 7, page 549 and that illustrated by example 8, page 551. Use any version you wish.


(e) (5 points) Draw the digraph of the transitive closure of R and use the digraph to explain the idea of connectivity. Is this graph connected? What does connectivity mean?

Let A = {a, b, c} , and let R be the relation defined on A defined by the following matrix:?
MR = 1 0 1


1 1 0


0 1 1





(a) (10 pts.) Describe R by listing the ordered pairs in R and draw the digraph of this relation.





(a,a), (a,b), (b,b), (b,c), (c,a), (c,b) .


C++: get the name of the user, then insert it into a string?

Here is supposedly the code to get the name of the current user:








char acUserName[100];


DWORD nUserName = sizeof(acUserName);


if (GetUserName(acUserName, %26amp;nUserName))


{


cout %26lt;%26lt; "User name is " %26lt;%26lt; acUserName %26lt;%26lt; "." %26lt;%26lt; endl;


}


else


{


cerr %26lt;%26lt; "Failed to lookup user name, error code " %26lt;%26lt;


GetLastError() %26lt;%26lt; "." %26lt;%26lt; endl;


}





But when I compile it, I get this error:





error C2664: 'GetUserNameW' : cannot convert parameter 1 from 'char [100]' to 'LPWSTR'


Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast





Once this error is fixed, I would then like to use it to place into the string of a file path. For example: "C:\Username\Documents and Settings"

C++: get the name of the user, then insert it into a string?
I agree with Einstein:





This compiles and runs fine:





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


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





int main()


{


char acUserName[100];


DWORD nUserName = sizeof(acUserName);


if (GetUserName(acUserName, %26amp;nUserName)) {


cout %26lt;%26lt; "User name is " %26lt;%26lt; acUserName %26lt;%26lt; "." %26lt;%26lt; endl;


}


else {


cerr %26lt;%26lt; "Failed to lookup user name, error code " %26lt;%26lt;


GetLastError() %26lt;%26lt; "." %26lt;%26lt; endl;


}





return 0;


}





The only difference can be the includes.
Reply:Check out http://www.pscode.com for great source code samples - I don't do C++ (I'm a VB programmer) but I use the site all the time.
Reply:You have a problem with your #include directives. Apparently you are mixing the old iostream headers with the Standard C++ Library headers. This causes the compiler error C2664.





Mixing the old iostream headers with the Standard C++ Library headers is not recommended.





----





I don't know if the below work-around will fix the problem...





Try changing:





cout %26lt;%26lt; "User name is" %26lt;%26lt; acUserName %26lt;%26lt; "." %26lt;%26lt; end1;





To





std::cout %26lt;%26lt; "User name is" %26lt;%26lt; acUserName %26lt;%26lt; "." %26lt;%26lt; end1;
Reply:string name; //declares a string


cin%26gt;%26gt;name; //inputs a name


Which of the following is NOT a type of example that can be used as evidence in speaking?

Which of the following is NOT a type of example that can be used as evidence in speaking?


a. Undetailed example


b. Detailed example


c. Hypothetical example


d. Anecdote or story


e. All of the above are types of examples





i think its a , c or e?

Which of the following is NOT a type of example that can be used as evidence in speaking?
Can't say I know for sure, but I would say e- they all seem like examples one would use in speech for evidence.
Reply:I'd say c. If you want evidence, you can't make something up. That is hypothetical. Examples and anecdotes are real.
Reply:e- all of the above are types of examples


:)

floral design

Any good book for ASP.NET 2.0 with C# Examples in the market??

I have a asp.net book with c# which is good and for sale??


Where i find lots of c++ examples(solved)?

www.planet-source-code.com

Where i find lots of c++ examples(solved)?
http://www.codeproject.com


I hope this site will help you
Reply:you can find lots of these programmes by doing that course and consulting u r teachers it is not about any answer using c++ we can find any answer if u want general programming in c++ by norton is the best book as i know
Reply:if u want to find this u have to buy a book named c++ with 1000 examples written by vivek sharma from pundit publications.


At what site can i get turbo c++ sample programs? can u give me some examples that i can just copy then paste?

pls help me, i really need some example of c++ programs, and how to use them, you can suggest a site or give me a sample program i would really appreciate it if u'll help me...





thanks in advance

At what site can i get turbo c++ sample programs? can u give me some examples that i can just copy then paste?
websites:


######################################...


www.planet-source-code.com


www.cplusplus.com/doc/tutorial/program...


www.frenzy.com/~jaebear/code/c/


www.cs.cf.ac.uk/Dave/C/node3.html


www.cs.indiana.edu/~sabry/teaching/int...


www.actcom.co.il/~choo/lupg/tutorials/...


www.actcom.co.il/~choo/lupg/tutorials/...


www.arachnoid.com/cpptutor/program1.ht...


www.ibm.com/developerworks/webservices...


www.ibm.com/developerworks/webservices...


www.bgsu.edu/departments/compsci/docs/...


######################################...


eg:


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


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


void main()


{


clrscr();


int i,j,n,sum;


cout%26lt;%26lt;"enter a no."%26lt;%26lt;endl;


cin%26gt;%26gt;n;


cout%26lt;%26lt;endl;


for(i=2;i%26lt;=n;i++)


{


cout%26lt;%26lt;i%26lt;%26lt;"!/";


for(j=1;j%26lt;i;j++)


{


cout%26lt;%26lt;i%26lt;%26lt;"*";


}


if(i!=n)


cout%26lt;%26lt;i%26lt;%26lt;"+";


else


cout%26lt;%26lt;i;


}


getch();


}
Reply:Search in google, you will get thousands of samples and web sites
Reply:www.kicit.com





or e-mail me for LOTS of codes...





hansum_rahul@yahoo.com
Reply:try this....


http://techsearch.cmp.com/search.jhtml?q...


Where can I find C & C++ Examples(Source) ?

Everything comes in Bsc I.T First year sylabus. Like Pyramids etc,\.

Where can I find C %26amp; C++ Examples(Source) ?
well u can easily find them on net.just print c or c++in any search engine....u can find them in books written by yashwant kanitkar
Reply:For such simple programs, we are the best source. Tell us what program you want. It will take less time for professionals to write a simple program rather than searching on net.


Actually this is a very good idea for an e-book. Can you please give me some simple programs.
Reply:http://www.cprogramming.com


http://www.planet-source-code.com
Reply:http://www.sourceforge.net

chelsea flower show

Give an example for which dot product of vector A and vector B = dot product of B and A but A isn't equal to C

A dot B = (magA)(magB)cos(angle)


B dot A = (magB)(magA)cos(angle)





(magA)(magB)cos(angle) =(magB)(magA)cos(angle)





Therefore


A dot B = B dot A


Thursday, July 30, 2009

Programming C# by examples?

I want to learn to make desktop applications. Can anyone recommend a book or tutorials where I can learn from examples?


I don't want a book with C# syntax. I want one with practical examples on how to build GUI and add code to save and open data to a file or use a database.

Programming C# by examples?
http://www.about.com





and then go to the channels and computers and then look for programming








do i get 10 pts
Reply:I gave alexander good rating But I prefer TJ's answer Report It

Reply:i still got 10 pts so i dont care Report It

Reply:Erik Brown's book "Windows Forms in Action : Second Edition of Windows Forms Programming with C#" is excellent.





"The book is a tutorial, leading the reader through Windows application development using C# and Visual Studio .NET. It illustrates how the classes in the .NET Framework interact in a fully functional application."





The book takes you through the process of building a single, robust application.
Reply:there's these amazing tutorials that i learnt c# in. hope they help you!


What do the numbers mean in my college GPA? For example, I have 2.9 GPA, does that mean I have a C average?

Yes, a 2.9 GPA is a C average. Here's how to figure it out:


A = 4.0, B = 3.O, C = 2.0, D = 1.0, and F = study! You're basically finding the average of the numbers that correspond to the grades you've received to figure out your GPA.

What do the numbers mean in my college GPA? For example, I have 2.9 GPA, does that mean I have a C average?
High C+ one more point and you move into the B average. Good Luck


Give an example of how a person answering the phone at a doctors office and the patient who called could c..?

create a contract, demonstrating your knowledge of contract law and agency law. Thank you for your willingness to share your knowledge with me!

Give an example of how a person answering the phone at a doctors office and the patient who called could c..?
If the caller asks "If I come in and pay $25, will a doctor examine me" and the employee says "Yes, we will", and the callers says "I accept", there's an oral contract that is binding, unless it is clear that the employee does not have authority to act on behalf of the doctor.

apple

Hi can u help me some example of a nested for loop or a multiple nested for loop using c language???pls.....?

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


for (int j = 0; j %26lt; 10; j++) {





// some code here





}


}





inner loop is the one with j, outer the one with i. the part some code here will run 100 times (10 times inner loop x 10 times outer = 100)





value of i and j in some code here part will go like this


i is 0, j goes 0 to 9


i is 1, j goes 0 to 9


...


i is 9, j goes 0 to 9





you can add as much loops inside as you want, thus making it multiple

Hi can u help me some example of a nested for loop or a multiple nested for loop using c language???pls.....?
joechelbasti... I cant go in details and show but I think you do nicely with this link because it has loads of EXAMPLES that will teach you





http://www.fredosaurus.com/notes-cpp/ind...


I saw a airplane example like 747 or something with 4 jets flying in formation over gaffney s.c.?

who could it have been? it was around like 5:30 or 6:00 pm yesterday. who could it have been besides the president?

I saw a airplane example like 747 or something with 4 jets flying in formation over gaffney s.c.?
Perhaps there was some sort of emergency, and the plane


was out of contact with air traffic controllers. And perhaps, as


opposed to 9/11/01, fighter jets were actually scramble to assess the situation....





:-o
Reply:Anybody important
Reply:It could've been.
Reply:Any number of congressmen, dignitaries, politicians, etc.


What is a C++, java and SQL programming? where to use it? and what are the good example for this?

C++ and Java are used to develop applications that run on almost any type of computer, for example Windows Operating System is written in C/C++. Most of the DLL's (Dynamic Link Libraries) you find in the Windows folder are in C++. Many web pages are dynamically created (the material changes) with Java programs running on the web site; this is not the same as Javascript, a simplified language that runs in a web browser.





SQL is a database language, used for storing and manipulating data. Rather than operating on only one item at a time, statements may also affect all data. For example, "update employee set salary = 90000" would change the salary of all rows in the employee table to 90000. Databases that use SQL or a language similar to it include Oracle, Firebird and Access.

What is a C++, java and SQL programming? where to use it? and what are the good example for this?
C++ and Java are Object Oriented Programming languages


SQL (Structured Query Language) is the most popular computer language used to create, modify and retrieve data from relational database management systems.





Maybe you could write a small application using C++ or Java to retrieve data from an SQL database.
Reply:C++ and Java are object oriented languages. But it is also possible to create procedural programming in C++. Java is mainly used in creating Enterprise applications where as C++ is used mainly for system side development. Almost all web applications are made of Java now a days.





SQL is actually a Ansi standard. They are used to give commands to Database ; for example: insert a record, delete, view all the records present in a table etc.
Reply:C++ is object oriented programming, Java is similiar to c++ they are in the same family used to right programs applets and what not. this would be a very long explanation by the way SQL is a database "used in server side scriping you would use a language called PHP or asp.net to post queries to your sql database often you would use this to make your forms dynamic create an online shopping cart blog so on and so forth. a great place to receive video tutorials on this is lynda.com for 25 a month you can access over 10,000 videos on computer related trainig such as photoshop, adobe, macromedia, flash, all the things you basically described above plus for free you can access the w3c trainig forum for free. their are tons of free educational trainig sites online you just have to google and search for them
Reply:C++ and Java are both Object Oriented Programming languages. They are popularly used for developing applications. Java is widely used for developing applications for the internet as it is platform independent.





SQL is a query language used to run queries on databases.


Language L = {any “c” followed by at least one “b” followed by at least one “a”} For example: baa?

this project is a Language Definition for computer lesson compiler writing.

Language L = {any “c” followed by at least one “b” followed by at least one “a”} For example: baa?
now what that suppose to mean?:S

augustifolia

Who created or invented words for example who said this should be called moon, girl, dog e.t.c?

Initially there must have been an intuitive formulation of words for the most important aspects of life given through the unconscious. This must have played a great part in our use of language as even birds, whales and other life forms have an ability to communicate for mating and warnings of danger. (They have no schools)





We were told by a great teacher that the primordial sound (Big Bang) was the first sound and that resonated throughout all universes as the sacred sound OM that has somehow become Amen in the Greek or Latin form. From this one sound all the syllables of the ancient Sanskrit language were formed and one can only guess that over thousands of years the formulation of that language has been adapted regionally. One only has to look at the way the English language has been adapted say in America where the terminology has been adapted and to some extent a translation is already required.





Our social and occupational lives must also have influenced the formulation of words as we can see today the IT industry has given us a whole new vocabulary that is still expanding and old terms such as Fletcher (One who made arrows) Cooper (One who made Barrels have little usage. Great question, that’s the best we can do, hope you find it of some use and don’t class it as Cobblers (Those who mend shoes) [Now slang for nonsense].

Who created or invented words for example who said this should be called moon, girl, dog e.t.c?
my mom, thats where i first heard them.
Reply:MAYBE THE GREEK GODS.
Reply:the melting pot of evolution.
Reply:THE VIKINGS
Reply:ACROCIDNG TO RAESAECRH AT AN EGNILSH UINVRETSIY IT DEONST MTATER IN WIHCH OERDR THE LTTERS ARE PALECD AS LNOG AS THE FRIST AND LSAT LTTREES ARE THE SMAE.
Reply:Language evolved with each Generation.
Reply:human beings!!
Reply:I think it was my great uncle roy
Reply:i broody spreak grood engrish i worke hat crall centeer foor brackleys blank yoo broody wude kermit rand mi triping iss bletteer van yoors yoo honkie
Reply:anyone can invent words,i prefer to say they where created. A board of lucky people get payed a lot of money to review %26amp; decide if your word is worthy of a place in the literal concise that we live by.if you want to throw some suggestions in there then go right ahead.
Reply:The words were obviously invented by many people for the same thing in different countries. Then someone collated the words of different languages.
Reply:The English, we started everything!!





Just kidding. Im not sure to be honest. I think it evolved from something and wasnt documented so i dont think we will ever know.
Reply:Raquel Welch, in the movie 'One Million BC'.


Before that one bang on the head with a club meant 'feel like shagging?' and two bangs meant 'bugger off I've got a headache"
Reply:Check out a decent dictionary. You'll find the origin of most words at the end of their definition. Not sure about the word 'google' and similar!
Reply:Well,I invented the word Clackmahooty.


It's a steam powered musical Scottish Unicycle.


For some reason,it hasn't caught on yet.


Neither has 'Squeedlomping' which is the act of expelling the air from a hot water bottle before pouring water in it..


I'm not having much luck,am I?


Have a nice Grotningy,


Misterviv.
Reply:Adam
Reply:The Upanishads say that Almighty created goddess Vac


(speech) who uttered the energy called Om. (Other


religions also agree that in the begining of creation,


there was word). Element Akasa (the nuclear state of


matter, since earth receives nuclear particles from the


Sun and other celestial bodies) was created from Om.


Akasa represents speech and listening of sounds.


Element Fire (plasma, the fourth state of matter) was


created from Akasa. Element Air (gasious state) was


created from Fire. Element Water (liquid state) was


created from Air. And element Earth (solid state) was


created from water. Goddess Vac used these Elements for


rest of the creation and gave them names.


If a,b, and c are real numbers and ac=bc, then a=b Find a counter example for this?

a=5


b=3,647,256,549


c=0





5*0 = 3,647,256,549*0





5 != 3,647,256,549

If a,b, and c are real numbers and ac=bc, then a=b Find a counter example for this?
C=a duhh
Reply:If c=0 a and b can be anything since 0xa=0 and 0xb=0
Reply:Let c = 0. Then pick two different numbers for a and b.
Reply:Your question implies division by c and zero is the only real number by which it is forbidden to divide by. So c=0 is the ONLY counterexample.
Reply:5 * 0 = 6 * 0
Reply:if c=0, then ac=bc but a does not necessarily equal b.
Reply:When c=0, then ac=bc is true even if a doesn't equal b.
Reply:Let (x) (4) = (y)(4)


Now divide both side by common number both side i.e. by 4


x=y
Reply:i dont even understand the question!!!
Reply:Let c = 0, then a and b can be anything


Show an example using the ac method to factor a polynomial in the form: ax2 + bx + c where a is not equal to 1

i am tired of typing mathematical equations in yahoo answers so i'll just give the link to the web site





http://www.wtamu.edu/academic/anns/mps/m...





hope this helps you.





google keyword: factoring trinomials

Show an example using the ac method to factor a polynomial in the form: ax2 + bx + c where a is not equal to 1
If b=a+c


ax^2+bx+c


ax^2+ax+cx+c


ax(x+1)+c(x+1)


(x+1)(ax+c)
Reply:ax^2 +bx + c





ac method of factoring is to find out the factors of the product of x^2 coefficient, a and constant term c and such that their sum is equal to b, if ac is positive and if ac is negative their difference is equal to b





ex: 1 where ac is positive





3x^2 + 11x + 6





here a = 3 and c = 6 and b = 11





ac = 3*6 = 18





factors of 18 are 2*3*3 = 2*9





ac = 2*9 = 18





2+ 9 = 11 = b





the polynomial can be written as





3x^2 + 9x + 2x + 6





3x(x+3) +2(x+3)





=%26gt;(x+3)(3x+2)





ex:2 where ac is negative





2x^2 + x - 15





here a = 2 , c = -15 , b = 1





now product of factors of ac shoud be written as difference such that it equals b





ac = 30 = 6*5





b = 6-5





2x^2 + x - 15 =%26gt;





2x^2 +6x - 5x - 15





2x(x+3) - 5(x+3)





(x+3)(2x-5)


Can someone please provide an example of the different tax benefits of an LLC, S Corporation, and C Corp???

like provide a sample income statement for me???

Can someone please provide an example of the different tax benefits of an LLC, S Corporation, and C Corp???
The income statements would essentially be the same. The difference would be in the allowance for income taxes. C corp would have it and the others would not (unless the llc has elected to be taxed as a c corp).





Tax benefits:


LLC: Taxed essentially like a partnership. All income is passed through to the members and reported on their personal returns. All members are considered limited so the liability exposure is only their investment.


S Corp: Files Form 1120S and income is passed thru to shareholders and reported on their personal returns. If a prior C Corp, could have built in gains tax exposure.


C Corp: Taxed on form 1120 and any dividends paid are taxed at the shareholder level as well.
Reply:The three entities calculate their taxable income in essentially the same manner. The main difference is that the owners of the LLC and S Corp incude their share of that taxable income in their returns. The LLC and the S are not tax paying entities. The C corp pays tax on its taxable income. And, when the after tax income is distributed to the owners of a C corp (either as dividends or liquidating distributions) the owners are taxed on that income. So, C corp income is eventually taxed twice, once at the corporate level and once at the shareholder level.





On the otherside of the equation, owner/employees of a C corp may receive benefits (group life and health insurance, etc) not available to the LLC or S. The C corp can deduct the expenses of those benefits in determining its taxable income.

nobile

How can i get afree example that calculate the union of zero and one two matrices in c langauge?

You can try google code search or krugle.com





http://www.google.com/codesearch





http://www.krugle.com/


In C++, what is the meaning of char * ? How to recall this pointer ? Any simple example..?

i'm still learning myself but try this





http://www.cplusplus.com/doc/tutorial/po...

In C++, what is the meaning of char * ? How to recall this pointer ? Any simple example..?
In computer memory, each byte has an address and a value.





Given the line


char myVar = 'D';





The compiler puts the value 'D' in some memory address.





In C/C++ you can actually get that address with the %26amp; operator.





char * myValAddress = %26amp;myVal.





Think of the %26amp; operator as the "the address at" operator.





when you see


char * myValAddress = %26amp;myVal


read it in your head as


myValAddress equals "the address at" which myVal is stored.





Now myValAddress is a "pointer" to the location where myVal is stored.





You can now either change or get the value with the variable name myVal, or change the value by "dereferencing" the address pointer with the * operator.





char newVal = myVal;


char newVal = *myValAddress;








think of the * operator as "the value pointed to by"





when you see


*myValAddress = 'F';


read it in your head as


"the value pointed to by" myValAddress equals 'F';





Any quest, email me at redflats@yahoo.com
Reply:A string.


The equation y=400(1.03)^x is an example of what? A.exponential growth B.exponential decay or C. not exponent?

x could be negative right?

The equation y=400(1.03)^x is an example of what? A.exponential growth B.exponential decay or C. not exponent?
Exponetial growth.


MultiThreading example for copying a set of files to different destinations in vc++. ex. c:\tst\*.* d:, e:, f:

On specifying a source folder containg n different files, and giving different destionation folders (like e:\test, g:\test, h:\test etc), the application should copy all the files to the specified output directories at a time. The code should be be in MFC

MultiThreading example for copying a set of files to different destinations in vc++. ex. c:\tst\*.* d:, e:, f:
Create a function called something like "copyfile", pass it the source file name and destination. Then for each file requested, simply launch a thread to execute the copyfile routine. I think I'm reading your request right, I guess one other interpretation is that each source file should be written to all the destination directories, in which case you can add a middle layer to handle the additional logic, or change copyfile to take an array of destinations.





pseudocode:





void copyfile(char *src, char *dest)


{


// do simple file copy here


}





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


{


foreach srcfile


beginthread(copyfile,srcfile,destdir)


}

hibiscus

Please give an example of each of the following. a) Gram+ bacillus b) gram- bacillus c) gram+ coccus.?

a) Bacillus anthracis


b) Escherichia coli


c) Streptococcus thermophilus


Which of the following example of a prokaryotic cell? A) An Amoeba B) A virus C) A Bacterium D) A liver cell?

A Bacterium.





Cells that lack a membrane-bound nucleus are called prokaryotes (from the Greek meaning before nuclei). These cells have few internal structures that are distinguishable under a microscope. Cells in the monera kingdom such as bacteria and cyanobacteria (also known as blue-green algae) are prokaryotes.

Which of the following example of a prokaryotic cell? A) An Amoeba B) A virus C) A Bacterium D) A liver cell?
The answer you want is C, Bacterium. Below is the reason, and even a little discussion of life!





Prokayotes don't have nuclei, so you can easily discount the liver cell. Some amoeba don't have what we call a nucleas, but do have membrane bound genomes, and others have 4 nuclei, but they can also be discounted for being eukaryotic. That leaves virus and bacteria.





The answer depends on what you think the definition of a prokaryote, and living is. If prokaryotes are only defined by not having nuclei then viruses are prokaryotes. However, must people argue that viruses are not alive, and therefore shouldn't be classified with other organisms, hence the answer is C, Bacteria. But like it said, its entirely up to you to decided whether viruses are alive and whether they should be clssified with prokaryotes or not - there is not consensus of opinion in the science world.
Reply:c
Reply:C. A Bacterium
Reply:Two types of cells are known to exist; the prokaryotic cell and the eukaryotic cell. Bacteria have prokaryotic cells while all other forms of life have eukaryotic cells. Therefore, my answer would be (C) A Bacterium.


What's the difference between il/elle est and c'est? where do you use them? please provide an example?

Il/elle est is used for nouns that don't have an article:





Il est chrétien - He is a Christian


Il est médecin - He is a doctor


Elle est comédienne - She is an actress





C'est is used for those that do:





C'est un con - He is a prick


C’est une pétasse - She is a b*tch


C'est mon frère - He is my brother

What's the difference between il/elle est and c'est? where do you use them? please provide an example?
"il" is the word for "he"





"elle" is the word for "she"





"C'est" is a contraction it means "it is"
Reply:It all depends on the context. You can't just substitute one word for another in language and learn that. You have to replace phrases and parts of phrases.





I think what you are hinting towards is for example how they talk about weather in French.





It is hot


Il fait chaud





Learn this as a phrase, so you know to always use "il fait" instead of "it is".





It's a common error with anyone learning language to try to translate word for word.
Reply:Il is masculine - can be used as "he" or "it" for masculine things





ex:


He was here. ----%26gt; Il etait ici.


It is cold -----------%26gt; Il fait froid (froid is masculine)





Elle is feminine - can be used as "her" or "it" for feminine objects





ex:


She's watching the cat ----%26gt; Elle regarde le chat.





C'est means "it is"





hope that helps





It's here -----%26gt; C'est ici.
Reply:IL est gentil we use it when we wants to talk abt masculine gender.


Elle est gentille we use it when we wants to talk abt feminine.





C'est qui? when we wants to indicate the person or the object.


If u need more examples contact me.


Economics: An example of a standardized product is (a) toothpaste. (b) paper towels. (c) dresses.

I would say b) Paper towels.


There appears to be more variation in the other products.

Economics: An example of a standardized product is (a) toothpaste. (b) paper towels. (c) dresses.
None of these products are standardized. There are different varieties (e.g., sizes, shapes, textures, and or flavors) of all three. A standardized good is something like a pond of sugar or a bushel of wheat.
Reply:dresses,only,branded one,are termed as standardised pronduct because it is luxurious item,which is not necessary for survival.others are counted in normal necessities-used daily in our life.
Reply:If I had to choose from this list, I would have to go with the paper towls, but I don't think they are very standardized these days.


The idea of a standardized product is that it is a nearly identical product made in many different places.

hydrangea

Do we have real time example of reverse of E=mc^2.ie:m=E/c^2?

Yes, of course. There are many electron-positron machines as an example that annihilate to form pure energy (generally photons). Which will usually soon oscillate into particles that decay at those energies.

Do we have real time example of reverse of E=mc^2.ie:m=E/c^2?
Yes we do, it is this;


You=t**t
Reply:This is most easily seen in subatomic physics. Radioactive isotopes decay at a known rate and generate energy in the form of matter and energy. The energy is in the form of heat and can be measured exactly. The matter can be either photons, electrons or even atomic nuclei. In the case of subatomic particles like neutrons, the mass can be calculated knowing the rate of radioactive decay. This gives the number of particles lost per second. The overall equation is then :





Original mass = mass of evolved particle + energy





The difference in the masses of the particles can then be shown to be equal to the heat energy divided by the square of the speed of light:





(M1 - M2) = E/C^2





This was most likley how Einstein proved his theory.
Reply:Nope!