Posts
 
Reputation
Joined
Last Seen
Ranked #833
Strength to Increase Rep
+3
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
2 Commented Posts
0 Endorsements
Ranked #4K
~3K People Reached
Favorite Forums
Favorite Tags
c x 15
java x 3
Member Avatar for maye13

This code is part of this program I'm doing. I've edited it so it would get shorter. [code] #include<stdio.h> #include<string.h> main() { char zero[5][6] = {"|||||", "| |", "| |", "| |" , "|||||"}; char secOnes[5][6]; strcpy(secOnes,zero); y=10; for(i=0;i<5;i++){ gotoxy(20,y++); printf("%s", secOnes[i]); } getch(); } [/code] When I try to …

Member Avatar for castrogang
0
1K
Member Avatar for The 1

I assume "swop" means swap? Then you just have to swap the position of those two values. For compareTo, I would return whether say, regNo is greater than, less than, or equal to currentRegNo. HTH.

Member Avatar for maye13
0
114
Member Avatar for adcodingmaster

Try to read on object oriented programming and you'll know the answer. This looks like some kind of homework. Read this [URL="http://www.daniweb.com/forums/announcement118-2.html"]http://www.daniweb.com/forums/announcement118-2.html[/URL]

Member Avatar for ~s.o.s~
0
91
Member Avatar for SpaceMarine542

[QUOTE=SpaceMarine542;1076832]"Write the definition of the method doubleArray that initializes the elements of beta to two times the corresponding elements of alpha." is what it says I have to do but i can't figure out exactly how to do it. Any suggestions on how to do this? Here's my code: import …

Member Avatar for maye13
0
112
Member Avatar for kfupm
Member Avatar for Salem
0
74
Member Avatar for maye13

here's the program i'm trying to run, but everytime i press ctrl+f9.. i get the error in that picture below.. [code]#include<stdio.h> #include<graphics.h> #include<dos.h> #include<conio.h> #include<stdlib.h> main() { int choice; clrscr(); printf("Please choose a version you like: "); printf("\n<1> Random lang\n"); printf("<2> Moribund...\n"); scanf("%d", &choice); switch (choice){ case 1:{ ran(); break; …

Member Avatar for maye13
0
100
Member Avatar for boyz
Member Avatar for furpacino
Member Avatar for Aia
0
111
Member Avatar for maye13

I need to create a C program that goes like this: The user wil enter the number of seconds that the stopwatch should run starting at the equivalent time in hours, minutes and seconds of the input. The stopwatch runs until the time becomes 00:00:00. I don't want you guys …

Member Avatar for maye13
1
2K