Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K
~11.5K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Graphix

Hey everybody, Lately I have written the game Hangman in many different languages (C, JavaScript, Java and PHP so far). Here is the code snippet for C! It uses a words file, on the bottom of this post you will see a small example of a few words. You can …

Member Avatar for Anish_4
0
4K
Member Avatar for intes77

sub class [CODE] public class Exer2 { public void setLength(int x) { this.listLength=x; } public int getLength() { return this.listLength; } int listLength=getLength(); int list[]=new int[listLength]; public void display() { System.out.println("The array length is: "+list.length+" "); } } [/CODE] main class [CODE] import java.util.*; public class Output { static Exer2 …

Member Avatar for intes77
0
148
Member Avatar for sing1006

i have a problem here. [CODE][/CODE] #include<stdio.h> int main (){ int counter; int x; int y; int product; counter=1; x=1; y=1; product=1; while (counter<=5){ printf("%d>%d\n",x,y); x=x+1; y=y+2; counter=counter+1; product=product*y; } printf("Product>%d",product); return 0; } well,the product should be 945.but what have printf out is 10395?what is the provlem inside the …

Member Avatar for sing1006
0
116
Member Avatar for dfin19

I need help with this hw problem. Generate a 2-D array of 25 integers and initialize them all to 0. Assign the value 9 to five random locations in the array to represent your mines. Fill the remaining array locations by counting the number of mines in any adjacent squares. …

Member Avatar for hanvyj
0
2K
Member Avatar for MareoRaft

Here is a simple program which gives me unexpected results: [code=c]int main() { printf("\nTo calculate a^b, enter value a now.\n"); int a = getchar() - '0'; printf("\nEnter b now.\n"); int b = getchar() - '0'; printf("a = %d, b = %d\n\n", a, b); return 0; }[/code] if i hit a …

Member Avatar for MareoRaft
0
3K
Member Avatar for srinivasan106

[B]this program is to find maximum and minimum using divide and conquer technique[/B] [CODE=C]int min=32000,max=0; void maxi(int [],int,int),merge(int [],int,int,int,int); void main() { int a[30],n,i; printf("enter the limit\n"); scanf("%d",&n); printf("enter the aray elements\n"); for(i=0;i<n;i++) scanf("%d",&a[i]); maxi(a,0,n-1); printf("maximum is %d and minimum is %d\n",max,min); getch(); } void maxi(int a[],int first,int last) { …

Member Avatar for ananda2007
0
153
Member Avatar for SlickSteiner

The program that I want to do is a program that lets you deposit and withdraw money, and that it can display the total amount that you have inputted in the transaction. Now my problem is, I don't know how to display the total amount and how to do a …

Member Avatar for [Alpha]-0mega-
0
161
Member Avatar for abhijeetcn

I know the function textcolor() included in conio.h in borland compiler. but this function is not present in vc++. also if you can provide me the text formatting functions,or header file containing it. i will be very thankful.......so please help me......thanks

Member Avatar for [Alpha]-0mega-
0
201
Member Avatar for poojabi

i am given an assignment to write code on interpolation search binary search(searching an integer in an ordered list). bt i dont have a clear idea about about both of them as i missed the theory class.so can anyone suggest me from where i can get satisfying information about them?

Member Avatar for Adak
0
103
Member Avatar for challarao

I am a B.Tech 1st year student.I am unable to understand the program given below.Please any one explain me.Any help would be appreciated. This program is for printing longest line of given input lines.. [#include <stdio.h> #define MAXLINE 1000 /* maximum input line length */ int getlines(char line[], int maxline); …

Member Avatar for challarao
0
2K
Member Avatar for ciali

2. A student studying Information Technology at Polytechnic of Namibia is examined by coursework and written examination. Both components of assessment carry a maximum of 50 marks. The following rules are used by examiners in order to pass or fail students. a. A student must score a total of 40% …

Member Avatar for Adak
0
130
Member Avatar for creeps

I'm going through K.N. King's introductory [i]C Programming: A Modern Approach (2e)[/i] and every time I see the code in the book, I can't help but wonder what's the better way to write your code in the following situation. Should I use the curly brackets or not, and how much …

Member Avatar for [Alpha]-0mega-
0
194
Member Avatar for rapids79

Hi, Is anyone aware of a trial UML or a freeware UML that can generate a sequence diagram from a code written in C in visual studio 2008? Thanks, rapids79

Member Avatar for rapids79
0
65
Member Avatar for jeevsmyd

I have been advised by many people that it is better to use integer return type for main function instead of void ! I actually dont understand what return 0 means .. main returns 0 value to program ! What does that mean ?! Could you please help me understand …

Member Avatar for gerard4143
0
137
Member Avatar for taylar

I want to learn C++ but there are so many poroblem in undersatnding this. plz send me some places list where i can learn C++ so fast... Thnks =============taylar [URL="http://autotradeinsurance.com"]Auto Trade Insurance[/URL]

Member Avatar for creeps
-1
125
Member Avatar for poojabi

i want to know the exact and correct definition of a linear list.should i mention about predesessor of every element too?or mentioning only one sucsessor for each element is enough to define a linear list.pls give an answear asap.i am really confused about it.

Member Avatar for poojabi
0
219
Member Avatar for lirexin

I just wondering is there any possible way to use rand() in a function to generate a random? #include<stdio.h> #include<stdlib.h> #include<time.h> int get_random(void); int main(void){ int i; for(i=0;i<=5;i++){ printf("%d\n",get_random()); } return 0; } int get_random(void){ srand((unsigned)time(NULL)); int x; x = rand()%2; return x; } I run above code and generate …

Member Avatar for [Alpha]-0mega-
0
166