- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 58
- Posts with Upvotes
- 48
- Upvoting Members
- 39
- Downvotes Received
- 9
- Posts with Downvotes
- 7
- Downvoting Members
- 6
Everything remains a dream untill someone dares to convert it into a reality !!!
- Interests
- Coding, Puzzles, Math, Painting, Hanging out with friends
- PC Specs
- Dell XPS Laptop i5 Processor 6 GB Ram running Dual boot Windows 7 and Ubuntu 11.04
406 Posted Topics
Re: Post by jonsca and tux4life have divulged all the information related to this topic.But would like to add some from my side. Apart from the printable characters (character which can be seen on a output screen) we make use of several other operations when working on any text. When we … | |
![]() | Re: Try installing the lib folder again... from some other copy...Its a common problem in TC...you wont have that problem again once you replace that folder with the proper ones. |
Re: I think you need to learn the proper syntax of coding first. There is nothing in C++ which is used like this.. [code=c++] if (i = 3; i <=num; i++) [/code] | |
Re: [QUOTE=bemo55;815093]I have a project for school that i am working on, and i cant figure out how to store names in an array. i have it declared as [code] char firstname[25]; char lastname[25]; [/code] but i was told that just stored one string and when i go to print out … | |
Re: [B]Word of advice :[/B] [B]1)[/B] Don't post such huge codes,just tag the file as an attachment and post your question. [B]2)[/B] For solving any problem try to break it into parts and solve some smaller test case. As far as i can see your Test Case 1 itself can be … | |
Re: Hey definition of a struct doesn't create struct objects for you to play around as variables of data type struct. You need to create the objects of that struct to access memory and do other assignment stuff. So try this: [code=c] int main() { TransistorRec a; printf("Enter manufacturer's ID, polarity, … | |
Re: Its just one of the ways used within the working of a computer to make the best use of available space. Say your program after compilation is converted into set of instructions like [QUOTE] Address Instruction 00000000 <Start> 00000001 <Instruction 1> 00000002 <Instruction 2> 00000003 <Instruction 3> ... 00000300 <End> … | |
Re: [B]1. [/B]Redundant [CODE=c++] ifstream myfile(<filename>); myfile.open(<filename>); [/CODE] [B]2. [/B]Use \[CODE\] \[/CODE\] tags for better visibility of code. [B]3. [/B]Give an example of the contents so that we get a better idea. | |
Re: I see several problems in your code. [B]1. [/B] void main() ??? a very bad coding practice and if your compiler is allowing this then its high time you switch to a good compiler like g++. Good practice (now a rule) is int main(). [B]2. [/B] Why static functions for … | |
Re: Fire Fox !!! Wooo !!! But also Chrome as GOOGLE is involved .... :) | |
Re: You might be using a pre-written javascript jquery combination to do that downloaded from net. Check the javascript part for a mentioning of number like 3000 or 5000 . These are delays in milliseconds before slide transition. Change that accordingly. | |
Re: If possible get a good book like K and R and start your programming in C. Its always better to struggle at first as it lays the foundation strong. | |
Re: I may be wrong but as far as I see you are using a single port to receive client requests from , but later when you intend to handle different clients in different threads you have to bind them to a different port for the connection to remain intact and … | |
Re: What you are doing should not be done. It may even cause runtime exceptions in some cases.Know this always "A base class pointer can be used(by typecasting) to point to a base class object or a derived class object but the reverse should never be done." The reasoning for above … | |
![]() | Re: I believe that to know how to program in any language you just need a few days but to get a hold on it it takes a life time. The only difference in Java/C# and C++ that I find is in C++ you got to do many things on your … |
Re: [B]First thing you need to know is that array a in your code is an array of addresses and not values.[/B] [B]1.[/B] Its just your luck that this code is even running as in the last iteration of for loop when it does [CODE]a[6] += 1;[/CODE] it will be pointing … | |
Re: Try using [URL="http://www.cplusplus.com/reference/iostream/istream/getline/"]cin.getline()[/URL] along with [URL="http://www.cplusplus.com/reference/iostream/istream/gcount/"]gcount()[/URL] together where in getline() can fetch you the string and gcount can help you stop according to a particular condition. Use it with caution as getline sets some error flags when encountered with a premature end of input. | |
Re: [B]1.[/B] Don't exactly know how [B]name_t[/B] in your code is defined but I don't really see the purpose of using [B]*&[/B] before charArray. I bet you are confused with passing array as a function parameter. Have a look into it. [B]2.[/B] If your charArray is really and array of strings … | |
Re: How honest of you to ask for the code directly... :) Honestly people on this forum (including and especially me) are machines who cannot work without a Honest effort from your side, so come back when you have done that !!! | |
Re: If its the Qt IDE which you are talking about , then the best way to learn using any IDE is to try out new things in it and surfing through the icons. Moreover you always will have a helper documentation for the IDE under help tab. Use that. | |
Re: It entirely depends on the questions as to how much is the Web programmer involved. Normally a designer should provide the styling docs such as CSS , other window designs that he has come up with and documents regarding how things are related to each other. But ya the view … | |
Re: That depends on how you want to write it within the file. If you write it the same way it appears then may be you can use getline() function to get an entire line and then process it by using the space as delimiters to get your values. Or you … | |
Re: The error message itself says where you went wrong.Initialization of factorPtr in line 14 [B]should be [COLOR="green"]factorPtr(ptr)[/COLOR] rather than [COLOR="red"]*factorPtr(&ptr)[/COLOR][/B]. | |
Re: @Karan : We are not here to do someone's homework. Put in your effort first... | |
![]() | Re: Well I found this thing in your code: [code=c] initgraph(&gd,&gm,"C:\\TC\\BGI"); [/code] Its normally this way: [code=c] initgraph(&gd,&gm,"C:\TC\BGI"); [/code] When you are so sure about the libraries you possess then try out the example program given for <graphics.h> that should work fine for a try(As you are using TC). If not … |
Re: >BimanD Did you even read what the question posed was...? And what others have replied to it...? | |
Re: [QUOTE=Dionysus;807787]first of all thanks for replying...A dictionary from japanse romanji to english and vise versa..and the dictionary data base would be from a single text file....my main prob is how do i get a specific line from that text file ..:D[/QUOTE] Well what you really need to do is to … | |
Re: For me First comes [B]"A Beautiful Mind"[/B] and falling back just by an inch is [B]"Shawshank Redemption"[/B]. The two most unforgettable movies I have ever seen. | |
Re: Take the first step and code what ever you can in what ever way you can... we will help you code but you are the one who should code. | |
Re: With -b option you can include a batch of commands in non interactive mode of sftp transfer . So may be you can use a c++ program with system command or exec commands to execute the commands you wanted to feed into the batch file and just pass on the … | |
Re: By looking at your post all that I can say is as the writer of the code you are at your will to limit the input to any way by putting checks where ever necessary.And your problems : >>Problem 1: if the input has more than 8 chars, garbage characters … | |
Re: No we cannot help you with your codes but we will help you out with the problems you may encounter while writing your codes. First know the format of image you are trying to manipulate. BMP or JPEG of 8 bit RGB or 24 bit RGB and also the construction … | |
Re: If you are playing a game already built it would have been designed in a way to play against you in "Single User" mode. If you are designing the game yourself then you can write the code to make it play against you. :) So its your choice now. | |
Re: Anything else needed...??? Or do you want us to deliver it to the person concerned also...? | |
Re: Assuming that your code works fine till this line(if not hoping that you will successfully solve the problems :) )you can do this : [code=c++] if ((line.find(search, 0)) != string::npos) { cout << "found " << search<< endl; //Here at this point you know that the next three lines are … | |
Re: You want the address of the variables list1 and maxVar to go so your summarr function call be like [code=c++] result = sumarr(arr, num, maxVarHolder); [/code] | |
Re: Try to set a wired connection first using the options and also configure your ethernet drivers using pppoeconf in sudo mode.May be then you can try for establishing a wireless connection. | |
Re: A function which we think may be overloaded in the derived classes is marked with keyword virtual so as to inform the compiler that this function has a fair chance of getting overloaded in the derived classes. A base class which has at least one pure virtual function cannot be … | |
Re: Inline is just a request to the compiler to treat the call to a function like a macro and substitute it rather than treating it as a function and making a call. This request may or may not be considered by a compiler where in the second case it treats … | |
Re: You can refer to [URL="http://www.cplusplus.com/reference/iostream/ios/exceptions/"]this[/URL]. | |
Re: I just made some small change in your class definition removing the .resize() and fill() functions as I didn't find their need. [code=c++] template <typename T> class dyn_arr{ public: //Dedault constructor dyn_arr() {}; //Constructor dyn_arr( int rows, int cols) { for(int i=0; i<rows; i++) { vector<T> row; // Your mistake … | |
Re: [B]Problems :[/B] [B]1)[/B]The result in your sum function and the result in your main function are different as you are not at all passing the variable result to the sum function.So pass result variable also along with n to the sum function as [code=c++] sum(n,result); // Make sure result is … | |
Re: Ok after answering two of your questions I realize that you are just creating one thread for everyone of your questions and just delegating the work of finding the answers to these questions. Go look into some books,google the key words out,try to implement them and then if you get … | |
Re: Check your code again. The looping construct you have used does simple insertion which you want and doesn't sort the vector in any way.try your code on an integer vector may be to confirm the problem. | |
Re: Really sorry to answer to a two year old thread. I didnt look at the date just answered the thread which appeared at the top. :( | |
Re: There are several errors like : void displayPayrollSummaryResults() returning a int value undefined unionCode[ID] in displayEmployeeResult() and others. Please compile it and try to debug these first. | |
Re: May be you can have a look at [URL="http://www.gtk.org/"]this[/URL] once. | |
Re: Have you tried to look at the patterns in printf like "%4d" "%-4d" "%04d" etc follwed by an integer value in printf ? These patterns are used to generate specific formatting of left allignment,right allignment,fixing the width of the input and also filling the empty spaces with the values you … | |
Re: Try netstat command followed by usage of some filter like grep. | |
Re: @mjoshi : Null character is represented as '\0' and not '/0' as you have done in your program. And hope you have used double variables for sum, x etc as atof returns double. ![]() |
The End.