Quantcast
Channel: Programming Forums
Browsing all 51036 articles
Browse latest View live
↧

Merge sort compile error

I'm trying to implement a merge sort function and I'm getting a compiler error that says "no match for 'operator=' " It occurs on my recursive assignment of left_list = mergesort(left_list) and the...

View Article


Image may be NSFW.
Clik here to view.

I'm a Beginner Programmer in Java trying to use Math.random

Hi everyone, Im having issues with my java program, which im suppose to use Math.random. My task is that I have 80 cats and dogs together and I'm suppose to use Math.random to get a random amounts for...

View Article


Image may be NSFW.
Clik here to view.

I'm a Beginner Programmer in Java trying to use Math.random

Hi everyone, Im having issues with my java program, which im suppose to use Math.random. My task is that I have 80 cats and dogs together and I'm suppose to use Math.random to get a random amounts for...

View Article

staircase coding advice

Write a function named steps() that draws a staircase. Each step of the staircase consists of a vertical line and a horizontal line of the same length. The function steps() takes three parameters: 1....

View Article

Rough Beginnings, New Ideas

As it is now, I'm not sure if Java is the language I should be using for this, but it's my best first guess. My goal is to write a program that can assist me in updating overwrite files. It's harder to...

View Article


Finished programming an assignment, what could I do better?

I am posting this because I always feel like I Could do something better with my code. I feel like I'm too elementary, do you have any suggestions about what I can do better? (This is my first time...

View Article

How to put Method in my code? so i can choose which to operate

How i can put method so i can choose which one of the three i can operate. import java.lang.*; import java.io.*; import java.util.*; class Mp{ public static void DecimalToBinary(String args[]) throws...

View Article

Asking Help for my simple RPG program

Hi guys I'm kinda new to Java Programming so I'm asking help for the algorithm for my code any help would do or suggestions thank you Character class /* * To change this template, choose Tools |...

View Article


How to limit output to 2 decimal place?

Write a program that prompts the user to enter the exchange rate from currency in U. S. dollars to Chinese RMB. Prompt the user to enter 0 to convert from U. S. dollars to Chinese RMB and 1 to convert...

View Article


deadlock Problem

my vb.net program was accessed by more than 4 users, all users can update or insert or select process at the same time bt only one server. use sqlserver as back end we face deadlock error most of the...

View Article

Fields in textboxes

Hi to all.. I was working for now in vb6. But I have a problem when i run the save button, the message box appeared and says"no values given in required parameters." my code is below: Tsql = "UPDATE...

View Article

How to create a distributed object application?

Instruction goes like this, create a distributed object application that creates a remote object account. Problem is I have no idea about Remote Method Invocation.

View Article

batch add character's freely designed sum prefix to filenames

How can I batch rename all files in a folder by adding to them a prefix number equal to the sum of their characters, knowing that I set freely what the value for these each character is : A = B = C = D...

View Article


Iterative Euclid algorithm

Hello guys, so this is a code snippt i found online, i just wanted to know wether its in C or C++ and how do i read the last line? i cannot seem to understand it Thanks! int gcd_iter(int u, int v) {...

View Article

Same random numbers generated each time through

I'm having some difficulties with the program. The problem is that each time the program is run (meaning within the while loop) the same numbers are generated. I'm not quite sure why. I've done some...

View Article


what error did i make in this code

Imports system.data.odbc Public Class LoginForm1 Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim u As String Dim p As String Dim user As String =...

View Article

how to read (convert into integer) the integer data from the keyboard

hi, i want the code to read the values from keyboard even if u give a character it need to convert into the valid integer. i tryed with code main() { int x; std::cin<<(int)x; .. . .. . . }

View Article


error:taxrate might not have been initialized

import java.util.*; public class property2 { static Scanner console = new Scanner(System.in); public static void main (String args[]) { double AssessedValue; double...

View Article

*URGENT* Simple Program Repeat Issue with Do While Loop

So I am supposed to essentially make this game in which I randomly generate a predetermined set of 4 numbers that (with the addition of operators by the user)would ideally evaluate to 24. The program...

View Article

*URGENT* Simple Program Repeat Issue with Do While Loop

So I am supposed to essentially make this game in which I randomly generate a predetermined set of 4 numbers that (with the addition of operators by the user)would ideally evaluate to 24. The program...

View Article
Browsing all 51036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>