132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for YasukiMai

Hey I am very new to programming. I am taking my first C++ class. I am a little embarrassed to ask a simple question but I am stuck. I want to code a pattern that can vary by size etc. It looks like ***** 5**** 55*** 555** 5555* or ******** …

Software Development c++
Member Avatar for finito
0
90
Member Avatar for Dragazarth

Okay I was just mucking around on python. I have no programming experience at all, and I havent yet finished school anyhow, but I was interested in python and many say that it is great and everything... So I was trying to make a code that would solve this problem …

Software Development python
Member Avatar for Dragazarth
0
163
Member Avatar for coolblazer

Im having problem with saving register staff detail. After typing all the detail, and i choose to view the staff detail - it say "Data for Staff Number that have been entered is Empty." here's my full coding: admin.h [code]#pragma once #ifndef ADMIN_H #define ADMIN_H #include<iostream> #include<string> #include "Staff.h" using …

Software Development c++ ios
Member Avatar for coolblazer
0
174
Member Avatar for toomuchtodo

Ok, I posted earlier this week about reading in data from a csv/txt file into an array. My data is huge, 100 columns and 12000+ rows. I would like to name variables by column and then plot these variables. After I read the data line by line and delimit the …

Software Development data-structure vb.net
Member Avatar for toomuchtodo
0
332
Member Avatar for WildBamaBoy

How do I get the same result from this Python script in Visual Basic? [CODE=Python] import os username = os.getenv("USERNAME") desktop = "C:\\Documents and Settings\\%s\\Desktop\\" % username print desktop #Result = C:\Documents and Settings\<MY USERNAME>\Desktop\ [/CODE] I already have this, [CODE] Public Shared username As String = My.User.Name 'Gives computer …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
144
Member Avatar for Geek_Cyborg

Hello, i need function to Convert Hex numbers to Decimal.. My string is in this form 10,11 and i want to convert it in this 1A,1B.. Thanks

Software Development visual-basic
Member Avatar for eng.jawad
0
118
Member Avatar for hawynstud

Here is what I have so far: [code] package payrollpart2; /** * * @author Darryl */ import java.util.Scanner; public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner input = new Scanner(System.in); //declare program variables String employeeName; double hourlyRate; double …

Software Development java java-netbeans
Member Avatar for hawynstud
0
145
Member Avatar for crapgarden

[COLOR="Red"]3.3 - Objects vs Types: Strings, char, int.[/COLOR] Strings used to be an array of char in C-style coding. Now they're objects in C++. Does this mean that int and char are not objects?

Software Development c++
Member Avatar for crapgarden
0
231
Member Avatar for UNOWN

Hey guys, I am working on a small program in C# and need to figure out how to do this. I tried googling it, but nothing but local text file help comes up. So what im wanting to know is, how to write text to an online textfile such as …

Software Development
Member Avatar for GAME
0
138
Member Avatar for crapgarden

[COLOR="Red"]3.2 - Defining and Differentiating Computation. [] vs ()[/COLOR] I'm trying to get a solid fix on how math computations work in C++ and how to declare their order, in particular with respect to ( ) operators. this adds to an array: [CODE] inventory[numItems++] = "armor".[/CODE] why don't I need …

Software Development c++ mathematics
Member Avatar for crapgarden
0
129
Member Avatar for gracea

Hi, I am a VB.net greenhorn so my problem might seem trivial but for me it is getting to be a Herculean and confusing task. :sad: My problem is that I am making a project where the user has to give a quiz where he/she has the choice of number …

Software Development vb.net
Member Avatar for mnmw
0
304
Member Avatar for emps

Ok, I have a header file that each of my source files includes: #ifndef MAIN_H #define MAIN_H #include <string> #include <vector> #include <sys/socket.h> using namespace std; extern string CONFIG_FILE; struct _msg { string prefix; string command; vector<string> params; }; struct _channel { bool bLocalOnly; string name; vector<string> users; string mode; …

Software Development c++ linked-list
Member Avatar for dusktreader
0
163
Member Avatar for Zinderin

Let's say I'm writing a space game (just as an example, I'm not). Let's say that in this game I want to have the ability to create 300 different kinds of ships, 500 different crew members and a 100 different planets. When I start out, there's 0 of any of …

Software Development
Member Avatar for Geekitygeek
0
145
Member Avatar for smoothe19

Why is my destructor not working properly when ran with my whole code it keeps displaying 01010101010101 etc here is my code [CODE]LinkedList::~LinkedList() { NodePointer ptr = first; while(ptr != 0){ first = ptr->next; delete ptr; ptr = first; } if (first == 0) cout << "List destroyed\n"; else cout …

Software Development c++ linked-list
Member Avatar for smoothe19
0
169
Member Avatar for w_van_heerden08

Hi guys, I'm a grade 11 I.T student and I need help.I have to create a networking application in Java,something like Mxit or Facebook, just a simpler version.I have no idea what to do and my teacher is too stuck-up to help me.All I have is a GUI.Can someone please …

Software Development gui java
Member Avatar for scrappedcola
0
134
Member Avatar for valkerye

I have a class assignment where i have to calculate the total cost of a parking garage from hours but i have to do it with a method function. So this might be a stupid question but can you read the user input values from a textbox in the function …

Software Development vb.net
Member Avatar for valkerye
0
113
Member Avatar for judithSampathwa

Hi I am trying to get information from two tables in the database but it gives an argument exception saying "Column 'SubContratorID' does not belong to table .” Which 'SubContratorID' is it referring to …?? [CODE]String query = @"Select ps.PSubContractID,s.SubContractorID,s.FirstName,s.LastName,s.Position,s.Email,s.TelNo,s.Agency From PSubContract as ps, SubContractor as s Where ps.ID=@id and …

Software Development
Member Avatar for Zinderin
0
177
Member Avatar for 1314abc

i try to compile and run seems like work perfectly but once i click the "add" button(something like save) error come out i dont know what problem with the codes [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* …

Software Development java java-swing open-source
Member Avatar for Taywin
0
112
Member Avatar for avarionist

I'm working on a simple function to read in from a file called save.txt and i need to read about 7 or 8 characters in. 4 characters are numbers that represent North south east and west respectively the other 4 characters are delimiters(i don't know why i put them in …

Software Development c++
Member Avatar for avarionist
0
156
Member Avatar for gear26926

Hi, The above code generates a window and it has a few buttons on it.That is working fine. But however the part of the code where class "FileDialog" is defined and the function "myButton5_Click" is used, it does not seem to work. The output should be such that - When …

Software Development c++ file-stream
Member Avatar for gear26926
0
208
Member Avatar for wolfeater017

[This is a really long code so im just going to put the traceback part in and where I think the problem is] [def directions(): enter=0 nwscreen() Font1 = pygame.font.SysFont('ActionIsShaded', 25) d1 = basicFont.render('Directions',False,WHITE,BLACK) d2 = Font1.render('Directions',False,WHITE,BLACK) d3 = Font1.render('ALL ANSWERS MUST BE LOWERCASE',False,RED,BLACK) d4 = Font1.render ('Press enter to …

Software Development python
Member Avatar for TrustyTony
0
185
Member Avatar for Jayavardhan

Hi, I need to get the current date without using [B]any packages or any construction methods[/B]. Simply, i want to get the current date by convert date to string. I used this code. Please find the below code... [CODE] String getDate = new SimpleDateFormat("yyy/MM/dd HH:mm:ss"); return getDate.format(date); [/CODE] But, i'm …

Software Development java
Member Avatar for Jayavardhan
0
461
Member Avatar for judithSampathwa

Hi there, In my project I have 3 folders which represent the 3 tier architecture.(the business layer, data access layer and the presentation layer) The frmMainMenu is in the presentation layer and in the presentation layer I have other folders that have other forms in it. When I try to …

Software Development c#
Member Avatar for PierlucSS
0
589
Member Avatar for **UM HASSAN**

how can i make the background image property not to be tile ( i want it to be as one picture in the middle) i am using vb.net2003 ;) thx

Software Development image vb.net
Member Avatar for RickNPhx
0
105
Member Avatar for like_bilal02

Dear Friendz Ihave face problem with null value i remove the chk from null value n sql server and when i direct save anything in table it dosen't accept null value but when i save these in my form it accept null value . i don't know why form do …

Software Development vb.net
Member Avatar for speedcat
0
187
Member Avatar for paul ince

Hello, I am quite new to swing, and I was trying the JFrame component, when this exception occurred , just when I tried to instantiate the JFrame object. It says the following: [code=java] Exception in thread "main" java.lang.NullPointerException at JFrameDemo.main(JFrameDemo.java:8) [/code] and line 8 is the following [code=java] JFrame frame …

Software Development java java-swing
Member Avatar for Stefano Mtangoo
0
955
Member Avatar for larkson

I'm writing an assessment tool that cross checks the name entered by a person with a list of names of known people blacklisted by me. So far I can only figure out how to compare a users entry with one name, effectively limiting my blacklist to one name. I'm new …

Software Development c++
Member Avatar for mrnutty
0
187
Member Avatar for al3x748769

i am new to C and i am trying to learn more as i am taking a basic class. we started out with basic programs and now we are making a tic tac toe board. i was wondering what a 8 bit binary counter would look like. i know the …

Software Development c
Member Avatar for viwenka
0
148
Member Avatar for TommyRay

Hi all, I didn't think this would be a problem, but it appears that others also search for this solution. [B]There is an annoying DING! when hitting the Enter key in a ComboBox in VB.Net[/B] so I sought solutions. Here is the solution I am working with. I created a …

Software Development vb.net
Member Avatar for TommyRay
0
949
Member Avatar for cmutzel02

I am writing a program to read ain a file. s axis -1.50000E+01 to -1.49000E+01 t axis -1.50000E+01 to -1.49000E+01 4.16402E-06 0.0077 repeat for new numbers (these values don't match those taken in below, I just pulled them out of a random part of the file) the format doesn't really …

Software Development c++
Member Avatar for cmutzel02
0
100
Member Avatar for ttboy04

How do I create a method header that takes a string as an argument and returns the characters in the argument as a set. Please only reply if you know the answer. Thanks. [CODE]public class Food { private TreeSet<String> myList = new TreeSet<String>(); public Food() { super(); myList = new …

Software Development java
Member Avatar for ttboy04
0
105
Member Avatar for TurboCoding

I have used IT++ for half a year, which is a C++ liabrary. Recently, I got a problem when I try to write the HEADER file for a class, with a member which is another class object. Here is part of my code: [CODE] class A { private: fixvec fv; …

Software Development c++
Member Avatar for TurboCoding
0
166
Member Avatar for judithSampathwa

Hi there, I want to upload files with the extension pdf, doc excel and images to the MS SQL database from a C# desktop application. I am using C#.net and not asp. I want to upload a file from a interface to the ms sql database, Hey can someone guide …

Software Development c# file-system pdf
Member Avatar for nick.crane
0
628
Member Avatar for dapcigar

Description of tasks: You are required to write a program that will calculate the total marks and the grade the student obtained on a multiple choice test paper. There are 20 questions and each question has an option A,B,C and D. Total of 30 students took the test. The correct …

Software Development c
Member Avatar for Adak
0
335
Member Avatar for scorpio26krf

I am trying to set strCustomerNumber to CustomerNumber from tblcustomers The tricky part is It has to be a specific Customer, so I have to retrieve the customerName from ddlCustomers before I can get the correct number here is my code: [CODE] Dim strCustomerNumber as new string("") strCustomerNumber = ("SELECT …

Software Development vb.net
Member Avatar for scorpio26krf
0
107
Member Avatar for Mattisc

Hello, I am trying to send files from one folder on the C drive to another using a simple C# Win forms. I have created this but unable to get it working. Can anyone help? [CODE] private void butSort1_Click(object sender, EventArgs e) { string sourceFile = @"C:\Test\test.txt"; string destinationFile = …

Software Development c#
Member Avatar for Mattisc
0
196
Member Avatar for Srcee

I should find max in a multidimensional array. But, the elements of the array are given by keyboard, and so is the size of the array. The elements are integers. So, is this correct: ;message for the user to enter the size ;reading the size i equ -1 j equ …

Software Development assembly
Member Avatar for tesuji
0
111
Member Avatar for starlight849

Hi, I am using vb.net with visual studio 2008. I have the need to have a user select a directory on a network drive to bring up a folder with a very extensive list of files. The file names within this directory are what I'm concerned with and I will …

Software Development vb.net visual-studio
Member Avatar for G_Waddell
0
137
Member Avatar for hg_fs2002

I have a text which consists of several paragraphs in which each paragraph consists of several lines. I have the number of paragraphs and now I want to store the number of lines in each paragraph in a vector.This is what I've written and doesn't work properly: additionally,a paragraph is …

Software Development c++
Member Avatar for vijayan121
0
96
Member Avatar for GDICommander

Hello! I have problems with modal MFC windows over 3dsMax. I'm popping a MFC modal window over 3dsMax (I'm programming a plugin for 3dsMax, if you mind), so I can't click on any 3dsMax window button, because the modal window is here. The modal window, by clicking on a button, …

Software Development asp.net
Member Avatar for GDICommander
0
108
Member Avatar for nwhitfield

i know it might seem a little bare but i wanna know if im on the right track so far. for most of it im making a guy and a function that will increase his lvl when xp is reached. Then i reset the xp and increase the ammount of …

Software Development c++
Member Avatar for nwhitfield
0
122
Member Avatar for Resnymph

Hello, I am trying to write a GUI in Visual C# which controls a C++ DLL, specifically getting hold of C++ objects and editing them via the C# propertygrid controls. - The first part of the question is 'is this actually possible'? I know I can use wrapper functions to …

Software Development c c# c++ gui
0
220
Member Avatar for kumarantechie

Hi, I want to decompile an python application which consits of pyc files. Since i am working in a conversion project .. from python to java i need to decompile pyc files to py files. The application contains number of pyc files. Any decompiler or free decompiling source available in …

Software Development python
Member Avatar for kumarantechie
0
155
Member Avatar for bilalb1

hi hope anyone who reads this post is doing well/will be doing well soon enough :) ... i have a small problem... i have a program in c/c++ (i am using just a few functions of c++) which creates a log of files after doing some search(its not relavent to …

Software Development c++
Member Avatar for Ancient Dragon
0
553
Member Avatar for kneel

Hello, I'm having an error in my code plz someone solve my problem. I just want to multiply the element # 1 of an object array from the element # 2 of another object of same class and so on. Plz help me. Thx Error: int MyCLass::getValue(): invalid conversion from …

Software Development c++
Member Avatar for Fbody
0
125
Member Avatar for crapgarden

[COLOR="Red"]3.1 - ARRAY arguments, char vs int.[/COLOR] It seems you pass a char OR an int to a substring of an array. Does it matter which one? ex: [CODE] char charValue = 5; int intValue = 5; string awesomeArray[9] = {"truck", "car", "boat", "table", "ocean", "cat", "board", "finicky"}; //Both of …

Software Development c++
Member Avatar for Fbody
0
122
Member Avatar for KhairilSyahrin

Can anyone teach me how to calculate a mouse click? I need to do a data insertion into MSFlexGrid. The flow is like this: 1:the data will read a text file and input all the data into column 0 2: when user wants to input again, it will be put …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
80
Member Avatar for chinee

i am trying to get the input the info so when the choices are chosen and submit is clicked the info is seen for the flower order but getting errors. if you read it you would probably get what i am trying to say but how to get it without …

Software Development gui java java-swing
Member Avatar for NormR1
0
317
Member Avatar for Victor C.

Good evening, I am having a little trouble with the outcome of my bucket list assignment. Everything seems to be working just fine, but the final outcome isn't up to par. When you enter numbers from 1-30 or 61-99 it goes into its proper place, however numbers enter in the …

Software Development java java-swing
Member Avatar for NormR1
0
176
Member Avatar for johnnyturbo3

Hello, Having a problem with 2 classes: a class that is used to go through file directories and collect the file names in a vector, the other just creates an instance of this class. This code is from an older version of the program so I know it works. However, …

Software Development c++ data-structure linked-list
Member Avatar for Fbody
0
808

The End.