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

change code into a switch statement

I am trying to put a menu in to my hotel program to achieve the following: i want to put the code that ‘Views All rooms’ and ‘Adds customer to room’, into separate procedures(methods) just to see if it...

View Article


Luhn check for Credit Card Validation code

My code doesn't work, and I'm looking to validate credit card numbers using the Luhn check. I'm stuck and unsure what else it is that i need to do. package validatecc1; import java.util.*; // Imports...

View Article


setcookie() not working

Hey guys! I'm trying to use a simple cookie to remember my user login but after a few hours of googling and some different approaches I can't seem to get it to work. I have narrowed it down to the...

View Article

Datagridview click event

I put a click even on the datagridview. Im tryin to get the content of this grid to load some textboxes on a second form. But I kept getting error message, Private Sub...

View Article

Mojam starts streaming today!

5pm GMT today! What ever comes out of it (and the other groups participating) will be up on the humble bundle for sale. Is anyone going to watch, or buy what ever comes out of this three day gamejam...

View Article


Text search question

Hi Everyone, I built a search ages ago using what i thought to be a trim function to search on everything after a specified character. I can't seem to find the right function for this. I have a series...

View Article

bridge deck help

Hello everyone, My teacher is having us do a bridge (cardgame) program in java. This is what I have so far. He set up the methods so we have to use those. What is contained in the methods, I have...

View Article

Problems with Validations and StringBuilder.

I'm working on this new project that involves 2 classes and a Demo to test them if a password is valid to terms. One class is testing a simple String for length of 6, uses atleast 1 Uppercase, uses...

View Article


Passing Strings to functions/classes

I have the need to pass a string to a class. Am I missing something, as the .cpp file of the class throws an error on the type with this code: Inside Main.cpp I have the function call inside a file...

View Article


Multidimensional Arrays

Hello, I have recently been trying to make a new program making multidimensional arrays! Here is my code: #include <iostream> using namespace std; int main() { const int MAX_ROWS = 3; const int...

View Article

Error handling with vectors

The program allows the user to input a string and add it to an vector. They can also type in a string and remove it from the vector. But I'm trying have it give an error message if the string to be...

View Article

Using nested if statements to count vowels in a string.

Hey there, I need some advice on how to complete some code. The code needs to take an inputted string from the user, then print out the number of vowels in the string. The challenge here is that I'm...

View Article

Fingerprint Scanner Problem

i have created a sign in and out system for my gym as a project for my college work using vb6 and access however the gym have now asked me to see if i can incorporate a finger print scanner into the...

View Article


Using C++ operators effectively and efficiently

I'm trying to look into C++'s operators to see if it's possible to create a math function that executes faster than those in the STL, but less accurate, for when high precision isn't necessary (and...

View Article

Coding in Eclypse, Minecraft Client CRASH

**Hello,** I downloaded Eclipse and Minecraft coderspack, and i made my own client... But i copied mcp (coders pack) so i dont lose everything when Eclipse crashes... Then i got a problem and i...

View Article


Character Count-java

Hi I am suppose to find character, word and line count. Line and word count work but the character count doesn't work. I am suppose to read in a external txt file. This is what I don't get. I am...

View Article

Image may be NSFW.
Clik here to view.

OrderedStringList help!

Hello: I'm having trouble with figuring out how to write the corrected methods for boolean delete(string s) , boolean deleteRange(string s), displayNoLF(), display() and boolean merge(OrderedStringList...

View Article


Even/Odd program in Java

I have a piece of code which is supposed to determine whether or not a number is even or odd. public class CS1702_Lab8 { public static void main(String args[]) { int i; boolean eo; String s = "";...

View Article

Example of Big Theta(n log n) Algorithm

Hi, I need to give an example of an iterative algorithm with running time Big Theta(n log n). I'm thinking about using Heapsort. I know it's Big O is (n log n), but I'm not sure about its Big Theta. Is...

View Article

Persistent Class Information with Multiple Access - Question

Hi all, I am working on a project at the moment which requires database handling and for the design point of view I have created all of my database connections to run though one single class, also to...

View Article
Browsing all 51036 articles
Browse latest View live


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