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

Counting to 10

Hello! Why isn't this program counting from 1 to 10? 01 int g_ant = 0; /* global declaration */ 02 03 void *writeloop(void *arg) { 04 while (g_ant < 10) { 05 g_ant++; 06 usleep(rand()%10); 07...

View Article


Python game engine tutorials or resoures ?

Hey, I've been trying to find resources and tutorials for the creation of a Python Game Engine. So far no luck..... (I've ben trying for weeks now). If anyone has any suggestions or helpful material...

View Article


Image may be NSFW.
Clik here to view.

Multiples of 3 problem

Hey everyone : I have written the following piece of code : import java.util.Scanner; public class question1 { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); int...

View Article

Java/Scala concurrency

I was wondering whether people on the forum have "updated" their concurrency tools to Actors, STM etc. I know that Scala has actors built-in but since i suck at Scala i think i am going to order the...

View Article

Java Command Line Menu

Hey Guys, I got my first Assignment in Java, the deadline is near, can you tell me is there any tutorial or guide on the internet which will help me to create Menu -> Sub Menu using the Command line...

View Article


JPanel I don't get prop size of my screen

As title says, I got a problem with size of my inner frame where I place objects and other stuffs for my game, to be more precise, instead of getting 360px of width and 500px of height, I get 354 for...

View Article

Comparing options for learning C#

Hi all, I'm not sure if this is the right forum for my question, but I'm an experienced software developer (over ten years) mulling some options for C# training. As a software developer currently...

View Article

Pull it out on a report. But how?

Hi! With this code below I can find one record on my "last_name" column. But there is a think I would like to learn that until now I didnt. I want to pull out this data I on a report builder. I already...

View Article


how do you get the folder names from a directory

I am trying just to get the colder names from a directory after i search to see if a file exists or not. my current code is as follows: Private Sub file_search_Click(sender As System.Object, e As...

View Article


Image may be NSFW.
Clik here to view.

Invalidate one section with OnMouseMove

How can I Invalidate just one section? I should only draw mål.Rita once. And then redraw sikte.Rita with onmousemove(). Thanks for help using System; using System.Collections.Generic; using...

View Article

Rubik's Cube Solver Code: Taking Too Long

Hey guys, Connor here. I made a program that solves a Rubik's cube if you enter all the colors. It works okay, but it takes so long. It takes 30 seconds to solve a 6 turn solution and about 10 minutes...

View Article

Memory Manipulation

This is a homework assignment but I'm having problems understanding bit manipulation. This program is in C++. The assignment states: 1. The state array in homework #1 used 8 bits per state to store the...

View Article

Retrieving a window shell path by handle

I've been looking for info on the web for several hours, but nothing that can help me. My question is: if I have a shell window browsing a folder, open on the desktop, can I know by its handle the...

View Article


Errors writing a program that uses 5 classes and a cpp file

I am attempting to write a program with the following requirements: In this assignment students should create five header classes called Point, Circle, Rectangle, Square, FigureGeometry and one cpp...

View Article

Phrase to Binary

Hi all, Been a while since I've posted on here since I don't have a C++ course this semester. I just got back into today and wanted to see if I could come up with a program that takes a phrase and...

View Article


How to make a java frame ?

Hi all.. I have just a simple question. Im trying to make a frame with some drawings inside,what class do i need to import in the beginning of my code.

View Article

This feels dirty...

Hey folks, me again. This time I have a simple problem and the solution I went with, as usual, feels like a slow, dirty hack. I've mucked about a bit with Regex for a more efficient solution, but I'm...

View Article


question - binary/assembly mentors

Im brand new to this industry and looking for someone who can explain what is binary vs. assembly at a deep level. If someone could point me to a place where I might be able to find a mentor to coach...

View Article

Image may be NSFW.
Clik here to view.

Unhandled exception type FileNotFoundException

Hi there. I'm trying to do a file reader which is accessible via a menu system but i keep getting the error “unhandled exception type FileNotFoundException” import java.io.File; import...

View Article

Sharing XNA Projects with Friends

Salutations! I'm lost. I want to share my XNA projects with my friends, only problem is they don't have C# or XNA on their computers. I tried to publish the game and send over the exe. file to them,...

View Article
Browsing all 51036 articles
Browse latest View live


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