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

Image may be NSFW.
Clik here to view.

20 questions on a variety of topics to aid me learn Java.

================================================== ================================================== === Before reading this MASSIVE post, please read the bottom at the stupid amount of P.P.S.'s as...

View Article


simple binary question (negatives)

there are various ways to represent negative numbers in a binary system, why doesnt a computer get confused? For example, with 3 bits, ones compliment 010 = 2 101 can mean 7 or -2 as far as I can tell,...

View Article


linked list in java

The program is to create a linked list to create circles assigning radii. Calculate and print diameter, circumference, and area for each created. I was told to use an iterator to work through the...

View Article

Returning string in form of donut 1,donut 2,donut 3

Given an int count of a number of donuts, return a string of the form 'donut 1,donut 2,..., donut <count>', where <count> is the number passed in. However, if the count is 5 or more, then...

View Article

GUI not updating (repainting)

I'm having trouble with the GUI updating after I run the applet. I've tried different methods such as repaint() and revalidate() and am not sure if I'm doing it wrong or I'm missing something....

View Article


how to Refresh my datagridview in the windows form

my form 1: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim cnn As New Odbc.OdbcConnection Dim cmd As New...

View Article

Image may be NSFW.
Clik here to view.

datagridview arithmatic operation

i have a form with datagridview like picture below : in calculate button, i use this code : Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...

View Article

J2ME Textfile Database Problem

Hello Everyone, I am developing a mobile application using J2ME, my problem is my codes doesn't read a word in the text file which has a space. In my database which I used a text file the words looks...

View Article


How to display a picture in a picturebox from a file on PC

I'm trying to make a Picture viewer in Visual Basic 2012 and I can't get it display in the picturebox Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles...

View Article


Image may be NSFW.
Clik here to view.

Java will not recognize GridBAgConstraints()

The following code will not work, because Java will not recognize GridBagConstraints(), even though I have imported both java .awt.*; and java.awt.GridBagConstraints; /> here is the code: import...

View Article

My first (sorta) program in C++

Hey this is my first program using C++ any tips to a newbie would be appeciated #include <iostream> using namespace std; int main() { int a; int b; int sum; int rem; cout << "division, type...

View Article

Random number generator acting strange...?

Ok, so here is my program: #include <stdio.h> #include <time.h> #include <stdlib.h> #include <conio.h> #include <iostream> #include <ctime> int main() { int number;...

View Article

Random number generator acting strange...?

Ok, so here is my program: #include <stdio.h> #include <time.h> #include <stdlib.h> #include <conio.h> #include <iostream> #include <ctime> int main() { int number;...

View Article


A function that takes an interger and returns set of sets.

I need a function rep(n) that takes an integer and returns set of sets representing n. It must behave this way: >>> rep(0) [] >>> rep(1) [[]] >>> rep(2) [[], [[]]]...

View Article

2 Dimensional GUI Project

I am trying to format my code and I can’t seem to get it right any help would be greatly appreciated. I am very new to Java. When I enter my Minutes and Earnings in the JTextFields I need it to out put...

View Article


Image may be NSFW.
Clik here to view.

My code::blocks error/bug bar in the bottom dissapeard

My code::blocks error/bug bar in the bottom dissapeard i dont know what happend to it. somewon help please : )

View Article

Im new to C++ and my thing isn't working : (

Yeah it's not working, does anywon know how to fix it? im trying to make a test I guess. #include <iostream> using namespace std; int main() { int a; int b; int sum; cout << "1 = true and 2...

View Article


how to repeat the write method in the text file by line via user input

This program is about Mail order. the user will input an item number, the valid item number is shown as guide for the users. the program will ask about the item number and the quantity. then that data...

View Article

how to put the calculation in a write method via user input

This program is about Mail order. the user will input an item number, the valid item number is shown as guide for the users. the program will ask about the item number and the quantity. then that data...

View Article

How to check which item is selected in a datagridview combobox?

I try to check which data is selected in a datagridview combobox Dim status As Double For x As Integer = 0 To ATCGRID.Rows.Count - 1 If ATCGRID.Rows(x).Cells(2).Value = "Full" Then status = 1 ElseIf...

View Article
Browsing all 51036 articles
Browse latest View live


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