Member Avatar
tinstaafl 957 Replied To a Post in calculation is off
Topic by divinity02 in Programming
One thing that caught my eye, is line 64. You're calling `doublearea` but you're not assigning the return value to anything, or trying to display it anywhere.

Assigning the return value to `area` should work:

@Override
public void actionPerformed(ActionEvent ae) {
double A = Double.parseDouble(side1.getText());
double B = Double.parseDouble(side2.getText());
double … Reply by tinstaafl
Member Avatar
Topic by Sinisa_1 in Software Development
I'm running in circles...

Last thing I could find was after last Debug, in emulator, its bug report was ending like this:

I/dumpstate( 9916): begin
D/ ( 9905): HostConnection::get() New Host Connection established 0xb60503d0, tid 9905
W/ ( 9905): Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1
E/EGL_emulation( 1169): tid … Reply by Sinisa_1
Member Avatar
hi
this is one of my assignment that I have to do. it is a triangle calculator. everything well with it but it just the calculation. when I run it, it gives a zero output. I think it may be my calculation. can someone take a look at it and … Topic by divinity02 in Programming
Member Avatar

I wrote the code that using txt file, but error "0 [main] assignment4 16012 cygwin_exception::open_stackdumpfile: Dumping stack trace to assignment4.exe.stackdump" is only thing that printed to console. Here is my code.



#include <stdio.h>

int main() {
FILE *fp;
char buff[255];

fp = fopen("moby_dick.txt", "r");

printf("%c\n", fgetc(fp));

fscanf(fp, "%s", buff);
printf("1 … Topic by Mooyeon in Software Development
Member Avatar
Topic by Sinisa_1 in Software Development
Pasted them directrly from Java version.
Counted now, they still have 107 elements each (from 0 to 106).
Thanks. Reply by Sinisa_1
Member Avatar
Topic by Khalid_12 in Software Development
c++
In the case of common apps like Tic-Tac-Toe I might defer to https://rosettacode.org/wiki/Tic-tac-toe but if you were to supply other folk's code you would indeed be missing out on the real reason you took the course. I won't tell you why here. Reply by rproffitt
Member Avatar
Hi, I have been given a project to finish in school in 3 phases, the thing is I am not that good when it comes to programing. The project was to develope a tic tac toe game as following:

**Phase 1:
Write a program that will first ask the user … Topic by Khalid_12 in Software Development
c++
Member Avatar
divinity02 6 Replied To a Post in runtime error on voting system
Topic by divinity02 in Software Development
ygone but and yes when ah added the stack trace the error had but ah stil feel it cud have done better ah keep getting this output when u run it. ah keeping feeling ah didnt do my best, and on top of that ah have a couple mmore diffiucult … Reply by divinity02
Member Avatar
Featured pty 412 Gave Reputation to rproffitt in Cross-Posting
Topic by AssertNull in DaniWeb Community Feedback
Here's the dictionary for Pander (noun). "Gratify or indulge (an immoral or distasteful desire, need, or habit or a person with such a desire, etc."

There has been a slew of low quality questions from a few members that were done for nothing more than to expose their spam links … Reply by rproffitt
Member Avatar
Hi, I have been given a project to finish in school in 3 phases, the thing is I am not that good when it comes to programing. The project was to develope a tic tac toe game as following:

**Phase 1:
Write a program that will first ask the user … Topic by Khalid_12 in Software Development
c++
Member Avatar
Topic by Sinisa_1 in Software Development
Just a random thought...
Are the array sizes ok? Visually it looks like pcX is bigger than pcY, so there’s a possible array index out of range??? Reply by JamesCherrill
Member Avatar
Khalid_12 Joined the Community
Member Avatar
JamesCherrill 3,150 Replied To a Post in runtime error on voting system
Topic by divinity02 in Software Development
I’m not offended, no worries. No need to apologise.
Now, have you fixed the empty catch, and what is the message and stack trace from your error?
Jc Reply by JamesCherrill
Member Avatar
divinity02 6 Replied To a Post in runtime error on voting system
Topic by divinity02 in Software Development
thought it was just the codes that i had wanted to post had no idea all that had printed out and james i do not know any other folk in here because u are the one who does answer most of the times i have posted any question here, so … Reply by divinity02
Member Avatar
divinity02 6 Replied To a Post in runtime error on voting system
Topic by divinity02 in Software Development
sorry ah didnt kno all that amount of lines of codes had printed out, thought it was just the codes alone didnt Reply by divinity02
Member Avatar
Topic by Sinisa_1 in Software Development
Still trying to find out how to get stack traces.
Meanwhile moved roll button enable / disable instructions out of goMove -> run
and placed them before and after call in roll -> onClick.
That way you can play 3-4 moves before game stops and gets off the display.

roll.setOnClickListener(new … Reply by Sinisa_1
Member Avatar
Featured rproffitt 945 Replied To a Post in Cross-Posting
Topic by AssertNull in DaniWeb Community Feedback
Here's the dictionary for Pander (noun). "Gratify or indulge (an immoral or distasteful desire, need, or habit or a person with such a desire, etc."

There has been a slew of low quality questions from a few members that were done for nothing more than to expose their spam links … Reply by rproffitt
Member Avatar
Featured AssertNull 908 Replied To a Post in Cross-Posting
Topic by AssertNull in DaniWeb Community Feedback
> I think pandering to trolls that use rules against us is a key item here. More discussion please.

The Bible...

http://www.catb.org/esr/faqs/smart-questions.html

Excerpt (see bold):

> Odds are you'll screw up a few times on hacker community forums — in ways detailed in this article, or similar. **And you'll be … Reply by AssertNull
Member Avatar
rproffitt 945 Replied To a Post in about vb6 flex grid
Topic by RAGHUVEER_1 in Software Development
I'd start with research and a few tutorials. Since this is VB6 there appear to be many. Start like this:
https://www.google.com/search?client=opera&q=VB6+display+the+data+in+flex+grid+tutorial+examples Reply by rproffitt
Member Avatar
Hi Folks,

This is Raghuveer
I am very new to the vb programming

I need to display the data in flex grid.Please give me the guidence Topic by RAGHUVEER_1 in Software Development
Member Avatar
RAGHUVEER_1 Joined the Community
Member Avatar
Topic by Sinisa_1 in Software Development
Sorry.
When I click on Roll, game view slides down off sight and dialog opens with "Unfortunately, BoardLS has stopped [Ok]".

Going to find out how to get stack dump.

This is "Run .> MainActivity:

10/22 12:19:45: Launching MainActivity
$ adb install-multiple -r C:\Java\BoardLS\app\build\intermediates\split-apk\debug\slices\slice_0.apk C:\Java\BoardLS\app\build\intermediates\split-apk\debug\dep\dependencies.apk C:\Java\BoardLS\app\build\intermediates\split-apk\debug\slices\slice_5.apk C:\Java\BoardLS\app\build\intermediates\split-apk\debug\slices\slice_6.apk C:\Java\BoardLS\app\build\intermediates\split-apk\debug\slices\slice_9.apk C:\Java\BoardLS\app\build\intermediates\split-apk\debug\slices\slice_8.apk C:\Java\BoardLS\app\build\intermediates\split-apk\debug\slices\slice_7.apk … Reply by Sinisa_1
Member Avatar
Featured rproffitt 945 Gave Reputation to diafol in Cross-Posting
Topic by AssertNull in DaniWeb Community Feedback
I think this behaviour is becoming de rigeur. TBH, we only get posts from noobs, fly-byers and shit-tippers. Maybe the odd forum-savvy OP. Why expect anything more? Not sure if aggression was the right word James, but rudeness is certainly a fair description.

Had a eureka moment. This just ain't … Reply by diafol
Member Avatar
JamesCherrill 3,150 Replied To a Post in Student Scores
Topic by Dietrich_1 in Software Development
Look at line 127 Reply by JamesCherrill
Member Avatar
So when I run my code I get a bug where it doesn't display the name for the person when displaying the scores: ![Screen_Shot_2017-10- ![Screen_Shot_2017-10-22_at_8_55_08_AM.png](/attachments/large/4/db8f249841da73d8654d7c6ea699aa03.png "align-center")

Here is my code, I have been stumped for several hours:

import java.util.Scanner ;
public class StudentApp
{
public static void main(String []args)
{ … Topic by Dietrich_1 in Software Development
Member Avatar
Albab Joined the Community
Member Avatar
Topic by Sinisa_1 in Software Development
“Crashes” doesn’t tell us much. How about an error message and a stack dump? Reply by JamesCherrill
Member Avatar
Good man James helped me learn die roll board game programming in Java,
and I applied it on Ladders and Snakes. Made one in Java. Now I'm learning to do it in Android.
Here's the question:

Making simple Ladders and Snakes game.
Can't use those in Google Play, they don't … Topic by Sinisa_1 in Software Development
Member Avatar
Good man James helped me learn die roll board game programming in Java,
and I applied it on Ladders and Snakes. Made one in Java. Now I'm learning to do it in Android.
Here's the question:

Making simple Ladders and Snakes game.
Can't use those in Google Play, they don't … Topic by Sinisa_1 in Software Development
Member Avatar
Good man James helped me learn die roll board game programming in Java,
and I applied it on Ladders and Snakes. Made one in Java. Now I'm learning to do it in Android.
Here's the question:

Making simple Ladders and Snakes game.
Can't use those in Google Play, they don't … Topic by Sinisa_1 in Software Development