- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 20
- Posts with Upvotes
- 15
- Upvoting Members
- 18
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
377 Posted Topics
Re: There's another veru nice book Thinking In C++,2nd Edition by Bruce Eckel | |
Re: [QUOTE=danijohn;293007]when I exit a function i get 'general protection exception' -' processor fault'. Function writes to file and works ok except won't exit. What does this mean please, and where should I look ? Am using Turbo C 4.5 & Windows xp. Must be overwriting memory somehow I suppose but … | |
Code will check whether the number entered is integer or not. [inlinecode]ignore[/inlinecode] extracts characters from the input sequence and discards them. The extraction ends when max characters have been extracted and discarded or when the character delim(\n) is found, whichever comes first. In the latter case, the delim character itself … | |
Can anyone explain me in simple language and better if with an example [B]why constructor don't have return types :!: [/B] | |
Re: [QUOTE=Looben;293127][B]Execute -> Rebuild All[/B] should fix it.[/QUOTE] I guess his problem would have been solved by now :mrgreen: | |
Re: Read K & R. You'll know how to do that. By the way why do you want to make your own malloc function? | |
Re: Never understood what crap it gives.... I put in techied's socks | |
Re: Why are you taking pain by handling memory yourself. Use power of STL. [CODE=cplusplus]#include <vector> #include <stdexcept> template <typename T> class Stack { private: std::vector<T> elems; // elements public: void push(T const&); // push element void pop(); // pop element T top() const; // return top element bool empty() const … | |
Re: Narue...your replyies seems to me like you are a very aggressive person. | |
Re: Try this sample code [code] #include<windows.h> int main() { MessageBox(0,"Hello","Welcome Message",1); return 0; }[/code] Change the last parameter to see various options. | |
Re: I don't think there is any built in standard function to do it in C++. You need to use numerical techniques to solve this. Try implementing trapezoidal, simpson etc.. in C++. | |
Re: [QUOTE=comwizz]Please reply.[/QUOTE] Don't bump your thread. Everyone here is helping others on voluntary basis by finding whatever time they are free to spare. [QUOTE=comwizz] I cannot figure out how to open the results/output window in Dev c++. Also how to effectively use step over / step into . I kept … | |
I HAVE LOADED ORACLE 8i ON WINDOWS XP. IT HAD LOADED SUCCESSFULLY AND I HAD WORKED ON IT. BUT ON NEXT REBOOT WINDOWS IS NOT ABLE TO START THE SERVICE CALLED OracleServiceORCL. WHEN I TRY TO START IT AGAIN IT ENDS WITH AN [quote] ERROR:- Could not start the OracleServiceORCL … | |
Re: [QUOTE=degamer106]i'm sorry i meant if x < y.[/QUOTE] Yes, then result will be x. | |
Hi guys...i am having this nokia phone model 2280.....i had a connection of MTNL garuda....now i have disconnected the service....and i want to switch it over to TATA or RELIANCE......but i am not able to change the settings of the phone.....there are ways to do it...since touts are sitting in … | |
Re: [B]Just Following Directions...[/B] A blonde was terribly overweight, so her doctor put her on a diet. "I want you to eat regularly for 2 days, then skip a day, and repeat this procedure for 2 weeks. The next time I see you, you'll have lost at least 5 pounds." When … | |
Re: dexter1984, Why don't you simply use vector of vectors [code] #include <vector> template <typename T> class dynamic_array { public: dynamic_array(){}; dynamic_array(int rows, int cols) { for(int i=0; i<rows; ++i) { data_.push_back(std::vector<T>(cols)); } } // other ctors .... inline std::vector<T> & operator[](int i) { return data_[i]; } inline const std::vector<T> & … | |
Hi guys....I want to make a simple game using openGL Should I go for GLUT or MFC...don't know anything about any of these.... please refer me to some ebooks on net or tutorials (not very advanced please) | |
Re: Blinking text in DOS, compiled with Turbo C [code] #include <conio.h> #include <stdio.h> int main() { int color; textattr(128 + 10); cprintf("This is blinking text\n"); return 0; }[/code] | |
Re: or this [url]http://public.research.att.com/~bs/bs_faq2.html#friend[/url] | |
Re: DEV C++ doesn't give these warnings.....but what does these warning signify?? | |
Re: Turbo*** is 15 year old compiler and does not conforms to most of the standards..stop using it asap....you can download the DEV C++ IDE which uses GCC as it's compiler from here [url]http://www.bloodshed.net/devcpp.html[/url] | |
Re: Something Like This [code] #include<iostream> #include<string> using namespace std; int main( ) { string x("12345"); cout<<x<<endl; x.erase(3,1); cout<<x; return 0; }[/code] | |
Re: Or Something like this [code] int a=rand(); int b=rand(); int c=rand(); std::vector<int> vec; vec.push_back(a); vec.push_back(b); vec.push_back(c); std::cout<< *std::max_element(vec.begin(),vec.end())<<std::endl;[/code] | |
Re: [QUOTE=yeya;292327]Hi, I wonder if there is some open source C++ library for creating SWF movies, something like SWF Scout but open source? Thanks![/QUOTE] See if this is what you need [URL="http://sourceforge.net/projects/ming/"]Ming - an SWF output library[/URL] | |
For all functions, a domain error occurs if an input argument is outside the domain over which the mathematical function is defined. On a domain error, the function returns an implementation-defined value. | |
Re: Narue, You are not going anywhere. You are one of the reason why people like me visit this forum. | |
Re: Something like this [code] #include <stdio.h> #include <stdlib.h> #include <string.h> int recursivePalindrome(char *str, unsigned int index) { if (index > strlen(str)/2) return 1; if (str[index] == str[strlen(str)-index-1]) return recursivePalindrome(str, ++index); else return 0; } int main () { printf("%d\n",recursivePalindrome("yehey",0)); printf("%d\n",recursivePalindrome("w00t",0)); return EXIT_SUCCESS; } [/code] | |
Re: [QUOTE=pb2006;290285]I found many tutorial sites are bookmark like. Anybody knows some good programming tutorials site with rich content?[/QUOTE] By programming tutorial I guess you mean C or C++ tutorial since this is a C and C++ forum Check [URL="http://www.cplusplus.com/"]this[/URL] and [URL="http://www.cprogramming.com/"]this[/URL] | |
Re: [quote=allwiyn;423639][B]Hi, How to write a function that checks if the circle passes through given four points.. please answer this with code or just give me the logic and concept of writing this...[/B][/quote] [URL="http://www.daniweb.com/forums/announcement8-2.html"]Help yourself by reading this[/URL] | |
Re: here's one very good link [url]http://www.cprogramming.com/[/url] | |
Re: [QUOTE=zellex]what does [code] bool bad_move[7] [/code] do? [/QUOTE] It creates an array of bool. [QUOTE=zellex]what does the bool do overall?[/QUOTE] Answer already given in previous post. | |
Re: A very nice site to start with [url]http://www.cprogramming.com[/url] | |
Re: The reason for linker error is that the definition of the function template has not been instantiated. In order for a template to be instantiated, the compiler must know which definition should be instantiated and for what template arguments it should be instantiated. Unfortunately, these two pieces of information are … | |
Re: If you would have been given an options to implement operator++() which would work for both versions of ++, how would you do it? You need to find some way to distinguish between both of them. | |
Re: Best way would be to get a book. Some of the recommendations [url]http://www.daniweb.com/forums/thread70096.html[/url] One online tutorial [url]http://www.cplusplus.com/doc/tutorial/[/url] | |
Re: Another link [URL="http://users.aber.ac.uk/auj/voidmain.shtml"]void main(void) - the Wrong Thing[/URL] | |
Re: [QUOTE=dexter1984;536962]Hi guys, I need some help with arrays. [ICODE] #include <iostream> #include <ctime> using namespace std; void constructArray (int [], int); void printArray (int [], int); const int MAX = 30; int sizeArray = rand() % MAX; int main() { srand(time(NULL)); int makeArray [sizeArray]; constructArray [makeArray, sizeArray]; printArray [makeArray, sizeArray]; … | |
Re: [QUOTE=rathmal;536877]please help me to write a program in c++ to find sum of first and last digits of any number[/QUOTE] / and % can come handy. | |
Re: [QUOTE=Ancient Dragon;535021]why don't you do this the easy way by using the ifstream >> operator to remove all white space between words with output the word just read with one space [code] string word; while( infile >> word) outfile << word << " "; [/code][/QUOTE] Like Larry Wall said: "Make … | |
Re: List Is Very Long But My Favorites 1.Age Of Empires-2 Conquerors 2.Quake-II 3.Need For Speed-2 4.Unreal Tournament 5.Poker | |
Re: Use a descriptive name for the [I]type[/I]. If you are having difficulty in finding a name for the type, you should do some more research about the [I]type[/I]. You still don't know enough about what you want to implement. | |
Re: [QUOTE=prasath]will someone point me the reasons why a call to [B]malloc [/B]fails even if we have enough memory ?[/QUOTE] show your code which is failing and make sure you are not passing -1 in malloc. | |
Re: [QUOTE=server_crash]Just a bunch of garbage. Half of them look like rain or something was on the camera lenses, and the rest look awfully close to photoshop edits.[/QUOTE] Totally Agree | |
The End.