266 Posted Topics

Member Avatar for nljavaingineur

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 …

Member Avatar for Jishnu
0
262
Member Avatar for maori

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 …

Member Avatar for Ancient Dragon
0
154
Member Avatar for evilwrench1975

[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] :)

Member Avatar for Jishnu
0
164
Member Avatar for Jishnu

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.

Member Avatar for Jishnu
0
83
Member Avatar for sneekula
Member Avatar for twomers
0
273
Member Avatar for wijitha

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.

Member Avatar for Ancient Dragon
0
906
Member Avatar for Ene Uran
Member Avatar for AbberLine

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 …

Member Avatar for AbberLine
0
387
Member Avatar for zeroground

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?

Member Avatar for Jishnu
0
184
Member Avatar for carobee

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.

Member Avatar for ssharish2005
0
140
Member Avatar for scru

I'll try to be a bit calm (for a change ;)) and more resolute in pursuing my goals..

Member Avatar for jbennet
0
232
Member Avatar for Jishnu

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. …

Member Avatar for vegaseat
1
506
Member Avatar for Jishnu

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.

Member Avatar for Jishnu
0
356
Member Avatar for #include<DAN.h>

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.

Member Avatar for Salem
0
125
Member Avatar for scru

I think taking notes is not essential for remembering something. It is just that some people can remember things by doing so.

Member Avatar for bobwahler
0
90
Member Avatar for jobs

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..

Member Avatar for Jishnu
0
915
Member Avatar for wega

[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.

Member Avatar for Comrade Ogilvy
0
105
Member Avatar for MidiMagic

"I am/was suffering from weakness." ( I'd like to see his weakness when my pet dog runs like hell after him ;) )

Member Avatar for MidiMagic
0
171
Member Avatar for energizer100

Have you compiled the code? Please mention the errors and the respective line no.s.

Member Avatar for bops
0
124
Member Avatar for navi17

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.

Member Avatar for Jishnu
0
93
Member Avatar for cancer10

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 …

Member Avatar for Ancient Dragon
0
227
Member Avatar for rajatC

[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 …

Member Avatar for Jishnu
0
231
Member Avatar for Jishnu

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 …

Member Avatar for Jishnu
0
60
Member Avatar for hellokitty88

[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, …

Member Avatar for Jishnu
0
123
Member Avatar for Valmian
Member Avatar for Duoas
0
386
Member Avatar for jellyfish888
Member Avatar for ~s.o.s~
0
493
Member Avatar for cherries

[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 …

Member Avatar for Jishnu
0
98
Member Avatar for Jishnu

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 …

Member Avatar for Jishnu
0
155
Member Avatar for SimbaRider

[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.

Member Avatar for Jishnu
0
39
Member Avatar for Jishnu

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 …

Member Avatar for Jishnu
0
142
Member Avatar for yangchen60

Right. I infer that you've inherited class car from the base class vehicle.

Member Avatar for dubeyprateek
0
66
Member Avatar for samari

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 …

Member Avatar for Colin Mac
0
183
Member Avatar for abhi_elementx

[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 …

Member Avatar for abhi_elementx
0
244
Member Avatar for boyz
Member Avatar for jrice528

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]

Member Avatar for WaltP
0
137
Member Avatar for RoOose

[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 …

Member Avatar for RoOose
0
133
Member Avatar for xeption12

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.

Member Avatar for Jishnu
0
109
Member Avatar for kv79

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 …

Member Avatar for kv79
0
189
Member Avatar for rizrash

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...

Member Avatar for Jishnu
0
186
Member Avatar for eesti44

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 …

Member Avatar for Jishnu
0
106
Member Avatar for mb523

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 …

Member Avatar for vmanes
0
2K
Member Avatar for maxmaxwell

[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 …

Member Avatar for maxmaxwell
0
207
Member Avatar for Aruna S Rajan

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.

Member Avatar for jbstin
0
85
Member Avatar for dblbac

[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.

Member Avatar for Jishnu
0
149
Member Avatar for Jishnu

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.

Member Avatar for Jishnu
0
120
Member Avatar for nuwan243

[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 …

Member Avatar for Jishnu
0
168
Member Avatar for jaepi

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.

Member Avatar for jaepi
0
889
Member Avatar for johny112

[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.

Member Avatar for WaltP
0
95
Member Avatar for eleonora

[QUOTE]i tried several things BUT nothing works [/QUOTE] Post atleast one such thing (code). We'll try to make it work.

Member Avatar for masijade
0
87
Member Avatar for mr.cool

Try going for Go, Tic-tac-toe, Bingo... all of them with AI.. quite interesting and would take quite a time.

Member Avatar for ithelp
0
91

The End.