Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
94% Quality Score
Upvotes Received
18
Posts with Upvotes
15
Upvoting Members
10
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
4 Commented Posts
2 Endorsements
Ranked #621
Ranked #585
~126.44K People Reached
About Me

Programming level: Intermediate. I am improving. Keen on learning new languages. Am quite good with C++ and Java. Learning android app development at the moment.

Interests
Soccer, Games, Programming, Physics, Chemistry, Business, Cooking, Music
Favorite Tags

112 Posted Topics

Member Avatar for Duki
Member Avatar for Dani
22
17K
Member Avatar for LastMitch
Member Avatar for kal_crazy

I am using CPU Sim to change wombat1 to wombat2 by adding stack. I have done adding a Stack RAM and a Stack pointer SPR. I have implemented a push instruction as such: acc->mdr mdr->Stack[SPR] End The implementation is able to push the acc value to Stack but not able …

Member Avatar for Ajnesh
0
2K
Member Avatar for agrbinoo.albaker
Member Avatar for braian44
0
725
Member Avatar for benbee

We don't give codes. You initially wanted help anyway. So make an attempt, post a specific problem with the code(that you have done), and we will help you for sure :)

Member Avatar for luff
0
773
Member Avatar for mathgirlgrade6

In this case you can `sizeof`. `sizeof` returns the amount of Bytes the element is using. So the idea is to find the `sizeof(array)` (in your case which will be 20) and the `sizeof(int)`. The size of an int is 4 Bytes. So now you can use the Math and …

Member Avatar for Donald_6
0
19K
Member Avatar for Learner010

It would be great if you could have compared all the loops in one paragraph at the end. Anyways it is still great :)

Member Avatar for Markland
7
704
Member Avatar for abelLazm

Granted - they were dead in your bed after doing the hanky panky hahaha :P I wish I was good as C.Ronaldo at playing soccer/football.

Member Avatar for James_40
8
9K
Member Avatar for iAssistant
Member Avatar for Stuugie
0
4K
Member Avatar for Techboy52

You need to add a JFrame. public class Volume { public static void main (String[] args) { JFrame frame = new JFrame(); /** * * rest of the code * */ //Display their averages in the Dialog Box //add dialog box to frame JOptionPane.showMessageDialog(frame, "The volume of the sphere is: …

Member Avatar for stultuske
0
4K
Member Avatar for kal_crazy

try { /* Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); String loc = "jdbc:odbc:Library"; String filename = "C:\\Users\\Krishal Lad\\Desktop\\Library.mdb"; String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ="; database+= filename.trim() + ";DriverID=22;}"; // add on to the end con = DriverManager.getConnection (database);*/ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb,*.accdb)};DBQ=Library.mdb;"; System.out.println("connecting to database..."); Connection conn = …

Member Avatar for 203428
0
430
Member Avatar for deceptikon

Thanks Deceptikon for this amazing tutorial. There were some things about arrays that I still did not know about and your post opened my half-opened eyes :) Will you be posting more tutorials on other topics? Very keen on learning more.

Member Avatar for mike_2000_17
4
764
Member Avatar for kal_crazy

Creating a text editor. Thread 1 creates a file and listens for user input. Thread 2 checks for spelling mistakes. How do I show spelling mistakes on the console? Should I highlight the text that has the spelling mistake? I tried that but it just highlights the following text in …

Member Avatar for Moschops
0
222
Member Avatar for kal_crazy

The aim is to create a gdb function that changes current path to the upper level i.e `C:\Windows` to `C:\` I tried to strip away characters while the buffer array != '' Here is what I tried: void gdbCommand(){ char buffer[MAXCHAR]; strncpy(buffer,path,sizeof(buffer)); char result[MAXCHAR]; for(int i = 0; i < …

Member Avatar for Kristian_2
0
216
Member Avatar for kal_crazy

How to save the created txt file to a specified path? For example to C:\\ Drive. When the code creates a file it saves to the workspace folder of the project. Do I have to set the directory to C:\\? I tried using `SetCurrentDirectoryA` function but does not change to …

Member Avatar for kal_crazy
0
2K
Member Avatar for kal_crazy

Is it possible to change the value of a const variable? My aim is to change the directory of the Shell. I have set `const char* path = "C:\\"` as current directory. So if the user inputs "gd" then it will ask a directory to be set as the new …

Member Avatar for mike_2000_17
0
324
Member Avatar for amcath
Re: C++

Can you explain more about line 6 algorithm? Why are you incrementing and decrementing b? In order to get the answer as 6 remove increment and decrement operators and use brackets. Hope that helps.

Member Avatar for deceptikon
0
247
Member Avatar for kal_crazy
Member Avatar for GrimJack
Member Avatar for <M/>

The calculation of your standard deviation is correct, however, the return statement is wrong hence giving the wrong value. Sample Standard Deviation = square root of(sum of(squared(x - mean))/N-1) What you have done is sum of(squared(x-mean)/ square root of(N-1) Do not decimal format in the `var` method. Since `format` returns …

Member Avatar for dev90
0
501
Member Avatar for <M/>

Your aim is to count the integers right? So why are you outputting `num`, the integer entered by the user? You need to declare a counting variable. Let's say `count`. Now increment `count` if `num!=0` in the `while` after the user has entered an integer. This is because we do …

Member Avatar for dev90
0
322
Member Avatar for <M/>

> and now it doesn't collect inputs Yes it does - from lines 16-19. I tested your code. It worked fine.

Member Avatar for <M/>
0
225
Member Avatar for pritaeas

Drink but just don't drive! Get someone who will not drink and they can drive you home. Simple! Please don't ban alcohol hehe ;)

Member Avatar for diafol
0
980
Member Avatar for Bilal93
Member Avatar for quitare
Member Avatar for Learner010
0
129
Member Avatar for electrodelic

F = Ø // Initialize set of edges // to empty. Y = {v1} // Initialize set of vertices to // contain only the first one. while (the instance is not solved){ select a vertex in V - Y that is // selection procedure and nearest to Y // feasibility …

Member Avatar for Mouche
0
311
Member Avatar for migu2990

Go through the array using a for loop and then if name[i] == nameP then make name[i] = NULL; ^That will just make the value empty at that position of the array. After this you need to shift the values towards right from that position to the left. Hope that …

Member Avatar for migu2990
0
409
Member Avatar for <M/>

Actually the problem in your code is that you have reversed `input` twice! At line 9 you have called the method `reverse(input);` and at this point the return value of the method is the reversed value of the input. Let's say input is equal to 1234 so the `reverse(input)` would …

Member Avatar for kal_crazy
0
173
Member Avatar for <M/>

The calculation from Celsius to Fahrenheit is incorrect. First multiply the temperature (C) by 1.8 and then add 32. The correct calcuation would be `(1.8*c)+32` `(9.0/5.0)` would be 1.8

Member Avatar for <M/>
0
228
Member Avatar for Neuman

For my assignments this year we were required to implement GUI. At that time I only knew C++. Things got a little too difficult for me creating GUI in C++. I tried downloading Qt but my internet connection is so bad that it was taking forever to download. So I …

Member Avatar for kal_crazy
0
485
Member Avatar for meja
Member Avatar for SMYussef

No you have not stored the data into the array. You declared an array `salaries` at line 9 but you have not used this anywhere until you are trying to access the data (which there are none in the array) in the second for loop. Hint: Carefully look at the …

Member Avatar for SMYussef
0
1K
Member Avatar for kal_crazy

Are there any game designers and/or programmers here in DaniWeb? What does it feel like working as a game developer? What are the qualifications needed to be accepted into game developing studio? Are there specific courses needed to become a game developer? General question: What are other job opportunities as …

Member Avatar for HoverportMedia
0
208
Member Avatar for Warrens80
Member Avatar for Is_at_work

It works for me. Make sure you check the results.txt in the folder where your project is saved. EDIT: What IDE are you using?

Member Avatar for kal_crazy
0
175
Member Avatar for Learner010

Here is an article for adding colour: [Click Here](http://www.cplusplus.com/articles/Eyhv0pDG/)

Member Avatar for kal_crazy
0
75
Member Avatar for Ravneet_1
Member Avatar for nathan.pay.9

Ask the user for the amount of dice they want to use ( let's say n number of dice). So now you will need to change your `for loop`. You will require `nested for loops` (a for loop within a for loop). The outer loop will be the iterations until …

Member Avatar for nathan.pay.9
0
473
Member Avatar for beastie805

Try to utilise `comps` in your BinarySearch function. You're really not doing anything with that. Comparisons in Binary Search is as such - Once a list is divided into half then the function has made a comparison and stops comparing once the `value` is `found`. So now think about that^ …

Member Avatar for beastie805
0
156
Member Avatar for HenryR7

The idea is that the loop should end when the file reaches the end. So what will be the condition of the while loop now?

Member Avatar for richieking
0
188
Member Avatar for andrew mendonca

The program doesn't know what the end of the maze is. You did not specify what is the end. I would assume em and en are end m and end n but they are initialized to nothing. The end is MAXROW-1 and MAXCOL-1, right? So define em and en to …

Member Avatar for kal_crazy
0
251
Member Avatar for Zachary_1

Recursion does not work that way. At line 79 you are returning fixed values `one` and `two`. Recursion is returning the method with new parameters, basically. Not assigning the method to a variable then returning that variable. So uncomment lines 77 and 78 and change your `return` statement with methods. …

Member Avatar for Zachary_1
0
2K
Member Avatar for andrew mendonca
Member Avatar for kal_crazy
0
311
Member Avatar for moon.fall.58

Why does this code look similar to me? Hmmmm. Are you and Beastie805 doing the same assignment or something? :-P

Member Avatar for Ancient Dragon
0
194
Member Avatar for ameen994

It seems to me that you have not even started implementing the functions. The function comments (given by your tutor) give you a good hint of what you're suppose to do in each function. First do this homework on paper, then implement the functions in this code. That way will …

Member Avatar for kal_crazy
-1
153
Member Avatar for HenryR7
Member Avatar for HenryR7
0
150
Member Avatar for andrew mendonca

In your PrintMaze function you need to print out the 2-D array of the maze. You are just printing out the rows.

Member Avatar for kal_crazy
0
1K
Member Avatar for andrew mendonca

use `bool` for solving the maze recursively. Here is a good tutorial for backtracking algorithm : [Click Here](http://www.cs.bu.edu/teaching/alg/maze/) Hope that helps :)

Member Avatar for owenransen
0
1K
Member Avatar for Delira

Use arrays. Pick one item then put in array. Pick another item then put in array. And so on. Well that is one of the ways. There are better ways to solve that problem. Hope that helps :)

Member Avatar for Delira
0
3K
Member Avatar for Rawan_1

This is a good tutorial on recursion: [Click Here](http://www.youtube.com/watch?v=4agL-MQq05E)

Member Avatar for kal_crazy
0
153

The End.