257 Posted Topics

Member Avatar for mrnutty

I would bring my Hofner bass, my laptop (also with infinite battery, because that's possible ;) ) , my iPod (I guess that needs infinte battery life as well) and my cell phone with... you guessed it infinite battery life ;)

Member Avatar for Grn Xtrm
-2
127
Member Avatar for xxunknown321

tkud, you should give mention to the author of the code snippet. In the future, it would probably be better to provide a link to the code snippet this way the author is given his or her much deserved credit.

Member Avatar for pulizziva
-1
171
Member Avatar for Jupiter 2

Don't quit. Just limit your posts to pieces of advice that you think will be beneficial to the OP. Don't post for the reputation and solved thread count, post because you want to help people with their problems. I havent read any of your alleged bad posts, so I dont …

Member Avatar for ~s.o.s~
-4
998
Member Avatar for Phil++

Try reading this on array intialization [URL="http://www.fredosaurus.com/notes-cpp/arrayptr/array-initialization.html"]http://www.fredosaurus.com/notes-cpp/arrayptr/array-initialization.html[/URL] It seems to me that you declare the array 'm' with an inital size of 1, but are trying to add more than one element to the array. I would give a constant size to the array that will be big enough to …

Member Avatar for Grn Xtrm
0
199
Member Avatar for C++ Beginner

Function definitions must appear out of the main(). I like to put the function prototypes first. Then open main, call functions, and close main. Then write the function definitions after main. Line 11 is also a problem. You don't include a data type for a function call. Also remember that …

Member Avatar for sfuo
0
3K
Member Avatar for nstern2

Have you tried using a for loop to print each element of the array? That's how I usually go about displaying the contents of an array.

Member Avatar for Grn Xtrm
0
81
Member Avatar for dinamit875

Just look up printing and getting input using cout<< and cin>>. Also, use [code=cplusplus] #include <iostream> using namespace std; [/code] That seems to be the only things you really need to change on first glance. I'm sure William or someone else will correct me if I'm wrong.

Member Avatar for dinamit875
0
294
Member Avatar for richman0829

The parameter in the function is different from the parameter in the function call. To be more specific, the call has an array as the parameter, while the definition has an int value that is not an array. They must be the same data type. But if I may offer …

Member Avatar for richman0829
0
153
Member Avatar for EngneerNitemare

To ask the user to enter the size of an array use: [code=cplusplus] int size; cout<<"enter size of the array"; cin>>size; [/code] You can then use a for loop to have the user enter the values of the array.

Member Avatar for mrnutty
0
20K
Member Avatar for Lukezzz

The first double quote before the second Hello are causing the string to terminate. You can resolve this by putting single quotes instead of double quotes.

Member Avatar for thines01
0
66
Member Avatar for saadismail85

You need to ask a question if you expect to get any help. Tell us specifically where you are encountering problems. Also, please use code tags to make the code more readable.

Member Avatar for Grn Xtrm
0
93
Member Avatar for leena_gc

He wants someone to do the assignment ;) The question doesnt even make any sense. We have no idea what the employee pay revision list is. We need more info and you need to show some effort.

Member Avatar for sheikaman
0
165
Member Avatar for mancent

Final Fantasy XI already exists. Do you really want to remake an already existing game ... and why?

Member Avatar for mancent
-1
111
Member Avatar for Alex_is
Member Avatar for Calhoun

Download a compiler such as Dev C++. Save the source files, then open them in the compiler, and compile them.

Member Avatar for Grn Xtrm
0
82
Member Avatar for guffer

If you want to use a letter. make the sure the menu selection variable is a char data type. Without seeing the code, this is my best guess on what the problem may be. Post the code so we can see for sure.

Member Avatar for Jiwe
0
137
Member Avatar for Grn Xtrm

Hello friends, I am having a problem writing a function to search for a string in an input file. I have successfully output the file with line numbers, which was the first step in the program, but now I am stuck on searching for a given string. After searching for …

Member Avatar for Tajon Wong
0
3K
Member Avatar for AdRock

Have you tried using the following as the condition for the while loop [code] while (p!=NULL && p!="//") [/code] Then get rid of the if/else and just make the code currently after the else, the text of the while loop. It seems to me this is what you want the …

Member Avatar for AdRock
0
177
Member Avatar for discovery-power

You should just download a free c++ compiler. I use Dev C++ and I am 100% satisfied with it. With Dev you can type up your program , save it as filename.cpp, press the F9 key to compile and run. It's that simple.

Member Avatar for discovery-power
0
161
Member Avatar for MoooCow

Try searching the forum, this question gets posted all the time. In fact my first post ever was regarding converting infix to postfix using stack. Also, I know there is a code snppet for converting infix to postfix in java. Give it a try.

Member Avatar for quuba
0
143
Member Avatar for Vineeth K

The first game I played on a computer was Putt Putt Goes to the Moon when I was about 5 years old. [URL="http://www.games2download.com/free-kids-games/putt-putt-goes-moon.htm"]http://www.games2download.com/free-kids-games/putt-putt-goes-moon.htm[/URL] The first video game I played was Bonk on the Turbo Graf-X 16 console. Great memories :)

Member Avatar for GrimJack
3
442
Member Avatar for Missy!

Sorry about your parents but they really do care about you and make decisions that they believe are in your best interest. Although I don't consider sex to be a delinquent act, sknake is right in that you should obey your parents' wishes and try to make them proud. Eventually …

Member Avatar for kalia247
-9
241
Member Avatar for Bunda350

Call the function in main(). Make sure to create 3 variables of appropriate data types to supply as parameters. [code=cplusplus] int main() { double var1, var2; int var; sine(var1, var2, var); return 0; }//closes main [/code] You'll need to give these variables values and then output the result of the …

Member Avatar for Bunda350
0
298
Member Avatar for Towely

Post the rest of the code. That seems like it should be working to me.

Member Avatar for Towely
0
144
Member Avatar for katbury

There are problems with the main(). First there should be no semicolon after int main(void). Secondly, you must ecnlose the text of the main() with curly braces {}.

Member Avatar for melepuram
0
105
Member Avatar for restrictment

If lines 36 and 44 are supposed to be function calls, you need to put () after the function name. Please correct me if I am wrong, but I think thats the problem. EDIT You will need to put in a parameter as well. MAke sure it is the same …

Member Avatar for restrictment
0
126
Member Avatar for gcardonav

The if statement on line 23 seems problematic to me. There is no integer greater than 999 AND less than 1000.

Member Avatar for mrnutty
0
162
Member Avatar for wangatang126

Do you have the displayMatrix function defined anywhere? I dont believe it is a built in function. Supply us with the code for the displayMatrix function so we can see if there is a problem.

Member Avatar for wangatang126
0
91
Member Avatar for CaptainMack

[QUOTE=Ancient Dragon;1024320]Post your question in the appropriate language forum and people will help you with it.[/QUOTE] I think he missed the due date on that assignment. ;)

Member Avatar for sneekula
-2
236
Member Avatar for trahrey

[QUOTE=trahrey;1023345]Hi, I have a question on writing a c++ program can anyone give me a hand?[/QUOTE] Don't you think the c++ forum would be a better place for your question? We will be glad to help you if you show effort and don't expect us to do the whole program …

Member Avatar for sneekula
-5
227
Member Avatar for wangatang126

The array isnt being output because you dont include that line in your program. You have to print the array when your done filling it. To use code tags click the code button above the box in which you type your reply.

Member Avatar for neithan
0
158
Member Avatar for Grn Xtrm

Hello friends. I am experiencing problems using the getline function in C. I want to use the function to print line numbers next to the text of each line of an input file. I have successfully read in the file and printed its contents line by line. But when I …

Member Avatar for Grn Xtrm
0
116
Member Avatar for snapppy

If you have not leaned c++ there is obviously no way you can do this problem. When you start to learn the basics of c++ the solution to this problem will become quite easy to achieve. Don't get ahead of yourself. If you know nothing about c++, don't expect to …

Member Avatar for Grn Xtrm
0
207
Member Avatar for The Dude

If you've ever seen shows like "A Haunting" on discovery channel, you know that spirits/ghosts are quite different than living human beings. In one episode, a ghost made a guy have homicidal thoughts about his wife. And another time, a ghost "scratched" a guy and he had huge marks all …

Member Avatar for ithelp
0
102
Member Avatar for M.Jama

1. 1/3 * 3 is equal to 1. Is that what your program is telling you? 2. Accept user input of numbers to represent x and y. Then apply them to the formulas. [code=java] double x, y, product, expression2; product = 3*x; expression2 = product + y; [/code] Not sure …

Member Avatar for M.Jama
0
88
Member Avatar for restrictment

Hey nice code. To add it as a code snippet start a new thread and click the drop down arrow that appears on top. From there select code snippet.

Member Avatar for restrictment
0
119
Member Avatar for dldsob

Once you fill the array, loop though each element of the array and use a simple cout statement to output the element.

Member Avatar for PoRco1x
0
85
Member Avatar for majestic0110

The same thing happened to me in the C++ forum. I have been experiencing problems regarding time of posts all day today. For example sometimes it shows the date instead of the how many minutes, hours, days, ect ago the post was made. Also I have not been recieving email …

Member Avatar for Grn Xtrm
0
136
Member Avatar for wangatang126

If you declare the function as int then you must return an int value in the function definition. By the way, I'm not sure if you are aware but there is a built in power function in the math library. See this for more info [URL="http://www.thinkage.ca/english/gcos/expl/c/lib/pow.html"]http://www.thinkage.ca/english/gcos/expl/c/lib/pow.html[/URL]

Member Avatar for Grn Xtrm
0
189
Member Avatar for itzaaron

This code snippet may help you. [URL="http://www.daniweb.com/code/snippet217345.html"]http://www.daniweb.com/code/snippet217345.html[/URL] Its written in C but you should be able to see what us being done. You should always search the forums before you have start a new thread. You may just find your answer there.

Member Avatar for mrnutty
0
2K
Member Avatar for Bobby1
Re: Help

[QUOTE=Bobby1;1029795]In this assignment, we will develop a simple inventory database program (database application) for a small computer store. No [B]you[/B] will. You cant just post your homework assignment and expect to get a quick answer. There is no instant gratification on Daniweb. You must show effort and we will try …

Member Avatar for Grn Xtrm
0
80
Member Avatar for jjf3rd77

Well its a start, but your current code has several errors. Line 6 will give you errors because num1 has not been declared. You should change it to num and declare it before the loop. Also you must use [code=cplusplus] while(num!=0) [/code] You want the loop to continue until the …

Member Avatar for jjf3rd77
0
255
Member Avatar for relinx
Member Avatar for jennaNalpak

He wasn't being rude, he was just telling it like it is. You should grateful that he told exactly how to do the problem, not mad that he made a comment about your major. Follow his "angry ordered list" and you should be able to solve your problem. Also, next …

Member Avatar for BestJewSinceJC
0
166
Member Avatar for EngneerNitemare

You need a main() that will put all the functions to use. Call the functions in main(). Start it with: [code=cplusplus] int main() { //call functions and write other code return 0; } // closes main [/code]

Member Avatar for Grn Xtrm
0
104
Member Avatar for safaha

I dont believe that you would get an assignment in c++ if you never had a class relating to it. Show some effort and we will try to help you. Also, try searching the forums for this question, it seems to show up quite a bit. In the future you …

Member Avatar for Grn Xtrm
-3
108
Member Avatar for banks2140

Here's how I would start [code=cplusplus] #include<iostream> using namespace std; int main() { //write code } [/code] But seriously, try something and show us what you did.

Member Avatar for restrictment
0
107
Member Avatar for superborg

You'd probably get more help if you posted this question in the appropriate hardware forum.

Member Avatar for rupaljadon
0
158
Member Avatar for XiaO yuEn

Extract each digit from the input value and use a switch statement to output the correct letters.

Member Avatar for Grn Xtrm
-3
92
Member Avatar for hopeful man

Why would you need to accept and integer if you are just going to do the factorial of 10? Anyway, this is a very common beginning recursion problem. If you search the forums or the internet I have little doubt that you will find your answer along with an explanation …

Member Avatar for Grn Xtrm
0
88

The End.