Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 199
Search took 0.01 seconds.
Search: Posts Made By: 357mag
Forum: C++ Jan 1st, 2017, 5:23 PM
Replies: 1
Views: 6,180
Posted By 357mag
Re: No .exe is being created with my stuff

Here is the line of info which I think is responsible for this. I copied it off a site and now that I look at it I see the prog thing and I think that's why. But is there a way to change it so it...
Forum: C++ Jan 1st, 2017, 5:00 PM
Replies: 1
Views: 6,180
Posted By 357mag
No .exe is being created with my stuff

I've got NotePad++ set up real nice and it's working good with Java and C++ for the most part, but what I don't understand is that when I run my .cpp file the code runs fine and I get the output in...
Forum: Java Jun 1st, 2016, 9:31 PM
Replies: 3
Views: 9,177
Posted By 357mag
Re: Why JavaFX?

Thanks Steve. I wasn't aware that this forum went so far downhill. I remember when I joined many years ago that it was actually quite responsive.
Forum: Java May 17th, 2016, 11:24 PM
Replies: 3
Views: 9,177
Posted By 357mag
Re: Why JavaFX?

Really? Nobody?
Forum: Java May 10th, 2016, 8:49 PM
Replies: 3
Views: 9,177
Posted By 357mag
Why JavaFX?

I just learned that in Java 8 they put in a brand new GUI toolkit called JavaFX. I have not gotten so far in the language yet that I have not even used Swing once.

But is JavaFX supposed to be...
Forum: C++ May 4th, 2016, 12:13 AM
Replies: 6
Views: 10,088
Posted By 357mag
Re: What a bummer that C++ doesn't have a built in GUI toolkit

When you consider how much software is let's face it...GUI. It seems to me they should build in a GUI toolkit.

Simple.

This is 2016. Not 1975.
Forum: C++ May 3rd, 2016, 4:11 PM
Replies: 6
Views: 10,088
Posted By 357mag
Re: What a bummer that C++ doesn't have a built in GUI toolkit

I know that. But my question was why? Just wanna know out of curiousity why one of the greatest languages does not have a built in GUI Framework.
Forum: C++ May 2nd, 2016, 9:34 PM
Replies: 6
Views: 10,088
Posted By 357mag
What a bummer that C++ doesn't have a built in GUI toolkit

That has always bothered me. I love the language and the syntax and how easy it is to send output to the screen. But I have discovered long ago that creating GUI programs in C++ is... well to me it...
Forum: Python May 25th, 2015, 12:53 AM
Replies: 1
Views: 7,012
Posted By 357mag
Forum: Python May 23rd, 2015, 9:59 AM
Replies: 1
Views: 7,012
Posted By 357mag
Python book recommendations

Looking for a few easy to understand and well written Python books. I just picked up Head First Python. Would like to pick up one or two more.
Forum: C++ Jan 28th, 2014, 5:44 PM
Replies: 4
Views: 5,169
Posted By 357mag
Re: I can't find the error

Okay I was not sure whether when you pre-incremented x to the new value if that new value also became the first x to the left.

Thank You, and many Thanks to Herb Schildt.
Forum: C++ Jan 27th, 2014, 8:41 PM
Replies: 4
Views: 5,169
Posted By 357mag
I can't find the error

I'm working with this program that outputs a series of numbers. First it outputs 5 even numbers. Then below that it outputs 5 odd numbers. The first time the line that does the work is y = x + x++....
Forum: C# Jan 25th, 2014, 1:21 AM
Replies: 1
Views: 3,690
Posted By 357mag
Re: How to I compile and link both these files?

I figured it out and it's fine now.
Forum: C# Jan 25th, 2014, 12:12 AM
Replies: 1
Views: 3,690
Posted By 357mag
How to I compile and link both these files?

Okay I'm writing my first object-oriented type program in C# and I've decided to use two separate files. One file is called Building.cs which contains the class declaration for Building, and the...
Forum: C# Jan 10th, 2014, 3:21 PM
Replies: 3
Views: 5,122
Posted By 357mag
Forum: C# Jan 10th, 2014, 12:58 AM
Replies: 3
Views: 5,122
Posted By 357mag
Re: Index out of range exception thrown

Well I looked at that line of code and I started thinking maybe the compiler doesn't like that + 1 part. Maybe that is causing the out of bounds error. So I put parentheses around it and now it runs...
Forum: C# Jan 10th, 2014, 12:48 AM
Replies: 3
Views: 5,122
Posted By 357mag
Index out of range exception thrown

I'm trying to write a program that has a two-dimensional array that will populate the array with the numbers 1 to 8 and then print them using two rows and two columns, so the resulting output looks...
Forum: C# Dec 30th, 2013, 12:54 AM
Replies: 6
Views: 5,023
Posted By 357mag
Re: My program compiles fine but has a runtime error

I think I got it going. I made this change:

while (ch == Convert.ToString('y'));


So far so good...
Forum: C# Dec 30th, 2013, 12:45 AM
Replies: 6
Views: 5,023
Posted By 357mag
Re: My program compiles fine but has a runtime error

I made both changes but the compiler complains about '== cannot be applied to operands of type string and char'. When I removed the second change you suggested and reverted it back to the original...
Forum: C# Dec 28th, 2013, 7:09 PM
Replies: 6
Views: 5,023
Posted By 357mag
Re: My program compiles fine but has a runtime error

Well I kinda got my program going but I think I got a logic error. The program runs but it doesn't run correctly. After I enter a temperature reading and hit Enter I see the line "Do you want to...
Forum: C# Dec 28th, 2013, 4:24 PM
Replies: 6
Views: 5,023
Posted By 357mag
My program compiles fine but has a runtime error

Okay I've got this program that inputs some temperature readings and then will compute the average. Compiles okay but I got a runtime error. I know which line is causing the problem but I don't know...
Forum: C# Dec 28th, 2013, 4:19 PM
Replies: 2
Views: 3,285
Posted By 357mag
Forum: C# Dec 25th, 2013, 4:25 PM
Replies: 2
Views: 3,285
Posted By 357mag
How to get the .0 to show

I got a double variable and I'm trying to get C# to show it as 10.0 but for whatever reason it just keeps dropping the .0. I've tried this format specifier but no luck so far:


int ivar;
double...
Forum: C# Jul 3rd, 2011, 2:35 AM
Replies: 10
Views: 7,811
Posted By 357mag
Re: The increment operator with parentheses

Your explanation is kinda thick for me to follow but I appreciate it nonetheless. I haven't heard of a value stack or an operand stack. If anybody else wants to interject their explanation feel free....
Forum: C# Jul 3rd, 2011, 1:30 AM
Replies: 10
Views: 7,811
Posted By 357mag
Re: The increment operator with parentheses

But we learn that for the most part arithmetic expressions and the rules that govern them still apply to programming. And parentheses have a higher precedence than ++. So are you saying that it's...
Forum: C# Jul 2nd, 2011, 8:11 PM
Replies: 35
Views: 25,359
Posted By 357mag
Re: What's the Best Programming Language ?

I've been wanting to learn C# for a long time now so I'm finally doing it. It's syntax resembles both Java and C++ and since I like the syntax of both those languages I feel right at home with...
Forum: C# Jul 2nd, 2011, 7:43 PM
Replies: 10
Views: 7,811
Posted By 357mag
The increment operator with parentheses

Look at this:

x = 10;
y = 2;

z = x++ - (x * y)


What I first did was do what was in parentheses first (cuz that's what we're taught), since parentheses have higher precedence than the ++ operator....
Forum: Java Jun 28th, 2011, 6:58 PM
Replies: 4
Views: 54,100
Posted By 357mag
Re: How to input a character

Ah...I discovered a bug. The second if statement simply undoes what I accomplished in the first if statement. That's where the bug is.
Forum: Java Jun 28th, 2011, 6:55 PM
Replies: 4
Views: 54,100
Posted By 357mag
Re: How to input a character

Well I'm gonna not use strings since I have not studied them yet. Here is what I got now:

public class ConvertCase
{
public static void main(String args[])
throws java.io.IOException
{
char...
Forum: Java Jun 28th, 2011, 5:44 PM
Replies: 4
Views: 54,100
Posted By 357mag
How to input a character

I'm trying to write a program that will input three characters and convert them to the opposite case. I'm first starting with a reduced, simplifed form just working with inputting one character. Too...
Forum: Java Jun 28th, 2011, 3:50 PM
Replies: 7
Views: 5,211
Posted By 357mag
Forum: Java Jun 26th, 2011, 2:08 PM
Replies: 7
Views: 5,211
Posted By 357mag
Re: Cool program I finished writing

If you look at the rules that's what it says. To use [icode].
Forum: Java Jun 26th, 2011, 1:46 AM
Replies: 7
Views: 5,211
Posted By 357mag
Cool program I finished writing

This is a simple Java program that uses a do-while loop to prompt the user to enter the correct passcode to gain access to the mainframe. I rather like it!

import java.util.Scanner;

public class...
Forum: C++ Jun 18th, 2011, 2:08 PM
Replies: 11
Views: 5,545
Posted By 357mag
Forum: C++ Jun 18th, 2011, 3:19 AM
Replies: 11
Views: 5,545
Posted By 357mag
Re: The compiler says x equals -4 but I don't get it

http://www.cs.cornell.edu/~tomf/notes/cps104/twoscomp.html

Like I said I read this over and over. You add 1 after you flip the bits. That's why I was adding 1 after I flipped the bits.
Forum: C++ Jun 18th, 2011, 12:24 AM
Replies: 11
Views: 5,545
Posted By 357mag
Re: The compiler says x equals -4 but I don't get it

I was just simply trying to write a program that shows the bitwise operators. All of them I understood in my example except the bitwise complement operator. I simply started with a positive integer...
Forum: C++ Jun 17th, 2011, 11:35 PM
Replies: 11
Views: 5,545
Posted By 357mag
Re: The compiler says x equals -4 but I don't get it

I'm trying to understand this and it ain't easy. Some places say add 1 after you flip the bits cuz that is what you're supposed to do. Some other place said subtract 1 (or add -1). Why? Beats...
Forum: C++ Jun 17th, 2011, 10:13 PM
Replies: 11
Views: 5,545
Posted By 357mag
The compiler says x equals -4 but I don't get it

Input a value for an integer variable named x. Okay so I input the value 3. Then I perform the complement operator on it (~x). So here is what I got:

x = 3 0000 0011
~x is 1111 1100

Now I...
Forum: C++ Jun 14th, 2011, 11:59 PM
Replies: 3
Views: 2,656
Posted By 357mag
Stuffing a number that is too big to fit

How does C++ represent a negative number? If I write a program that declares x to be an unsigned int and give it the value 32767 it will print 32767. If I increment x by 1 and print the result it...
Forum: C++ Jun 11th, 2011, 8:19 PM
Replies: 3
Views: 1,965
Posted By 357mag
Re: What are these four files?

So the application file must be the .exe.
Showing results 1 to 40 of 199

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:25 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC