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

Overflow Error in Battle Simulator

I Have spent the past few hours getting a battle simulator finished and I am having a problem with it throwing an overflow error. The battle lasts way to many rounds and every time a type of troop...

View Article


CSV edit header file not inserting properly

I have been working on a header file to write and edit csv files for future use. However, I cannot get this code to function properly. Albeit, this is my first time actually using object classes this...

View Article


C Tutorial 1

Howdy The first of my tutorials on C.We are going to take small steps at a time so that readers are able to grasp the constructs of the language.Since this is the first tutorial I have ever written,it...

View Article

Simple question about where to put code

Im new to C# and I can't find where to put my code that draw lines on the form immediately when I debug my program. Currently, I have to click a button to draw lines but I thought if I put my code...

View Article

Trying to get started with algorithms

Hey people, Okay, so I've been coding and programming for a while in various languages but I wanted to take up algorithms. So I tried to begin learning, and I thought to myself how wonderful would it...

View Article


Getting more data from a profiler

Hi guys, I was looking over the results of a Profiler in visual studio and in its list of functions doing the most work it has System.ni.dll doing 40% of the work and mscorlib.ni.dll doing 35% of the...

View Article

splitting a string into an array

Random r = new Random(); int x = r.Next(1, 64); Console.WriteLine(x); int b = 2; string binValue = Convert.ToString(x, B)/>; Console.Write("bin: " + binValue.ToString()); string[] a = new...

View Article

3D Volumetrics

Hello all, I am a biology major that is beginning to work with Java to develop tools for my lab. My question is this: Is there an established way to deal with volumes in Java? Not regular volumes, but...

View Article


"Hello cube" project - drawing and rotating a 3D cube on scree

I am fresh out of a Java course and out of classes until next August. I did not get what I wanted out of the course. I've been looking around for a challenging project that's attainable. I figure using...

View Article


How to pause between 2 printf commands?

I need help to learn how to make a 2 second pause between to printf's. #include <stdio.h> void printHello() { printf("Hello!\n"); printf("Who are you?\n"); printf("Hi,(person)\n"); printf("What...

View Article

Socket Server - Sending and recieving positions/ect(SDL)

Hi guys! I'm quite new to this forum, But I heard it was a good one =D So I created a small application to kind of test around with sockets. Here is what I have so far: #include <sdl.h> #include...

View Article

An error of "A Date is required here." in crystal report

Hi all, I need to convert the power builder code in vb.net. this is the power builder code receiptdate +" ("+Mid(Upper(dayname( receiptdate )) ,1,3)+")" I tried to convert it like this stringvar...

View Article

Implementing oop, am i learning this correctly?

Hello disco citizens. I'm trying to get a clear understanding of object oriented design principles, and my main interest is in generics and abstraction. The problem was always "This" until all of a...

View Article


JOptionPane YES_NO Error Help

Here is my problem, I'm trying to use three JOptionPane Confirm Dialog Boxes (using the JOptionPane.YES_NO_OPTION) to ask the worker if they want medical insurance, dental insurance, and long-term...

View Article

newline used incorrectly

hey friends, i need to display the folloing pattern using C:

View Article


newline used incorrectly

hey friends, i need to display the folloing pattern using C: *****----- *****----- *****----- ---------- ---------- ---------- instead of getting this output , im getting: ***** ***** ***** ----- -----...

View Article

question on basic code

I found this example on a site, loaded in VS and it just gives a blank black screen but sample says it has output. I was looking for something to explain what args is. Can someone explain what args is....

View Article


Image may be NSFW.
Clik here to view.

How to return an array from a Java Bean

I need to return an String array from my java bean to the jsp. Do someone know how to do this? />

View Article

Image may be NSFW.
Clik here to view.

Application.MyApp Corruption

I changed the Assembly Name and Root namespace of my project and now Application.MyApp looks like this: 㼼浸敶獲潩㵮ㄢ〮•湥潣楤杮∽瑵ⵦ㘱㼢ാ㰊祍灁汰捩瑡潩䑮瑡⁡浸湬㩳 Any ideas? Now when my application starts it looks like an old...

View Article

Image may be NSFW.
Clik here to view.

Creating a Probability Transition Matrix

I am trying to implement the following algorithm: In a nutshell, we iterate over a set of 'states' to calculate a value for each. Each state has multiple actions, and each multiple action has a...

View Article
Browsing all 51036 articles
Browse latest View live


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