377 Posted Topics
Re: beuls use [inlinecode][[/inlinecode][inlinecode]][/inlinecode] instead of [inlinecode]<[/inlinecode][inlinecode]>[/inlinecode] for code tags | |
Re: Recently there has been another thread relating to your problem [url]http://www.daniweb.com/techtalkforums/thread38281.html[/url] | |
Re: [QUOTE=fluidDelusions]...and you capitalized every noun in your sentences as well as misspelled "bite."[/QUOTE] :lol: ![]() | |
Re: try concentrating on [inlinecode]{[/inlinecode] [inlinecode]}[/inlinecode] brackets and matching [inlinecode]if-else[/inlinecode] statements | |
Re: [QUOTE=lakshmisoni]I have a problem in conveting binary to decimal and decimal to binary conversions and i have the due date today[/QUOTE] hi lakshmi, Welcome to daniweb. Plz read the rules before posting. You won't be getting much help like this without showing efforts. Atmost I can say go and try … | |
Re: [URL=http://www.devx.com/tips/Tip/14544]Alternatives to ios::nocreate and ios::noreplace[/URL] | |
Re: ANSI C allows 15 levels of nesting but some compilers evem allow more | |
Re: Replace your headers with these [code] #include <sstream> #include <string> #include<iostream> [/code] | |
Re: Visit [url]http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046996179&id=1043284385[/url] | |
Re: [URL=http://www.daniweb.com/tutorials/tutorial1769.html]Random Number Tutorial[/URL] ![]() | |
Re: 1.Prototype of functions inputbooks and displaybooks differs from their call. 2.Call with the object instead of class name | |
Re: Just got these two links from tutorials section. [url]http://www.daniweb.com/tutorials/tutorial7595.html[/url] [url]http://www.daniweb.com/tutorials/tutorial14329.html[/url] | |
Re: Here's Mine..... Once 4 friends were traveling through a car. All of them were engineers. One was an electrical engineer, other one was a chemical engineer, third was a mechanical engineer while the 4th was a software engineer from famous company called "Microsoft" (Bill gates wali). Suddenly the car stopped … | |
Re: [QUOTE=iamthwee]Or you could just learn how to use [I]string[/I] from the STL :rolleyes:[/QUOTE] string class is not a part of STL...It is part of ANSI standard C++ ![]() | |
Re: [QUOTE=beuls]It works fine in VC++ but gives an error as "Undefined structure class name". [/QUOTE] How can it work and give you an error at the same time? See the changed code...and before asking why I changed some lines...do a search of this forum or google... [code]#include <iostream> using namespace … | |
Re: [QUOTE=DotNetUser]Anybody know how to create a pop up menu in VC++.NET? [/QUOTE] See This [url]http://www.functionx.com/vcnet/controls/contextmenu.htm[/url] | |
Re: [QUOTE=masa]hi if you use [code] rewind( FILE *in); [/code][/QUOTE] We don't use this...we use [code]rewind(in);[/code] [QUOTE=masa] what you can use for [code] I/O stream library ifstream in(ff.txt); [/code][/QUOTE] Are you sure about what you are asking...if yes, please make it more clear | |
Re: There is a function called [inlinecode]itoa()[/inlinecode] which converts integer to string | |
Re: Instead of area and perimeter...it should be length and breadth....why are u using java code in c++... | |
Re: [QUOTE=rajuwani121]I just need the code for connecting the sql server 2000 using borland c[/QUOTE] No one will write code for you... Here is library for accessing SQL...[URL=http://www.sqlapi.com/]Link[/URL] it contains lot of examples...modify it according to your needs | |
Re: How Can You Expect That From Forums...I am Sure That Library(Whatever You Are Attaching) Is Not Yours. [QUOTE]Anyways Read The [url=http://www.daniweb.com/techtalkforums/announcement8-2.html]Rules[/url] [/QUOTE] | |
Re: [QUOTE=winbatch]It all depends upon how the functions are defined. Look up 'passing by value' vs. 'passing by reference'. [/QUOTE] I guess person is talking in context of 'C'...and in 'C' there is no pass by reference...there's only pass by value | |
I am quite familiar with C++ language...wanted to expand my knowledge...so just wanted to ask you gurus...what would be better to learn next...Managed C++ or C#...or something else more demanding in the market. ![]() | |
Re: See The Changes...cin terminates with the first white character...don't mix C-headers with C++ one's....and why were you including iostream twice? [code] #include <iostream> #include <cstdlib> #include <string> using namespace std; class doctor { protected: string newname; public: doctor(); //constructor virtual ~doctor(); virtual void set_Name(string itsname); virtual string get_Name(); }; //end … | |
Re: See [URL=http://www.daniweb.com/tutorials/tutorial1732.html]Arrays[/URL] | |
| |
Re: According to new ISO standard, variables declared inside for loop are not accessible after its scope end...for example [code] for(int i=0;i<5;i++) { cout<<i; }// memory for i releases and won't be accessible after this...you need to declare i again to use it.[/code] | |
Re: Either make try block inside main...or call a function from main which contains you try block...what are low, high...u haven't declared them anywhere...where are u asking for values of num1, num2...try reading the book again | |
| |
Re: See The Changes [code] #include<iostream.h> #include<conio.h> int main() { int m,n,r; cout<<"enter the order "; cin>>m>>n>>r; int mat1[10][10] ,mat2[10][10],mat3[20][20]; cout<<"enter the elements of first array " <<endl; for(int i=0;i<m;i++) { for(int j=0;j<n;j++) { cin>>mat1[i][j]; } } cout<<"enter the elements of the sec matrix "; for(i=0;i<n;i++) { for(int j=0;j<r;j++) { cin>>mat2[i][j]; … | |
Re: Read This [url]http://www.cprogramming.com/tutorial/cfileio.html[/url] | |
Re: [QUOTE=nabil1983]My fault sorry,, i meant to ask what kind of SEARCH method is this... ?[/QUOTE] Linear Search | |
Re: You can't do this in catch [code] catch ( num1<0 & num2<0 & num3<0 & num4<0 )[/code] | |
Re: Try doing this in both C and C++...It will compile in C but not in C++ [code][color=red] int main() { const int x; return 0; }[/color][/code] | |
Re: Answers 1.In C character constants are stored as ints 2.Make use of escape sequences 3.Read Only Memory 4.It may not give give compilation errors but it will most propbably crash(Undefined Behaviour) 5.You should never use gets.Instead Use fgets. See [url=http://www.gidnetwork.com/b-56.html]This[/url] 6.C++ is very strict with regard to type compatibility as … | |
Re: compare the current coordinates of text or picture with screen coordinate...and if it's larger than that...then take suitable action to correct it ![]() | |
Re: You can use [code]substr()[/code] function of string class | |
Re: See [URL=http://www.cs.sunysb.edu/~skiena/214/lectures/lect20/lect20.html]Address Calculation[/URL] | |
We can call static member function through both class name and objects...but we generally use class name to call static member function instead of objects.... Is there any performance benefit in it by using class name or is it just to remove confusion by not calling through object | |
Re: Loads of material here [URL=http://www.programmersheaven.com/zone3/cat856/index.htm]Go[/URL] | |
Re: [QUOTE=ban26ana] I figured out how to initialize the elements to zero by using int t[2][3] = { {0}, {0}, {0} }, but I have no idea how to do it using a for structure. Could someone point me in the right direction of how to start? [/quote] See this [code] … | |
Re: if its a character array then initialize it with '\0' and if its an integer array then initilize it with 0 | |
Re: In overloading you need atleast one user defined type | |
Re: make use of string class and its functions...it is very easy | |
Whenever we get reputation...some of the those reputations have green box with it and some have grey box with it...does those green and and grey box signifies good and bad post respectively or something else....and what is the criteria of reputation points | |
Re: It sounds like homework....post what you have done till now and ask specific question regarding that code | |
Re: 1.Use code tags 2.It should be conio.h(you should avoid using non-standard headers) 3.Use <iostream> instead of <iostream.h> 4.Lot of typing mistakes and lot of other issues.... |
The End.