161 Posted Topics

Member Avatar for RyanLeaf

I have to agree with jephthah, I have programmed AVR and 8051 both in C. Though there is option to program in assembly but when sometimes it becomes difficult to learn the instruction set especially if you want to program many microcontrollers. Furthermore, in the end both the assembly and …

Member Avatar for Colin Mac
0
359
Member Avatar for joshmo

Insert line 20 inside the while loop and add the statement [icode]prev=prev->link;[/icode] at the end of the loop.

Member Avatar for joshmo
0
83
Member Avatar for paradox814

You have created [icode]Node<K> *root; [/icode] before defining the class Node. Declare it after the class. Furthermore I dont think you can use [icode]Node<K> n;[/icode] outside the class. You will have to specify a valid class or datatype instead of template K like [icode]Node<int> n;[/icode]

Member Avatar for bugmenot
0
279
Member Avatar for 3m4d
Re: help

What is there you cannot understand? If you expect someone to hand out the answers then you are wrong.

Member Avatar for hammerhead
0
369
Member Avatar for daniel88

An alternative could be using link list if you want to do it without STL. That way your first issue would be solved, but still the best way would be using vectors.

Member Avatar for Radical Edward
0
137
Member Avatar for touqra

No you cannot. But you can pass the variables by reference so that the changes are reflected in the original variables. For example [CODE=C++] void test(int &a,int &b) { a=a+1; b=b+1; } int main() { int c=23,d=6; test(c,d); cout<<c<<endl<<d; cin.get(); cin.ignore(); return 0; } [/CODE] Here the values of c …

Member Avatar for vijayan121
0
104
Member Avatar for MidiMagic

I am not sure, the only major update by MS for XP was the SP3. Right click on my computer and check what version of service pack is installed, if it shows Service Pack 3 then that could have caused this.

Member Avatar for MidiMagic
0
82
Member Avatar for iammop
Member Avatar for pooh2008

First of all please keep in mind to post your code using the [url="http://www.daniweb.com/forums/announcement8-3.html"]code tags[/url]. You have not done so even after Lerner told you. [CODe] total = total + grades[SIZE]; [/CODE] what you are doing here is adding 0 and value of grade[25] whereas the array size is only …

Member Avatar for Lerner
0
147
Member Avatar for The Dude
Member Avatar for Little Princess

All compilers follow certain processes such as lexical analysis, syntax analysis semantic analysis etc in one way or another.

Member Avatar for oi2005
0
107
Member Avatar for bamabambhole01
Member Avatar for briansmall

[QUOTE=scru;597231] The idea that somewhat cannot believe in God, His Word, and the Bible amazes me as much as the idea that someone can does most atheists. [/QUOTE] In making this statement you have completely disregarded the fact that other religions other than yours also exist. It is like saying …

Member Avatar for ZZucker
0
560
Member Avatar for spaceboy
Member Avatar for thunderstorm98
0
168
Member Avatar for loeto

Its not [CODE] cin >> number,first,second,third,fourth; [/CODE] but [CODE] cin >> number>>first>>second>>third>>fourth; [/CODE] and kindly use code tags in future

Member Avatar for loeto
0
161
Member Avatar for varsitygirl_13

Please use [url="http://www.daniweb.com/forums/announcement8-3.html"]code tags[/url] to post your code in future. A lot of energy of mods is spent on telling others to do the same it is the least you can do if you expect some help You have created the function won within main() but have not called it …

Member Avatar for VernonDozier
0
8K
Member Avatar for Black Magic

A hint, divide a number by 10. The quotient would be the number except for the least significant digit and the remainder would be the least significant digit. Use these two in combination to get your answer

Member Avatar for Narue
0
3K
Member Avatar for nomas90

One way to about it would be to enter randomly either a 'X' or an 'O' at every turn of the computer. But this solution would not be very smart. Another method could be exhausting all the possible states of the matrix by using conditional statements and then determining the …

Member Avatar for nomas90
0
121
Member Avatar for complexcodes

Here are a few errors I can see [CODE] int List::sumOfNodes(); [/CODE] remove the ';' at the end. [CODE] while( currentPtr ! = null) [/CODE] null to be written as NULL [CODE] sum = sum + currentPtr; [/CODE] currentPter is of type Listnode not int. You will have to do …

Member Avatar for Laiq Ahmed
0
3K
Member Avatar for GrimJack

I am neither a mod nor a sponsor. I however have an animated avatar ;) And no it is legit.

Member Avatar for majestic0110
0
312
Member Avatar for computers08

People here are not psychic. Kindly explaing what problem are you having with the code.

Member Avatar for Salem
0
95
Member Avatar for Black Magic

Line 24, it just default, not case default [CODE] default: cout << endl << "INVALID SELECTION!"; break; [/CODE] And you cannot declare variables starting with numeral. Try this [COde] int attack, attack2, hp2, hp; [/code]

Member Avatar for Black Magic
0
157
Member Avatar for kbehemoth

I dont mind being called a geek because that is more or less what I am :) Note that the '==' operator does not apply to float. You would get the output as C++ if you tried [CODE] if(f==.7) [/CODE]

Member Avatar for Salem
0
154
Member Avatar for Black Magic

For a client server model, you will have to code seperately for the server and seperately for the client. The server will basically keep track of all the data like scores, players etc. And the clients would basically be the different players.

Member Avatar for hammerhead
0
79
Member Avatar for Black Magic

The program is correct. There is no relation between the names and the love percentage and thus the program only displays random numbers between 0 to 100. You may want to use some relationship between names and random number generation in order to get a similar percentage for a given …

Member Avatar for Black Magic
0
158
Member Avatar for James Mc
Member Avatar for jbennet
0
131
Member Avatar for techbound

And then there are some members like me who get up one day and say 'hey i will start posting on daniweb from today' :D

Member Avatar for Salem
0
195
Member Avatar for Black Magic
Member Avatar for h0neydip

mover is a pointer to wheel_node and contents is an int You cannot equate them as you have done in Line 6. In order to create the link list you have to allocate memory using the new operator to each node. You have done that only for the node arrow. …

Member Avatar for hammerhead
0
117
Member Avatar for yournamehere

If you are dealing with MS office I think using a software from MS (such as C#.NET, vb.NET or any other .NET varient) will be of more help as compared to other platforms. I think that office activex controls are easily available.

Member Avatar for Salem
0
124
Member Avatar for RitaE

Wasn't "Bass guitar god" jbennet's custom tag line till a few days back?

Member Avatar for jbennet
0
150
Member Avatar for anonymous_cutie

It is for you to come up with new ideas, I will comment on a few - a robotic arm that pours beer (a joke!) or any beverage into a glass. Would require fairly complex engineering. There is a good chance that the arm will break the glass. Pretty expensive …

Member Avatar for jbennet
0
245
Member Avatar for The Dude

Petitions are an easy way of showing that we care. Most of us are either too lazy or too busy to express our concerns in other ways.

Member Avatar for >shadow<
1
281
Member Avatar for sunandoghosh

Do you use a download accelerator? There are a few that split a file into a few parts, this problem could have occured if one part did not download completely. If you do use a download accelerator then try disabling it.

Member Avatar for hammerhead
0
251
Member Avatar for The Dude
Member Avatar for ohhmygod

Use <= or >= or == operators for checking 180. < operator will check all values less than 180 i.e. upto 179 and > will start from 181. [CODE] while(angle0<180 || angle0>180 || angle==180) [/CODE] btw this is supposed to be in the C section of the forum.

Member Avatar for ohhmygod
0
92
Member Avatar for nilesh03

Dont know about google but wikipedia seems to be working fine :P [url]http://en.wikipedia.org/wiki/Quick_sort[/url]

Member Avatar for hammerhead
0
89
Member Avatar for Google Spider

Are you using a dhcp to assign ip's to your ethernet card? What is your isp? Also if you are using pppoe make sure that your username and password are correct :P

Member Avatar for bondi007
0
257
Member Avatar for amit chaudhary
Member Avatar for Salem
0
111
Member Avatar for Jboy05

Store the last element in a temporary variable, start from the end and loop till beginning of the array keep equating i th position to the i-1 th position. After the loop equate the 0th position to the temporarty variable. This is how I would rotate an array. Repeat the …

Member Avatar for Nick Evan
0
229
Member Avatar for bojanski

ASCII code for 'a' is 97 what you can do is subtract 96 from each character. And typecast char to int. Instead of the switch statement try [CODE=c++] while (input[i]!='\0') { output[i]=input[i]-96; cout<<(int)output[i]<<endl; i++; } [/CODE] to convert within the same array just change output to input. Of course you …

Member Avatar for bojanski
0
128
Member Avatar for ankit_the_hawk

[CODE] temp[i] = chars1[i]; [/CODE] I dont think you can do that with allocating memory by using the new keyword.

Member Avatar for Ancient Dragon
0
103
Member Avatar for isthikar

Deciding the problem statement for the project is half the fun of doing the project. Carefully identify your areas of competency and then choose a problem. It will give you more insight about the project and you will enjoy doing it. Usually considerable amount of of research is done before …

Member Avatar for hammerhead
0
108
Member Avatar for avi1109

[QUOTE=avi1109;588996]Hello, i'm stuck with a problem on binary search. I need to compare a string with an array of type string. It is changing the position from which the string should be read but z compare is not successful. here's my code. Any help would be appreciated. thanks in advance. …

Member Avatar for Ancient Dragon
0
138
Member Avatar for joshmo

Creating an OS is never simple. Before you actually begin programming there are lots of theoritical concepts to be learned, for example how will you do memory allocation, how will you avoid deadlocks, resource allocation, processing priority, system failures etc etc. It will take learning of lots of concepts before …

Member Avatar for hammerhead
0
66
Member Avatar for Black Magic
Member Avatar for jo2995

You will have to share the printer first from control panel->printers and faxes and then install the printer drivers on all the computers you want to share the printer with.

Member Avatar for hammerhead
0
54
Member Avatar for guy40az

This looks like a fairly difficult task. How do you plan to calculate resistance using capacitance? I would suggest you create a wheatstone bridge setup like [url="http://en.wikipedia.org/wiki/Wheatstone_bridge"]Wheatstone bridge[/url] Here is another link for serial port. [url]http://electrosofts.com/serial/index.html[/url]

Member Avatar for hammerhead
0
136
Member Avatar for Jaapstam

I am not a networking wiz, but try manually assigning the ip's to each laptop/desktop within the range of those assigned by the dhcp.

Member Avatar for hokaa
0
103
Member Avatar for abcd_nima

The End.