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

Determining if Something is in Order

I have a function that is supposed to determine if the three values given are in order. def InOrder(CardCollection): """ Determines if a CardCollection is in order """ a =...

View Article


Can Anyone tell me what Im doing wrong?

Im getting errors with my constructor and destructor, does anyone know what im doing wrong? #include <iostream> #include <string> #include <iomanip> #include <fstream> using...

View Article


Ragged Array and Pointers.

1. Prompt for user ID, station, and lab. 2. Fixed array[SIZE]; SIZE = 4. 3. Each array points to dynamic array So do i have the user determine the array size with the pointer? I'm so confused how to do...

View Article

Swing - Events.

I am trying to implement a Netbeans/Eclipse - like feature. When you are attempting to create a new class or package in those IDEs and you type in: Example but Example.java already exists then it let's...

View Article

Image may be NSFW.
Clik here to view.

Simple Boolean Logic

hey guys, ive made this form with two textbox's called ( age and RHR ) im asking the client two insert two values and see whether and then hit continue, it seems right but when the two message boxes...

View Article


[CMD] Token-Maker Problem

Code: static void Main(string[] args) { var total = 0; var result = ""; do { using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\Users\Public\TestFolder\WriteLines2.txt", true)) { var...

View Article

Heap Corruption question?

at the end of my 2d shooter i store their info to a binary file, then at the beginning of the game i ask if they would like to see it which will read it back in and save it to a text file for them, it...

View Article

initializing 2D string array (and more)

hello, I'm currently taking an intro to programing class and we're required to make a tic tac toe game for our final project. anyway I think I got most of the logic down but due to the fact that I have...

View Article


Nullpointerexception for object Array

I'm writing an inventory program for my Java class and I need some help. I've built an array of Item objects but when I try to reference the Item methods from that array, it gives me a...

View Article


Annoying error using arrays, and pointers. What am I missing here?

#include <iostream> #include <iomanip> using namespace std; double aveInt(int *array, int size); int main() { char pause; double avg; const int SIZE=5; const int cIntArr[SIZE]= {5, 12, 8,...

View Article

Roulette Game(spots, bets, and winnings)

Hello, I'm doing an assignment for school and could use some help. Here is what I am currently working on: The RouletteTable class contains all the possible bet spots (several RouletteSpot objects) as...

View Article

Statistics on a data file.

I am having trouble setting the parameters on my ArrayList. Any suggestions on where to start or what I am doing wrong? Thanks any input is considered... heres the parameter... >90 A >80 B >70...

View Article

Java Socket - Connection Reset in Server to Client when Client connect

So I'm trying to set up a Client <-> Server connection. I keep getting the most annoying error because the client and server will not connect but only send "cpc" once when I call print("cpc");...

View Article


Binary Tree

I am a little confused about how to draw a binary tree using Pre-Order Traversal, the root would be the first number going from left to right? So if I have 48 32 51 54 31 24 39, 48 would be the node....

View Article

C/C++ Mac Compiler

Hey, I have been using Xcode for all of my C/C++ compilers on my mac, but I am really getting fed up with it. Do you know of any other compilers for c/c++ that are compatible with macs? I have tried...

View Article


How to check if txt file has data stored on button click

I am trying to check to make sure my program doesn't blow up when trying to retrieve data from a txt file. I have two options on my address book screen.... Save and Get. I want to show an error if they...

View Article

polymorphism, inheritance: help incorrect output.

I can't figure out why it is only printing the last line. I also can't seem to get the count of items to work either. Any help is greatly appreciated. Test File Bike,Schwinn,100,Candy Apple Red...

View Article


Using pointers to move through a tree

I'm coding a directory program in C++. The idea is that the Folder class contains two arrays, one of subfolders, and the other (currently unimplemented) for files within that folder. I'm starting with...

View Article

ASP.NET post textbox after button click

So im just using an ASP.NET atm Iv added 4 textboxes from the toolbox TextBox1, TextBox2, TextBox3, TextBox 4 and a button 'button1' I want the user to enter data into the textboxs, compare them by...

View Article

Sorting in binary search tree

Hello this one part of my project for binary tree...for some reason I can sort my list of books by year in the binary tree....however the title I can't sort by abc order.....any recommendations?...

View Article
Browsing all 51036 articles
Browse latest View live


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