266 Posted Topics
Re: This is your first post. But, the next time you post your code, please use code tags so that the users can view the code along with proper alignment. [CODE] if (isFixReg) sText2 = (String) arg; else sText2 = text.getText() + arg; text.setText(sText2); isFixReg = false;[/CODE] This indicates that if … | |
Re: It doesn't appear as if you have tried to develop an algorithm of your own. I can't write the entire code for you but I can tell you this much. Use an ifstream object to take values from the file repeatedly. Then for moving to a specified location in the … | |
Re: [QUOTE]and why is it that a child-proof lighter can produce a flame quicker for a small child, than it can an adult?... same goes for child-proof medicine caps[/QUOTE] Yes, similiar things are often experienced. I'd started another thread for them -- [B]Murphy's Laws[/B] :) | |
Hello, I just saw this text displayed on DaniWeb (See the attached image). I think the sentence should be 'This site is monetized by Google AdSense. | |
Re: [QUOTE]i'm probably overweight, but i look normal.[/QUOTE] Me too. | |
Re: And you had already posted your problem on another thread earlier. [url]http://www.daniweb.com/forums/thread102530.html[/url] There was no need to repost it. | |
Re: You can do that with the help of multi threading in C++ and Java. In C, no such feature exists. Although, some libraries for C might be supporting multi threading. I'm not sure. And one more thing, I've read somewhere over here that C++ is the [I]de facto[/I] language for … | |
Re: I wonder why have you included the code inside your post. Your question has nothing related to it. [QUOTE]and how to change the color of the background ?[/QUOTE] Are you refering to the output window? | |
Re: Do you want to insert one more record to the file or do you want to modify the current values? In any case please mention how you've approached the problem uptil now. | |
Re: I'll try to be a bit calm (for a change ;)) and more resolute in pursuing my goals.. | |
Originally discovered by technicians on crash tests at Cailfornia in 1949, Murphy's Laws spread quickly. They were spotted everywhere: buses always came in threes, desperately needed objects became invisible, etc... Well, let us post them over here.. These are some of my favorite picks among the Murphy's Laws regarding software/technology. … | |
Hello, I know this much that I want to include two files in my program. But can I decide which files to include at run time? Is this possible? Thanks in advance, -Jishnu. | |
Re: I huess you misunderstood Narue. Narue was just giving an example. I think this is something you are looking for: [CODE]for(i=0;i<256;i++) { cout<<i<<'\t'<<(char)i<<endl; }[/CODE] It displays the entire ASCII character set. | |
Re: I think taking notes is not essential for remembering something. It is just that some people can remember things by doing so. | |
Re: Correct. But to make it dynamic in its real sense, you need to pass the no. of files by command line arguments to main and then use that no. wherever you've used the fixed value 10.. | |
Re: [QUOTE]thanks all for your fast help i have succeded in the first time in my life with C++ [/QUOTE] Congrats ;) [QUOTE]if i want to check that the string contains $GPGLL [/QUOTE] Use strstr function after copying the file contents to a buffer/string. | |
Re: "I am/was suffering from weakness." ( I'd like to see his weakness when my pet dog runs like hell after him ;) ) | |
Re: Have you compiled the code? Please mention the errors and the respective line no.s. | |
Re: When we create object from a class, it is created on stack or heap. The existence of an object in memory (stack or heap) is called instance of an object. These are interchangeably used. | |
Re: True. The difference appears when the project is TOO large and has to be divided into sections like graphics, sound, logic etc. There is a lead programmer for each section and there are coders that work under them. Ultmately, all the lead programmers are selected by the designer, who visualizes … | |
Re: [QUOTE]i want to know whether the two problems are same or different[/QUOTE] The problem is the same. Solutions are worked out in different manner. Apart from this, I could not make out from your post what problem you are facing. Please mention if I've misunderstood something. You said this: [QUOTE]i … | |
Hello, This thread is in reference to this thread: [url]http://www.daniweb.com/forums/thread1093.html[/url] If it were not for Duoas, the thread would have continued although the OP had posted it four years back. This happens because new posters like Knightzs are not fully aware of the rules over here. We cannot delete the … | |
Re: [QUOTE]The text file is large, but I was wondering if there was any way I could possibly display all of it.[/QUOTE] The console screen consists of 80*25 characters. If your file size is greater than that, then you cannot display entire file at a time. What you can do is, … | |
Re: Hello Valmian, I guess you'll receive more help if you use code tags. | |
Re: What efforts have you put in so far? Please post any coding you have done using code tags. | |
Re: [QUOTE]but I dunno display the next record, the previous record as the number of characters in each field may differ.[/QUOTE] Doesn't matter if they differ. It might matter in case you want to write the new records at the place where the current record is displayed. In that case, clear … | |
Hello, I'm planning to do a project which involoves a lot of GUI. Does anybody know whether there is any IDE available that supports a code wizard feature for C++? For eg in VB, we design the menus, frames, text labels, etc. and when we click on 'generate code', the … | |
Re: [QUOTE]I hope I will get all the help I can from [I]this forum[/I] [/QUOTE] If you meant 'this community', then definitely yes. But stick to the rules here. They are for the betterment of the community itself. | |
Hello, I've read in a book that APIs in the native APIs start with one of the two prefixes: Either Nt or Zw, so that the functions have names like NtCreateFile or ZwCreateFile. What does Zw stand for? It further says: [I]Both versions actually point to the same code in … | |
Re: Right. I infer that you've inherited class car from the base class vehicle. | |
Re: Looks like you are looking forward to interface LCD display (presuming that would serve the purpose of a scoreboard) using PIC microcontroller. Please, in such projects, you need to be very very specific with the hardware connections that you've made. Also, specify the exact nature of the display you want … | |
Re: [QUOTE]All I wants to do is sort the array in the structure using sort().[/QUOTE] If your only purpose is to sort a vector, then why are you using a structure? By doing so, you are creating a vector of structures, wherein each structure consists of a 10-element array. How do … | |
Re: You won't get any warnings if you add a break statement when the user chooses 0 (the exit option). [CODE] while(1) { ... if(/*if user wants to quit*/) { break; } }[/CODE] | |
Re: [QUOTE]I've a code , but there is a part I didn't undestand it. Can u help me to undestand it? I am writing the part I didn't understand it by red color:[/QUOTE] The red part sorts the integer array intArray and then prints the sorted contents... Anything more specific you … | |
Re: Lists are harder to implement initially. But just compare sorting, searching, inserting an element, deleting an element etc. for both arrays and lists. You'd realise that lists are better. What is more, lists are dynamic. | |
Re: A peice of humble advice for elite1986. You may have not known this before but it is considered (very truelly so) a malpractice and a cheap way to increase the no. of posts to post content in multiple posts. You can edit your post during the half an hour period … | |
Re: Apart from the suggestions above, you can add features like multiplication, transpose, adjoint, inverse.... Matrices have a very wide range of applications. After doing these, you can add advanced features to solve some real-time problems like solving algebraic equations... | |
Re: Hi there, eesti44! I'm also more of an electronics guy like you.. You can do that with hyperterminal or low-level programming using functions like inportb, outportb, etc... There are also some libraries related to port programming. Refer to some recent posts over here related to port programming. If you would … | |
Re: I can't see anything wrong in the function as such. Maybe something is wrong in the main() function where you are displaying the characters. Also, I think there should be || instead of && inside the condition of while loop. Do you mind posting the entire code? [QUOTE]Here is the … | |
Re: [QUOTE]First is there a better way to do it than a series of bool functions? [/QUOTE] No, I can't think of a better way. danzona has given an excellent peice of advice. Stick to it. [QUOTE]in determining all legal moves, and then assigning a random number, I run into some … | |
Re: Please have a look at your textbook instead of asking such outright questions. Else google for it. Then, we would be happy to solve any conceptual doubt that you have regarding it. | |
Re: [QUOTE]do i have this in my program and if so where.[/QUOTE] No. Looks like you've not yet come across the concept of functions. Try reading the chapter related to 'user defined functions' in your textbook. | |
What is the difference between the back() and end() functions defined for list containers in STL? It is specified in my book that back() gives reference to the last element while end() gives reference to the end of the list. I'm unable to understand how the two functions differ. | |
Re: [QUOTE]how i can use inportb() methord?[/QUOTE] See in the help section. It needs the port id as the argument and returns the byte received at that port. But, it would definitely be easier to use the libraries as jwenting suggested. If your purpose is just to transmit or receive a … | |
Re: Maybe some problem with the access specifier keywords used for that particular function. Nothing else can explain such a behaviour. Atleast post your .h file so that it makes debugging easy. | |
![]() | Re: [QUOTE]i cant figure out how to print after each pass as shown above.[/QUOTE] After each swap is done, use cout to display the values stored in the list at that particular juncture. |
Re: [QUOTE]i tried several things BUT nothing works [/QUOTE] Post atleast one such thing (code). We'll try to make it work. | |
Re: Try going for Go, Tic-tac-toe, Bingo... all of them with AI.. quite interesting and would take quite a time. |
The End.