132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for maybnxtseasn

[CODE]class Cents { private: int m_nCents; public: Cents(int nCents=0) { m_nCents = nCents; } // Copy constructor Cents(const Cents &cSource) { m_nCents = cSource.m_nCents; } };[/CODE] will the copy constuctor still work properly if i had decided to implement it was follows [CODE]class Cents { private: int m_nCents; public: Cents(int …

Software Development c++
Member Avatar for Fbody
0
96
Member Avatar for andimiami

Hi! I am trying to write a method w/i a larger program, and it's purpose is to read in a section of the string between " " and then within that section split each subsection apart if it contains spaces and matches a particular RegEx and if a space is …

Software Development java regex
Member Avatar for hfx642
0
110
Member Avatar for Tom_Weston

I have no idea how this would be done, but how would I check the amount of line that exist in a text file. [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int main () { string line; ifstream myfile ("example.txt"); if (myfile.is_open()) { while ( myfile.good() ) …

Software Development c++
Member Avatar for L7Sqr
0
104
Member Avatar for giancan

Dear ALL, I have a similar problem with a string/replacement 132435 321350 35465162 6561516 546516 654613 65462133 6584652 and so on for some hundreds (!!) raws. What is the best way to edit this textfile to have something like this? 132435,-321350,35465162,-6561516 546516,-654613,65462133,-6584652 Basically, I have to change the 'double space' …

Software Development python
Member Avatar for giancan
0
141
Member Avatar for l0v3csci

Having trouble computing the number of occupied neighbors each cell in the array has. Any help would be greatly appreciated. [CODE] Array[rows][cols-1] Array[rows+1][cols-1] Array[rows-1][cols] Array[rows][cols] Array[rows+1][cols] Array[rows-1][cols+1] Array[rows][cols+1] Array[rows+1][cols+1] [/CODE]

Software Development c c# c++
Member Avatar for Fbody
0
8K
Member Avatar for moonknightt

Design and implement a stringed musical instrument class using the following guidelines: a. Data fields for your instrument should include number of strings, an array of string names representing string names (e.g. E,A,D,G), and boolean fields to determine if the instrument is tuned, and if the instrument is currently playing. …

Software Development java
Member Avatar for peter_budo
0
283
Member Avatar for SasseMan

Hello! I've written some swing components for which I use timing framework to make some simple animations that hopefully are going to enchance usability. What I am doing is essentially setting the bounds of JPanels for each timing event to animate something that moves and resizes. I also change transparency …

Software Development java java-swing
Member Avatar for JamesCherrill
0
129
Member Avatar for ChaosKnight11

Hi, I started with C++ development recently, and I think I'm ready to start building GUIs for my apps. I'm thinking about using Qt, since it is the most popular C++ GUI library, but the licensing is really confusing, and there isn't a lawyer nearby that understands software licensing who …

Software Development c++ gui qt
Member Avatar for Stefano Mtangoo
0
328
Member Avatar for alone882

when I start program I get error "Label not definied" in GoTo Resend line module: Public Declare Sub UrlMkSetSessionOption Lib "urlmon.dll" _ (ByVal dwOption As Long, ByRef pBuffer As Any, _ ByVal dwBufferLength As Long, ByVal dwReserved As Long) Public Type INTERNET_PROXY_INFO dwAccessType As Long lpszProxy As String lpszProxyBypass As …

Software Development visual-basic
Member Avatar for alone882
0
157
Member Avatar for Onlineshade

Can any one say how to run a java program in Notepad. I have installed JDK 7 and Notepad++ also. But when I run a program in notepad it does not run. Actually I am a newer in notepad using. I have used Netbean IDE. But now I wish to …

Software Development ide java
Member Avatar for Onlineshade
0
187
Member Avatar for meawesome

Hey guys I'm in 11th std and we are supposed to do a C++ project on a topic called FUNCTIONS.What are they?

Software Development c++
Member Avatar for Ancient Dragon
0
71
Member Avatar for <LDJ>

Hey guys, new to the forum, but am in need of some help. I am quite new to Python, but want to be able to program a simple script that basically does three things: -1. Finds a string of text in an .xml file (the length of the string, and …

Software Development iphone python xml
Member Avatar for JoshuaBurleson
0
536
Member Avatar for Nathan_11

i have this array code that would give the sum of the random numbers in the columns, however i could not figure out how to display the sum of the rows.. can someone help.. Thanks a lot... [code]import java.util.*; public class tabulated { public static void main(String[]args){ Random rand=new Random(); …

Software Development java
Member Avatar for Taywin
0
139
Member Avatar for ria_ria

[code]package rolldice; import java.awt.*; import javax.swing.*; public class Die extends JComponent { private static final int SPOT_DIAM = 9; private int _faceValue; public Die() { setPreferredSize(new Dimension(60,60)); roll(); } public int roll() { int val = (int)(6*Math.random() + 1); setValue(val); return val; } public int getValue() { return _faceValue; } …

Software Development java java-swing
Member Avatar for Taywin
0
180
Member Avatar for ethupbolt

This is a loong story, if you are a student in high school, you might have the idea what "FBLA" is. Let me just state my questions: ( Keep that in mind, i learn vb.net for almost half an year, dont know how to do the data base yet) So …

Software Development career vb.net
Member Avatar for ethupbolt
0
139
Member Avatar for DoubleZ

Hello guys! Basically I have this basic homework, the program must check if the digit sum of one of the 3 inputted integers is equal to the difference of 2 others. So if A = 56, B = 33 and C = 22, the program should output 56, cause 5+6 …

Software Development c++
Member Avatar for DoubleZ
0
357
Member Avatar for london-G

Hello everyone, I am currently learning Java. I find it very hard to use string variable. Does string variables need to be declared differently? Let me explain more: I have a program(in blueJ) which reads a name and returns it. [CODE] public class ReadName { // instance variables - replace …

Software Development java
Member Avatar for Taywin
0
154
Member Avatar for _electricblue

[CODE]#include <iostream> #include <fstream> using namespace std; int underPopulation; // Any cell with less than <underPopulation> liviving neighbors dies. int overCrowding; // Any cell with more than <overCrowding> living neighbors dies. int minNeighborsToLive; // Any cell with <minNeighborsToLive> living neighbors lives. int reproduction; // Any dead cell with <reproduction> living …

Software Development c++
Member Avatar for Fbody
0
900
Member Avatar for cfrutos

Hello. I am new to programming and I am trying to find a way to sort an array of numbers. For Example, if I have 30 textboxes with a number inside, I think i could insert the numbers to this array using a For...Next statement. But then, I would like …

Software Development visual-basic
Member Avatar for jeremiahballos
0
1K
Member Avatar for ajayb

I am trying to do remote function call in c++. The scenario is like this. There are two programs running say P1 and P2. P1 is trying to call a function implemented in P2. The program P1 calls a function using an object which will make a call to a …

Software Development c++
Member Avatar for sundip
0
350
Member Avatar for manaila

I have recently come along a struct of this sort: [CODE]struct Context { Context(): addTitle(false) { } bool addTitle; std::string title; };[/CODE] It looked strange, especially the [B][I]Context(): addTitle(false) { }[/I][/B] part. Can anyone please explain it for me.

Software Development c
Member Avatar for Moschops
0
90
Member Avatar for Ruchi224

Hello !! Sorry to bother you again.. I am making a windows app using vb.net, ms access 2003 and vs 2008.. The form i have is named BOM, it contains a datagridview that has checkboxes.. The user needs to select a row by checking on the checkbox.. These selected rows …

Software Development vb.net
Member Avatar for Ruchi224
0
112
Member Avatar for prestige9

Dennis Ritchie died at age 70. Great loss the creator of C and co-inventor of Unix.Few people can truly say they changed the world. And Dennis certainly is one of the few. RIP Dennis, but also thanks for making the world in which we live in today! Thank you Dennis …

Software Development c unix
Member Avatar for MonsieurPointer
0
123
Member Avatar for fhau013

i really don't know how to slove the erro in my program.. ..can you please help me?? thank you in advance ,.. [CODE]Public Class Form1 Dim con As New OleDb.OleDbConnection Dim cmd As New OleDb.OleDbCommand Dim da As New OleDb.OleDbDataAdapter Dim ds As New DataSet Dim sql As String Dim …

Software Development dataset open-source vb.net
Member Avatar for fhau013
0
115
Member Avatar for Jazerix

Hi I just set up my IP Board. Now i want to retrieve some of the data via mysql, so far I have no problem getting a table into a datagridview, but what do i do to get a value from a table right now i got SELECT * FROM …

Software Development c# mysql
Member Avatar for mikev2
0
111
Member Avatar for liverpiece

How to write a tic tac toe game program in c language using int char array with the help of for & while loop

Software Development c
Member Avatar for liverpiece
0
86
Member Avatar for Cyber-SEO

I've been working with an older programmer who's coding an IVR solution. It's running on Windows 2000 and is connected to a T1 (we have internet access) through the machine his code is running on. I've been trying to get him to request information from our main web server via …

Software Development c++ first-post web-server windows-server
Member Avatar for vasava
0
831
Member Avatar for Siimont

Hello! I'm doing a calculator in c# and I have one problem. I can't get the "%" button to work. I want it to work just like microsofts calculator and it would be great if annyone could help me! :) Its the code for how to calculate it I need!

Software Development c c# c++
Member Avatar for aadisabri
0
2K
Member Avatar for jesz

Write a program that computes XN where X is a floating point number and N is a positive integer. The program informs the user that N must be positive if the user enters a negative value. Of course, XN = X * X * X * ... * X -------------------- …

Software Development c++
Member Avatar for Moschops
0
115
Member Avatar for aanders5

Ok, so basically I made a little image of what is supposed to happen. The goal is that there is a JComboBox, and below it is a Jpanel that updates when different options are selected from the JComboBox, there are about 6-7 different forms/options that each appear when a different …

Software Development gui java
Member Avatar for mKorbel
0
113
Member Avatar for bhagawatshinde

Hey hi all, I have an problem to assign a startup form in vb.net . I have three forms 1) Registration Form 2) Login Form 3) Main Form Firstly i have set set startup form as registration in properties =>Application after registartion completed or saved i am displaying the Login …

Software Development vb.net
Member Avatar for bhagawatshinde
0
288
Member Avatar for Azurit

Hi. In my bash script I have a loop which downloads a few files in the background with 'wget'. How can I make my script wait until all downloads are complete before it goes on? I guess I have to use the 'wait' command after the loop in some way? …

Software Development shell-scripting
Member Avatar for ennoil
0
2K
Member Avatar for GottaLove

Hi , Assuming I have a text file containing numbers , exp : 1_234 And i want to store 1 as int ID1, 234 as ID2. How can I skip underscore "_" ? ifstream infile; infile >> ID1 >> ID2 , ??? I'm still not sure Thanks .

Software Development c++
Member Avatar for WaltP
0
163
Member Avatar for Dexxta27

This program is supposed to output some shapes using the GUI. I can't get it to actually output the shapes, but the panel shows up fine. Could someone show me what I am doing wrong? This one does the Panel and all that other stuff. [CODE]package pregui; import java.awt.Color; import …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
136
Member Avatar for eagles39

I have written a function to place mines. I need 'X' to be in array position [0][0] I cannot randomize so it does not overlap the mines b/c I can have only four mines in a [4][5] array. The problem I am having so that it checks to see if …

Software Development c
Member Avatar for WaltP
0
423
Member Avatar for pradeep_java

If EOF (End of File)flag in Java like there is in .NET. If yes in which class is it present. The problem I am facing is that i cannot edit the input file and the values are present in very alternate line. Therefore I cannot ensure whether the entire file …

Software Development java
Member Avatar for pradeep_java
0
589
Member Avatar for lolwaht
Member Avatar for johnt68

Hello, I am trying to use a TryParse as a validation for a float in a windows form temperature converter web app. I am getting the error [COLOR="Red"]No overload for method 'TryParse' takes 1 arguments.[/COLOR] The error shows here (float.TryParse(txtInitialTemp.Text)) and I am guessing this means that I am missing …

Software Development
Member Avatar for arunkumars
0
2K
Member Avatar for ceyezumma

Hello. Is there someone with experience using One Jar or any other technique to create an exe. file from a Netbeans project with a lib full of .jar dependencies. I am useing the One Jar technique and I am not having an success creating the manifest. Thanks Steve

Software Development java
Member Avatar for peter_budo
0
168
Member Avatar for cigoL..:)

HI , I'm currently creating a system for medical record for our school project i was wondering , if someone could help me.. i always get this error " Couldn't find 'C:/User/...' " i coudnt retrieve the filename of the picture so that i can store it in my database …

Software Development vb.net
Member Avatar for Pgmer
0
122
Member Avatar for hujiba

[CODE]#include <iostream> #include <iomanip> #include <cmath> #include <fstream> #include <string> #include <vector> #include <cstdlib> using namespace std; /** Test case 1: test words that start with a vowel. When inputting the words air and ear, then outputs are airay and earay. Test case 2: test words that start with a …

Software Development c++ visual-studio
Member Avatar for hujiba
0
121
Member Avatar for trantran

This is a frustating problem likely experienced by everyone and therefore there (might) be now a "perfect" solution, but my limited skills have impeded me from finding it. 1) I created a plain vanilla text_class that automatically relocates itself when needed. 2) I want to use my text_class with Win32 …

Software Development c++
Member Avatar for mike_2000_17
0
101
Member Avatar for cijeh90

Purpose: To practice writing a simple well-documented (lots of comments) C++ program using repetition structures (loops). Assignment: The power of a repetition structure lies in the fact that a section of code can be executed several times (often using different data) in the same program run. Modify, Laboratory Assignment # …

Software Development c++ data-structure
Member Avatar for azwan91
0
313
Member Avatar for Tom_Weston

I was just wondering, how to check how many 't's there are in the sentence? [CODE] #include <iostream> #include <string> using namespace std; int main() { string test = "The man played with the ball in his backyard."; return 0; } [/CODE]

Software Development c++
Member Avatar for mrnutty
0
104
Member Avatar for trantran

It seems easy to make sure that an object can only be created on the stack and not on the heap (by simply marking private operator new), but is it possible to do the opposite: only permitting the creation of an object on the heap (with operator new) and *not* …

Software Development c++
Member Avatar for mike_2000_17
0
166
Member Avatar for Zssffssz

I am MAD. Google was useless in this sense. I want to make a header file/ external reusable .cpp. AND I WANT EVERY LITTLE DETAIL. I just can't find anything. I just want to put a few functions I use all the time in it. PLEASE... Great now I'm sad. …

Software Development c++
Member Avatar for Zssffssz
0
139
Member Avatar for LevyDee

Ive been trying to understand this subject for two days now, but can't seem to get it working. My setup is two consoles, a Server console, and a server message board console. The Server message board is a child process of my Server console. The Server will send messages to …

Software Development c++
Member Avatar for LevyDee
0
205
Member Avatar for jonjacob_33_0

[CODE]def toNumbers(strList): for char in strList: return strList[0:len(char)] def main(): sttr = ['120','125'] print(toNumbers(sttr)) main() [/CODE] The output is: ['120','125'] I want the output to read: 120 125 <-- without the brackets and quotes I'm supposed to take a list of numbers (as strings) and simply return the same numbers …

Software Development python
Member Avatar for JoshuaBurleson
0
822
Member Avatar for BobTheLob

Hey, so I'm having some difficulty getting my make file to work. When I try to make, I get this: [CODE]andrew@Samantha ~/Documents/OS_Projects/Chapter 6 $ ls Makefile Makefile_old semaphore.c andrew@Samantha ~/Documents/OS_Projects/Chapter 6 $ make make -C /lib/modules/2.6.38-8-generic/build SUBDIRS=/home/andrew/Documents/OS_Projects/Chapter 6 modules make[1]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic' make[1]: *** No rule to make target …

Software Development c linux-kernel ubuntu
Member Avatar for BobTheLob
0
173
Member Avatar for infantheartlyje

Hi folks, [CODE] int a=10,b=5,tmp; tmp=a; a=b; b=tmp; [/CODE] This is ordinary swap. I want to do this swap to the structure variables. And how to free the memory of tmp structure variable after swapping.

Software Development c
Member Avatar for WaltP
0
226

The End.