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

Random Numbers Lab

We have a new lab in programming class where we are supposed to use a while loop to generate random numbers until they reach a final sum of 100. I'm not asking for the answers, I was just wondering if...

View Article


Game Maker Clown Tutorial Weird Glitch

Hey! I discovered Game Maker earlier, and whilst following the first tutorial, I encountered a weird graphical glitch that I'm not sure how to fix. I was following this tutorial, and I've done...

View Article


Get Focus When Typing in C#

I want to activate a search textbox when the user starts to type something (even if the textbox isnt focused right then). I have come as far as setting KeyPreview on the form to true. Then in the...

View Article

C++ Hexagonal Grid Number Cascading

Hey everyone, I could use some help with my partially completed function. Heres the part of the code I need help with. int numberCells(int illudiumY, int illudiumX, int r, int c) { Queue q;...

View Article

Error in my read data

char temp[20]; sscanf(buffer, "%[^\n]", temp, buffer); if(isdigit(temp[0]))// check if what read in is a digit { while(r < 8) { sscanf(temp, "%*d%d", olympians[i].base_values[r]); for(int c = 0; c...

View Article


Hoare's Sort

Where am I wrong with the breakdown on the algorithm? For: 33 6 21 12 19 29 38 22 14 40 ... what is the contents of array A after the first pass of Hoare's version of the Partition method for the Quick...

View Article

text file encryption

I have written a program that encrypts text files using Caesar cipher, however, there is an error i cannot find which prevents the code from running. Could someone tell me where i'm going wrong:...

View Article

Trying to compile C code where I know the location of all includes.

Hi guys, I have never really done anything in C before, but I was using a certain dialect of LISP that compiles into C. The problem is the tool to make the makefile and organize everything does not...

View Article


Metro App Settings saving

Hi, guys, I have a problem with Settings of my applications. In Visual basic for Desktop, is possible to save and access settings with "My.Setiings...", but in Visual Basic for Windows 8(Metro), i...

View Article


Image may be NSFW.
Clik here to view.

GOTO Command Alternantives?

Hey there, I decided to start teaching myself C++ this weekend - before I get started with my post, I should apologize in advance for the n00b question - take it easy on me I would also like to preface...

View Article

Pig game in java with classes:fixing errors in code

I need help with pig game with two dice. if someone rolls a one the round score is 0, if someone rolls two ones than the total score is 0. this is the same for the computer code for the die class...

View Article

I do not understand what this means.

Ok I have been programming for five years now, however I have never learned the terms for variables or anything else. I just look at source code and are able to figure it out. I am currently in a class...

View Article

Adding buttons

hi this is my code public static void main(String[] args) { JPanel panel = new JPanel(); ImageLabel label = new ImageLabel(new ImageIcon("images/reactor.png")); label.setLocation(29, 37);...

View Article


cPickle + Shelve + dictionary + appending data

Help i'm new to python and i just started using cPickle and shelve and i want to know how i can append new data to a dictionary stored in a shelved file.

View Article

Exercise problem.Score mark program.

//WAP to print Grade of a Student #include<stdio.h> int main(void) { int s,a,b,c,d,e; a=(s>=90); b=(s>=80 && s<=89); c=(s>=70 && s<=79); d=(s>=60 &&...

View Article


Help with secant rootfinding

F(X)=X0 - .375X1 + .028125X2 - .0008789X3 + .000012X4 So far i have roots that i found by writing this code: #include <iostream> #include <math.h> using namespace std; int main(){ float...

View Article

BMI application problem

I'm doing a promgrame that calculates BMI,im stuck when i insert a function of bmi equation??? how can i insert bmi equation?????

View Article


Avoid clients having to portforward to receive data

Hello there, my problem is I'm trying to make a client / server project. Everything is fine so far. This is how i was thinking it should work: Client sends login-request to -> Server -> Server...

View Article

Image may be NSFW.
Clik here to view.

My first C++ Program - Comments Requested

Hey there, I decided to start teaching myself C++ this weekend. For my first project, I wanted to make a multiple choice quiz to help my girlfriend with a state-regulated exam she has coming up (to get...

View Article

Translating script from perl to java

Hey guys.. I really need some help here.. im kinda new to java, and i have this script written in perl.. I need its functionality in my java program, so i need it translated.. but all of this base64...

View Article
Browsing all 51036 articles
Browse latest View live


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