775 Posted Topics
Re: 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 … | |
Re: 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 … | |
Re: 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 | |
Re: I think that integers are 4 bytes long | |
Re: 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 | |
Re: [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] … | |
Re: wrap the code between [TEX][CODE] [/CODE][/TEX] tags so we can see where line 56 is | |
Re: 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 | |
Re: 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 … ![]() | |
Re: check line 45 ...and the number of t's in the filename there ;) | |
Re: 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] | |
Re: 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 | |
Re: 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] | |
Re: 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] | |
Re: you can access the array by either using a constructor or a method that contains the puzzle[row][col] at its class | |
Re: [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 … | |
Re: 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 :) | |
Re: 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 | |
Re: at line 39 use .equals() in comparing strings like so [CODE]if( accountName.equals("keenan") )[/CODE] | |
Re: [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) | |
Re: 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 | |
Re: Can't live with them, can't live without them -What society feels about them and their works | |
Re: [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 … | |
Re: [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 | |
Re: [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 | |
Re: you could also try [URL="http://www.winprog.org/tutorial/"]theForger's Win32 API[/URL] | |
Re: [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); … | |
Re: 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 … | |
Re: Is the second half of string2 preceded by a space? | |
Re: That can be done with just a few clicks... probably less than 5 or 10 minutes why make it hard for Dani | |
Re: Maybe it would have been better if there was a separate poll with OS and IDE or compiler because of the poll limiter :) | |
Re: 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 | |
Re: Then could you post your code so we may see how you did it | |
Re: Is it even possible to have a [B]recursive[/B] function without a return statement? :-/ | |
Re: 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] | |
Re: pass those [URL="http://www.cplusplus.com/doc/tutorial/functions2/"]variables by reference [/URL] | |
Re: 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 | |
Re: 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 | |
Re: use "wb" and "rb" for writing and reading in data files | |
Re: ^what masijade said several years ago :icon_rolleyes: | |
Re: print the value of r[j] in the loop and you'll see that all its element's value is 0 | |
Re: 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 | |
Re: [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 | |
Re: [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 :) | |
Re: [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 … | |
Re: could you post a brief explanation on what your algorithm is suppose to do | |
Re: 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. | |
Re: 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 … | |
Re: always have a return statement at int main to properly stop the execution and also at the non void functions |
The End.