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

shell command

I need to find all files under home directory(include regular and subdirectories), which has either read or write permission for everyone. And I found find -perm will help me to do this, however, I man...

View Article


How to render a teapot in C++?

Hi. I've been working on this for a while now and have tried almost everything that comes to mind when drawing a simple teapot in C++ Directx9.. Only issue is it appears I'm missing something (most...

View Article


Help guys, Only else statement runs in if else statement

Hi guys, (i am new to c#), the underneath code has been cracking my head for 2 days now, could some help. When i debug this code, once it gets to the first and second if statements, it will jump to...

View Article

embed VLC in form , LOGO problem

Hello guys, i have a iptv player all is well but i want to put a logo into stream and im using the method like this but its not working. Form2.AxVLCPlugin21.video.logo.enable()...

View Article

best practices for cashiering software

I have a general question and I'm pretty sure this has already been asked,but I could not find it. Basically, I am developing a cashier software. There are two main features of the program. One would...

View Article


Count amount letters that are given in a file

Hello, I need to count the amount of letters in a given file. I need to use a array of 26. So using ASCII code to count the letters. A example of what I am trying to achieve would be the following:...

View Article

Tip Calculator Program

I'm creating a tip calculator program and I am having a few errors. This is what I have so far for my Tester class... public class TipCalculatorTester { public static void main(String[] args) {...

View Article

Best/Most Efficient Way to Input Multiple Objects into a Constructor

So I have this code, public VendingMachine(String machineName, FoodInfo item) { this.machineName = machineName; item1 = item; for (int i = 0; i < 10; i++) { dispArray[i] = new Dispenser(item); } }...

View Article


Janrain error: Undefined index: token

Hello I'm trying to redirect the user to a page to print out the user name with a hello statement with the use of janrain and I keep getting this error: Notice: Undefined index: token in...

View Article


[HELP] Format to 2 decimal places

Can someone check my code, everything is working fine but the decimal is not formatting to 2 decimal places. I've written a code to format it to 2 decimal places at the end but its not working. import...

View Article

Google Calendar API - cannot be resolved

Okay so I'm trying to run the example of configuring a Google calendar app they give here: https://developers.google.com/google-apps/calendar/instantiate I'm using the newest version of Eclipse Classic...

View Article

Gauss Jordan Emlination Algorithm

Have to create this for class and having a hard time doing so. Been debugging it for a few hours and cant figure it out. 95% sure its something in the subtraction part of the method. It comes up with...

View Article

Image may be NSFW.
Clik here to view.

read from text file, validate each line is correct format & total

Hi, I'm in a beginner Java course...and my latest assignment seems super difficult for some reason. The assignment is focused around File I/O. It involves many parts, but this part is what is really...

View Article


how to write programs to to designs using loops in java. eg: * * *

How to write a java program to this design using loops in java * * * * class x * * * * public static void main (String arg[]) * * * * for (int x = 0; x<3; x++) { for (int y = 0; y< 4; y++) { for...

View Article

Why doesn't variable change values? C

Hi guys, I'm creating a small little program. I was wondering why my variables are staying at their initialized values instead of what the input is supposed to change it to. Originally I was scanning...

View Article


How to create a for loop to display alphabet occurence count from file

So basically i'm trying to write a code that will count the amount of times a letter appears in a text file. I've got most of the code down, and as far I know it should work. However, I can not figure...

View Article

Display controls using loop and inserting records to Access DB, How?

Hi, I am working on one form where user will select class then section and then number of subjects for that class. Basis on user selection no. of subjects for that class, I need to insert subject_name...

View Article


Question about operator overloading

Hello, I have a question about a particular code inside the overloading function where the variable BOOL bOk = operator << (dwSize);. I would just like to know how it actually work and changes...

View Article

course substitutions

I must write a interface to enter course information for transfer students. The created data file should be sequential in nature, with the student's name, his/her ID number, the course number from the...

View Article

Access Violation?

Hey guys, so I'm trying to write a program that will calculate all the primes in a number up to n using the Sieve of Eratostheneus algorithm. I've written the code, it compiles with no errors or...

View Article
Browsing all 51036 articles
Browse latest View live


Latest Images