775 Posted Topics

Member Avatar for jember

Once you use a character array you need to make specific changes in the program for example: [CODE] scanf ("%i", &password[7])[/CODE] will be changed to %s for the string input By changing it to a char array you should be able to make the neccesary changes in the code to …

Member Avatar for jember
0
497
Member Avatar for ret801

1. How important do you consider computer security? Quite a high priority based from experience and news 2. Do you use Anti‐virus/Anti‐spyware software? yes i. When was the last time you updated this software? it automatically updates whenever an update is available ii. When was the last time you complete …

Member Avatar for WaltP
0
191
Member Avatar for Hussam Alahmadi

At line 13 and 25, your not assigning values to your arrays indexes but just to variables you never used, try printing out the values of a1[i][j] and b1[i][j] at the next line to see what we mean

Member Avatar for dantinkakkar
0
133
Member Avatar for prasenjit_das
Member Avatar for wallet123

At line 9; An array has elements ranging from 0 up to size-1, you can't start at 1 there and end with 10+1

Member Avatar for rushikesh jadha
0
186
Member Avatar for Alfy

[QUOTE=Birunda Devi;1762575]i need a program in c the program is their is a file in that first we have take 0-9 letters in that we count how many no of a,b,c...,z then we take 1-10 we do the same we do the same sequence until the end of the file.[/QUOTE] …

Member Avatar for zeroliken
0
2K
Member Avatar for Beautifullove09
Member Avatar for Syrne

the stackoverflow happens because of an infinite recursion the value 10 is not the base value, you need to have a condition for the values less than 10 or at least less than or equal to 0 for example D(21) will result to D(9)+10 then (D(-1)+10)+10 and so on

Member Avatar for Syrne
0
128
Member Avatar for Valiantangel

Is the 5% constant or does it change depending on the current tuition fee? if it's the latter, you can make use of the first loop and make it loop up to 21 years(if it's allowed) then if it's the 18th year add the current tuition up to the 21st …

Member Avatar for hfx642
0
126
Member Avatar for jackbauer24
Member Avatar for jackbauer24
0
172
Member Avatar for jeyjey223

include the header [CODE]#include <ctime>[/CODE] Edit: I change my mind,you should have posted this in the C forum i think its [CODE]#include <time.h>[/CODE]

Member Avatar for deceptikon
0
105
Member Avatar for tharindupro

try the suggestions qiven in the link [URL="http://stackoverflow.com/questions/2041871/video-playback-in-java-jmf-fobs4jmf-xuggler-fmj"]http://stackoverflow.com/questions/2041871/video-playback-in-java-jmf-fobs4jmf-xuggler-fmj[/URL] maybe it's [URL="http://www.xuggle.com/xuggler/index"]Xuggler[/URL] that'll do what you need

Member Avatar for JamesCherrill
0
246
Member Avatar for dbsp

Saw this from a web search I did months ago so I'm not exactly sure if it's efficient so I'd like remarks from other members about it [CODE]int c; while ((c = getchar()) != '\n' && c != EOF); //discards the \n stuck in the input stream?[/CODE]

Member Avatar for deceptikon
0
3K
Member Avatar for cutterpillow20

Here's a link on a thread describing the concepts about 2d and [B]3d[/B] arrays [URL="http://www.daniweb.com/software-development/cpp/threads/104403"]http://www.daniweb.com/software-development/cpp/threads/104403[/URL]

Member Avatar for cutterpillow20
0
365
Member Avatar for shean1488

you can access the array by either using a constructor or a method that contains the puzzle[row][col] at its class

Member Avatar for JamesCherrill
0
124
Member Avatar for jp071

[QUOTE=shahinkey;1761098]Dear All, I want to read ini file for configuration. Who can send me a simple code? Thank you in advance Hoshang[/QUOTE] Sorry to say this but we're not a coding service meaning we don't provide code but only helps members from theirs If you need further help start a …

Member Avatar for zeroliken
0
2K
Member Avatar for mpcon

I think you only need 2 loops to do it I suggest you do it in pencil and paper first and check the algorithm before coding :)

Member Avatar for zeroliken
0
36
Member Avatar for syareza

Could you be more clear with that... As I understand you need to show a multiplication table based on the input right? then use a loop and a counter to multiply with the input

Member Avatar for syareza
0
83
Member Avatar for RiddoKun

at line 39 use .equals() in comparing strings like so [CODE]if( accountName.equals("keenan") )[/CODE]

Member Avatar for RiddoKun
0
96
Member Avatar for justindill

[CODE]for (int number, numbers) {[/CODE] this is not how you should make a for loop, your missing the increment and a proper condition it should have a format like so, for (initialization; termination/condition; increment)

Member Avatar for zeroliken
0
613
Member Avatar for awesomelemonade
Re: Hi!

Aside from the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]member rules[/URL] the [URL="http://www.daniweb.com/software-development/java/threads/99132"]read me thread[/URL] in the Java forum will give you more info

Member Avatar for indusharma
0
98
Member Avatar for happygeek
Member Avatar for MrNo

[QUOTE=Eagletalon;1758511]@MrNo - What the h... dude? Walt is actually giving you assistance with your code, NOT writing it for you, and encouraging you to develop your understanding and knowledge your damn self Stop being a complete ass and learn a thing or 2, your comment you state you've only been …

Member Avatar for zeroliken
0
319
Member Avatar for wonderlandslost

[CODE]SchoolBus n1 = new SchoolBus();[/CODE] Instantiate only once, like only at line 144 and removes other initializations like [CODE]n1 = new SchoolBus();[/CODE] you need not to create a new object everytime and overwrite the contents

Member Avatar for wonderlandslost
0
336
Member Avatar for rushikesh jadha

[QUOTE=rushikesh jadha;1756924]Hi,all! i want to know which programming language, I should use for game developement.[/QUOTE] You should start by informing us what programming languages you know and what kind of game do you want to develop before we can give our opinions

Member Avatar for zeroliken
0
98
Member Avatar for rushikesh jadha

you could also try [URL="http://www.winprog.org/tutorial/"]theForger's Win32 API[/URL]

Member Avatar for jbennet
0
126
Member Avatar for themenucha

[QUOTE=DJSAN10;1747328]Now this is how formatting would help you. You can clearly see one else is misplaced [CODE] int rook_moove(int x1,int x2,int y1, int y2) { int dx,dy; int i,j; dx=abs(x2-x1); dy=abs(y2-y1); if(((dx!=0)&&(dy=0))||((dy!=0)&&(dx=0))) { printf("Cannot moove- the m oove is illegall!\n"); return 0; } else { for(i=x1+1;i<x2;i++) { if(check_if_empty(i,y2)) { update_board(x1,y1,x2,y2); …

Member Avatar for DJSAN10
0
540
Member Avatar for Sundown G

could you explain what your program is supposed to do? some comments on particular lines would be nice ...just a note, always have a return 0; statement at the end of int main to properly stop the execution, it might work without it on linux but the code should be …

Member Avatar for Sundown G
0
138
Member Avatar for student2012
Member Avatar for remarkablyso

That can be done with just a few clicks... probably less than 5 or 10 minutes why make it hard for Dani

Member Avatar for deceptikon
0
150
Member Avatar for sergent

Maybe it would have been better if there was a separate poll with OS and IDE or compiler because of the poll limiter :)

Member Avatar for hystaspes
0
331
Member Avatar for jaymayne
Member Avatar for passionated

Sorry but we don't write code here for you, that's the rule So I'll give a suggestion instead to get you started ...create a [B]loop[/B] in the function that will print out the character 10 times if you have problems with the code then post it here

Member Avatar for WaltP
0
593
Member Avatar for servet
Member Avatar for JamesCherrill
0
126
Member Avatar for faithful4ever

Is it even possible to have a [B]recursive[/B] function without a return statement? :-/

Member Avatar for histrungalot
0
742
Member Avatar for BlackStar0703

if DotComBust class is an object then it has its own state and behavior maybe these Oracle docs will help you clarify some things [URL="http://docs.oracle.com/javase/tutorial/java/concepts/object.html"]http://docs.oracle.com/javase/tutorial/java/concepts/object.html[/URL] [URL="http://docs.oracle.com/javase/tutorial/java/concepts/class.html"]http://docs.oracle.com/javase/tutorial/java/concepts/class.html[/URL]

Member Avatar for BlackStar0703
0
517
Member Avatar for SoftShock

pass those [URL="http://www.cplusplus.com/doc/tutorial/functions2/"]variables by reference [/URL]

Member Avatar for SoftShock
0
276
Member Avatar for nicole10hart

Wrap your code around code tags it will make your code a lot easier to read Now for the garbage value try to print the string at all parts of the program(before and after initializaations and assigning values to it ) to see where it gets its garbage values

Member Avatar for zeroliken
0
201
Member Avatar for dwiniers

what do you mean by [QUOTE]desplay record is in row i want it in column. [/QUOTE] display the output vertically? you need to be more elaborate about this

Member Avatar for dwiniers
0
223
Member Avatar for TMDG
Member Avatar for gzero14
Member Avatar for zeroliken
0
650
Member Avatar for itsmrshow
Member Avatar for zeroliken
0
219
Member Avatar for techyworld

If you can draw a right triangle then I think you'd be fine in doing the isosceles or equilateral triangle by just tinkering with the line position and their sizes until you get the desired looks

Member Avatar for zeroliken
0
1K
Member Avatar for konman795

[CODE]if(i-1 % i == 0) { isprime[i] = false; } isprime[i] = true;[/CODE] even if it ran through the if statement the value of isprime[i] will still be changed to true, try using an [B]else[/B] statement

Member Avatar for JamesCherrill
0
775
Member Avatar for jeswill

[QUOTE=adityatandon;1755766]He specifically asked about Turbo C++..[/QUOTE] I think Referencing that link would help for future viewers of this thread because of the different solutions :)

Member Avatar for zeroliken
0
843
Member Avatar for Nevicar

[QUOTE]The second function should take a string and an integer as arguments, and print out the string as many times as the integer.[/QUOTE] what exactly did you put in that function? Did you use a loop? [CODE]void print (string word, int number) { /*create loop that will print the following …

Member Avatar for zeroliken
0
144
Member Avatar for ubi_ct83

could you post a brief explanation on what your algorithm is suppose to do

Member Avatar for ubi_ct83
0
156
Member Avatar for tykoone

Most of those kind of games are usually bought in DVDs rather than just downloaded due to large file sizes like assassins creed, prototype, GTA series, etc.

Member Avatar for zeroliken
0
38
Member Avatar for rithish

a[2][3][4] is a 3 dimensional array that has an array of 2 elements where each element is an array of 3 elements where each element is an array of 4 elements. though its old, you can check [URL="http://rajkishor09.hubpages.com/hub/How-to-work-with-Multidimensional-Array-in-C-Programming"]this article[/URL] for an example try searching through google for more examples and …

Member Avatar for zeroliken
0
117
Member Avatar for jdh1231

always have a return statement at int main to properly stop the execution and also at the non void functions

Member Avatar for thines01
0
169

The End.