43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Ancient Dragon

If anyone can answer [URL="http://www.programmingforums.org/thread16958.html"]my question on PFO [/URL]I'd apprecaite an answer. I don't want to repeat it here because it is somewhat lengthy.

Software Development c++ mysql
Member Avatar for Ancient Dragon
0
82
Member Avatar for RonaldvanMeer

I'm writing a program wich is using an array -> startpoint[4] this array will be later filled by values from an other array. this is not the problem! the problem begins here: I have a class: computerPlayer.cpp with a method: getStartpoint() [code=cpp] int *startPoint[4]; // global variable int* computerPlayer::getStartpoint(){ int …

Software Development c c# c++
Member Avatar for RonaldvanMeer
0
165
Member Avatar for christiangirl

Hello, I need to test an array of chars to see if they are numbers. I am trying isdigit() but that is not working. Does anyone know how I can do this? Here is the code, it is in three seperate files. I try to test the char in the …

Software Development c++
Member Avatar for christiangirl
0
148
Member Avatar for NinjaLink

I am currently doing classes, but I am unable to print out my cout statements in the "elmo.modifyALL" function. I can get the other stuff to print correctly so far. This is my first time doing this kind of program, so I do not understand why I can't get cout …

Software Development c++
Member Avatar for NinjaLink
0
122
Member Avatar for sistasweetpea

I have an assignment and I'm stuck. The program is supposed to read in names and test scores from a data file, compute the average, and display the letter grade. This is the code that the teacher gave us in class: [CODE=cplusplus] #include <iostream> #include <cstring> #include <iomanip> // // …

Software Development c++
Member Avatar for sistasweetpea
0
116
Member Avatar for Avaviel

I'm having trouble with a program with class. When it runs, on the screen and on the file it shows one output, the last one in the input file. It USED to work, untill I tried to get fancy and add some other code... that will be below the main …

Software Development algorithm app-store c++ ios
Member Avatar for Avaviel
0
343
Member Avatar for marcosjp

Hello there! How can I convert an INT value into a string? I used the itoa function successfully in Windows: [code=c]itoa(the_int_number, the_string, 10);[/code] It worked fine in Windows (DevC++) but Linux did not recognize this function. Does anyone know another way of converting INT into char[n] in C that Linux …

Software Development c
Member Avatar for ArkM
0
9K
Member Avatar for sfrider0

Can somebody please tell me what I'm doing wrong? I am creating a TCPClinet. I have 2 errors and both of them come back to this line. [code] connectSocket.Send(System.Text.Encoding.UTF8.GetBytes(sendText)); [/code] The errors are: 1. The best overloaded method match for 'System.Text.Encoding.GetBytes(char[])' has some invalid arguments 2. Argument '1': cannot convert …

Software Development windows-server
Member Avatar for ddanbe
0
168
Member Avatar for dnmoore

I have to create a temperature conversion project using a method and driver class...... i did it b4 put only as one file , i started the driver class but when i compile i get a couple errors; the errors i get are: Degree.java:30: illegal start of expression public double …

Software Development java
Member Avatar for dnmoore
0
2K
Member Avatar for new_2_java

Hi all, I have an HashMap with key/value pair. The program processes each element of the hashMap, and should mark the HashMap element as "processed". i.e. I have the follwoing key/value pair. [code] 1/"090003453bc454" 2/"090003453bc455" 3/"090003453bc456" and so on... [/code] So, when the program process each element, it should mark …

Software Development java
Member Avatar for new_2_java
0
146
Member Avatar for mruane

I am working on a text adventure for my cis class. Just to let you know, the code is graphic, and may be offensive to those who might be a begger LOL. Anyways, my functions do not seem to work properly. I looked over them, they seem fine. where am …

Software Development python
Member Avatar for mruane
0
300
Member Avatar for cproud21

The following program is a game in which there is a pile of coins. When the loop runs two players take turns removing coins. Whoever gets the last coin wins the game. ... How can I get the looping to stop when there is a winner?? Right now it still …

Software Development c++
Member Avatar for cproud21
-1
113
Member Avatar for akira_shinizaki

Hello everyone, i am new in this forum and also in C++ programming. I just started learning C++ few months ago from my university then i stuck from some assignment they give me yesterday. I need to count number's occurrences from input data. This is the assignment : Enter 20 …

Software Development c++
Member Avatar for VernonDozier
0
94
Member Avatar for polo_coins

I made project in Console are the any way change font style in it(and there is can I change size too? Thanks Sergey

Software Development
Member Avatar for polo_coins
0
166
Member Avatar for Balinor

i wrote this up but seem to have done something wrong and honestly i cant seem to find it, it compiles just fine, but when i run i get stuck in an infinite loop. my WHILE doesnt seem to be working, i know its to do with the variable STAMINA …

Software Development c++
Member Avatar for Denniz
0
90
Member Avatar for java-clueless

I am learning to write java programs but I really am not any good. My programs run but with a whole bunch of glitches. I have to write a java application that is like an inventory program. It has to have a product class obviously but it needs to hold …

Software Development java
Member Avatar for java-clueless
0
134
Member Avatar for mrboolf

Hi all. I am trying to overload the operator+ for a SLinkedList class I created. I would like to write [ICODE]list1 = list1 + list2;[/ICODE] and obtaining that list2 is merged into list1. I thought it was simple but it didn't worked properly. I tried to simplify the problem as …

Software Development c++ linked-list
Member Avatar for mrboolf
0
265
Member Avatar for shubhang

could anyone tell me what are Armstrong numbers and pascal's pyramid.

Software Development java pascal
Member Avatar for stultuske
0
71
Member Avatar for Superstar288

hi there people i was hoping i could get some help please as im kinda stuck. ive have been asked for my uni portfolio to "accept the characters from a data file rather than from the keyboard. Extend the program to convert all the characters to upper case (excluding numeric …

Software Development c
Member Avatar for Narue
0
92
Member Avatar for joshmo

Hey all. Iam new to java and I have been trying to do something that has played me abit. I want to use an attribute or a method from a subclass and accesing it from the super class. Something like this [code] class A{ //some code } class B extends …

Software Development java
Member Avatar for Alex Edwards
0
144
Member Avatar for shubhang

I observed that many programmers do not create separate functions. They write the whole program in the main function. Doesn't this reduce its modularity? eg:[code] class abc { public static void main(String args[]) { int a=10; System.out.println(++a); } }[/code] it could also be written as:- [code] class abc { private …

Software Development java
Member Avatar for shubhang
0
102
Member Avatar for andyhopper

i am trying to create a button that will open a database from a vb6 system. I have got so far but i dont know what is meant to go instead of [B][U]Database[/U][/B] Option Explicit Dim ACC As Access.Application Private Sub btnDatabase_Click() Set ACC = New Access.Application ACC.[B][U]Database[/U][/B].Open "" ACC.Visible …

Software Development visual-basic
Member Avatar for andyhopper
0
101
Member Avatar for Tyrial

Hi there My first forum post... internet being a luxury for me and all. Okay my program is a simple database management system connecting to an access database. however i am having one annoying problem, pertaining to a datagrid and a list box. they cannot be data bound as this …

Software Development
Member Avatar for Tyrial
0
107
Member Avatar for murderotica

Hello, I've created a windows service application that monitors a folder. Whenever there's a change inside the folder (like you created a text file or renamed a folder) it will log the changes. Now my problem is to determine that the change happened to a file or a folder so …

Software Development c# file-system
Member Avatar for murderotica
0
120
Member Avatar for NinjaLink

I'm having problems in my "RemoveAt" function. I am trying to get a user to input a a position that represents a number they would like to remove from the array. Example below. For example: Current array.... 4,23,65,34,82,37,12,17,24,36,82,51 User input: [B]1[/B] (1 represents the position of what number will be …

Software Development c++
Member Avatar for NinjaLink
0
131
Member Avatar for Vallnerik25

I have some simple syntax questions about constructing a vector from an array. I just read Narue's "C and C++ timesaving tips and tricks" sticky. And I have come across something that I have seen elsewhere that I didn't really understand, and that is the following code assigns integers from …

Software Development c++
Member Avatar for Ancient Dragon
0
149
Member Avatar for sfrider0

Hey. I'm new to C#. I need to enter data into textbox1. Then press button1, then the text in textbox1 is displayed in textbox2. I'm using Visual Studio 2005. Any help would be greatly appreciated. Can I do this in design view?

Software Development visual-studio
Member Avatar for sfrider0
0
110
Member Avatar for afg_91320

i have this code here that i have written out and im i want to convert it using functions. basically it is a geometry calculator that will let you calculate the area for any geometric object (ie rectangle, cirlce, triangle) basically i have to rewrite the code and add a …

Software Development c++
Member Avatar for dumparun
0
169
Member Avatar for Trekker182

What's the best command and line options to use if I'm working with a text file that has spaces pretty much inside each description, field? They are not all uniform in each column and I need to extract them. I've already got rid of the tabs with the tr command …

Software Development shell-scripting unix
Member Avatar for eggi
0
102
Member Avatar for Mike_99

Hello Ok P1.2 is connected to a two external devices if I write a “1” to P1.2 and transistor B is OFF and transistor C is ON and I did MOV C, P1.2 instruction c = 1 right ? now since c = 1 is it because its ON or …

Software Development assembly
Member Avatar for Mike_99
0
122
Member Avatar for BestJewSinceJC

All I can think is that there's something fundamentally wrong with how I programmed my GUIs. I have a program that initially displays a GUI which has 6 buttons. Each of these buttons, when clicked, displays a GUI. One of these GUIs in particular is a JTable of "Teams". Each …

Software Development gui java
Member Avatar for BestJewSinceJC
0
776
Member Avatar for graphpaper

Request for help from Python beginner: I don't want you to do the work for me, just some help to know where my mistakes are and how to correct them. I am trying to code a program to convert any decimal number into binary. In the case of an infinitely …

Software Development python
Member Avatar for graphpaper
0
122
Member Avatar for rapture

ok, I'm asking another question now.... Previously I had code to add the requester and asignee emails, if the are both empty then I need to build the list. Here is my code: [code] private string BuildUserList(int p_intSendToRoleID) { DataSet dstUsers = new DataSet(); …

Software Development dataset user-interface
Member Avatar for rapture
0
127
Member Avatar for mathrules

I am writing a program that reads words from a file and uses a binary search to determine how many compares the program does while searching for a word that the user inputs. I got everything worked out except an issue I am having with me if statment in my …

Software Development c++
Member Avatar for mathrules
0
121
Member Avatar for onidarksheik

Like a lot of people here I'm fairly new at using Java and I'm having difficulties using equals (==) statements. I need need to use the if statement to say "Do you have any data to enter?", if (input == "yes") then continue with the loop. obviously this doesn't work …

Software Development java
Member Avatar for onidarksheik
0
125
Member Avatar for DemonGal711

Dumb question really but still wanted to know. In Microsoft Word, they give you some symbols like the arrows (← ↑ → ↓) and black space(█)which are not in ASCII. Is it possible to some how tell the compiler to use these symbols even if they aren't in ASCII? If …

Software Development c++
Member Avatar for DemonGal711
0
88
Member Avatar for rapture

I'm having problem in my conversion of a case statement from VB.Net to C# and need some help. I'm not reading the right material or I'm missing something somewhere . . . Here is what I have: [code] switch (true) { //Case strRequesterEmail <> "" And strAssigneeEmail <> "" case …

Software Development vb.net
Member Avatar for rapture
0
100
Member Avatar for polo_coins

I want use this option do I must know how to add DLL files ? Thanks Sergey:idea:

Software Development
Member Avatar for polo_coins
0
65
Member Avatar for lllllIllIlllI

Hi I have been mucking around with VPython for a bit now and i can use it for basic 3D Python but i have not yet worked out how to do things that arent the usual, add square, add arrow, add sphere. So i was wondering if it was even …

Software Development python
Member Avatar for ZZucker
0
527
Member Avatar for jared_masc

just having a bit of an issue on a simple problem, m meant to read in a string and return the characters using the fgets method, this is what i have come up with, i get wierd outputs, ex commas, etc, cn sum1 help me plz [CODE] #include <stdio.h> #include …

Software Development c
Member Avatar for HiHe
0
156
Member Avatar for staufa

I'm getting an unexpected error for my piece of code. It seems like a new line character is added into the string once is it called. Well the purpose of my lil code is to read characters from the keyboard using the fgets function and then convert it into pig …

Software Development c
Member Avatar for HiHe
0
190
Member Avatar for Traicey

I wana bind datagrid with data from multiple tables, for example, I need a student name from student table, Student's Account number, Credit Available, Balance, etc from Account Table, name of the Cashier who processed the payment from Cashier Table, so I wana show those details in one datagrid any …

Software Development
Member Avatar for Traicey
0
85
Member Avatar for dinilkarun

Hi All, I have developed an application in Python and the UI is developed in BOA constructor. I have placed a gauge(Progress Bar) on the frame to let user know much of processing is done. With my observation, I have noticed that the application takes about 50 seconds to complete …

Software Development python
Member Avatar for dinilkarun
0
146
Member Avatar for Liszt

I will try to catch a few idéas of how to check changes in a large number of files. I dont know what oppurtunities there is to do that. I will have a folder that contains perheps thousands of files wich will be written to randomly. How is it possible …

Software Development c++
Member Avatar for Liszt
0
85
Member Avatar for Devlan

The comments are running willy-nilly, but at least in the pre-view mode it helps to click "Toggle Plain Text". [ICODE]if wish == 1: #Menu option word = input("Enter word: ") description = input("Enter description: ") print print tuplelist.append((word,description)) #tuplelist is originally defined as simply [] main_dictuples(tuplelist) #Returns the function for …

Software Development python
Member Avatar for Devlan
0
142
Member Avatar for redflame777

Can some one help me with the sort fuction problem I am having? I do not know how to fix it. It compiles right but will not run. Here is what I have so far: [code] public int compareTo(Object p) { final Product o = (Product)p; // make it a …

Software Development java
Member Avatar for redflame777
0
93
Member Avatar for animefun2

[CODE] program Q2 (Input,Output); var X,Y,T1,T2 : Integer; Flag1,Flag2,Flag3 : Boolean; SquareRoot,CubeRoot,Z,D1,D2 : Real; begin X := 1; Flag1 := True; Flag2 := False; Flag3 := False; while Flag1 do begin Y := X-1; SquareRoot := Sqrt(Y); T1 := Trunc(SquareRoot); D1 := SquareRoot - T1; if(D1>0) then Flag2 := False; …

Software Development pascal
Member Avatar for animefun2
0
1K
Member Avatar for kyeong

This project is mainly GCD and validating the error from user input. I got the GCD working correctly, but not the errors. Here's guidelines to validate the errors. [QUOTE]-Provide a function to get a nonzero positive integer from the keyboard and return it to the caller. int get_input() -If input …

Software Development c
Member Avatar for Aia
0
160
Member Avatar for serkan sendur

in visual c# i used to resolve namespaces by right clicking on the class name, do you know how to do the same in c++? thanks.

Software Development c++
Member Avatar for Ancient Dragon
0
247
Member Avatar for buddha527

I am going back through some old code I wrote last year during school to try and refresh myself for upcoming classes. This one code I went back and tried to build it and I receive this following error: error C2059: syntax error : 'return'. I am not sure why …

Software Development c++
Member Avatar for buddha527
0
262

The End.