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

Linked List: implementing GetItem() with only one part of a node

I'm writing a program that places the key, author, and article title of a jornal articles from a file into a linked list. The program first reads all the article information for each article into a...

View Article


Question on String Class & StringBuilder

Under what circumstances would you choose to use the String class? When would you use StringBuilder? and why does Java have both?

View Article


Just a few questions...

Under what circumstances would you choose to use the String class? When would you use StringBuilder? and why does Java have both?

View Article

Program requires to read same line(s) from stdin twice

I'm working on an assembler for a "simple virtual machine", and because of data mapping concerns, I have to basically take multiple runs through the input. The input is given in stdin. Now, I'm...

View Article

Getting the Dot Product of 2 1D Arrays & putting those values in a

Hi there, ok so with two single array [odd array] & [even array] find the dot product of those values and set them into a 2Dimensional array. Should look like a multiplication table...this is what...

View Article


Qt Error help with char and const *char

I have the following error with Qt. Can anybody help me with these Qt function errors and how to fix it? error: request for member 'begin' in 'answer', which is of non-class type 'char*' error: request...

View Article

Having Trouble with Pig Latin to English Translator

Here is my code so far Dim strInput As String = "" Dim str1stCharacter As String = "" Dim strOutput As String = "" Dim intStringLength As Integer = 0 strInput = Me.TextBox1.Text str1stCharacter =...

View Article

Is It Better To Load Settings Into Variables Or Load Settings Directly

So This might sound confusing but let's say for example that you have a program with a bunch of settings to be set. For example MainWindow which has a few properties that can be set one a string for...

View Article


Help with 3X3 Latin Square

I am having trouble with my code printing out the latin squares. We are supposed to create a program that will print out all the possible Latin squares for a 3X3 2-D array. I think my code works but...

View Article


Printing from istringstream

Here is what I need to do: QuoteExercise 8.11: The program in this section defined its istringstream object inside the outer while loop. What changes would you need to make if record were defined...

View Article

How to "parse" multiple links?

Hello guys, i have a problem more like a question. How i can parse multiple links with Beautiful Soup?. I have a "script" that prints multiple links and I would parse them all (not necessarily at the...

View Article

pointer swap error3.

I am supposed to write a function that swaps the values of two integers using pointers.While I don't need it to show me the swap values as output, I have done so because I want to see if it works...

View Article

Need help with addition to dice program

I just wrote this dice simulation code /* * Author: Adriann Guy * Class: COMT 20011 * Lab: Lab 4 * Date: * Purpose: This program simulates 5 dice */ import java.util.*; import java.lang.*; public class...

View Article


Image may be NSFW.
Clik here to view.

begginner programmer. My program is done but I have a tiny issue.

Hi everyone, so my program is typically done but i did it the wrong way. The way the end the loop in it is by having the user enter "-1" but the way my teacher rather have it done by using the "control...

View Article

Multiplication table!

Hi there, ok so I have two arrays already delcared & initalized and with those two array I need to multiply each to get an output of a multiplication table. Which is not working for me. thanks for...

View Article


regular expression

I wanna use regular expression to match numbers, but didnt use it for a while, so I kinda forget. Can anyone help me validate what I have is correct or not? So numbers like -5.4, 5, 5.0 should be fine....

View Article

Image may be NSFW.
Clik here to view.

Using structs and functions with pointers and dynamically allocate.

I have to write a program that reads songs from a file and we don't know how many songs there are going to be in the file but we can have more than 25 mb of the size. So we have to dynamically allocate...

View Article


Image may be NSFW.
Clik here to view.

how can I randomize my forms without repetitions?

hhe, hello!! Good day! Can I ask a favor for the software that I am making? please help me, hhe, I have 10 forms to run randomly , the names of each form is from Easy1, Easy2……………………Easy10 And this...

View Article

Image may be NSFW.
Clik here to view.

how can I randomize my forms without repetitions?

hhe, hello!! Good day! Can I ask a favor for the software that I am making? please help me, hhe, I have 10 forms to run randomly , the names of each form is from Easy1, Easy2……………………Easy10 And this...

View Article

Char/String/Int Trouble

I am currently trying to make a temperature converter for my class on programming and I'm having one, nagging problem. For the user to be prompted for what temperature they need converted, they must...

View Article
Browsing all 51036 articles
Browse latest View live


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