132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lbgladson

I have an assignment to reverse the sequence of coins in a purse. I cannot use any methods from the Collections or Arrays Class. I have the following code but have no idea what to do from here to get the purse contents to reverse. [code] import java.util.ArrayList; public class …

Software Development java
Member Avatar for Taywin
0
172
Member Avatar for lbgladson

I have an assignment to create a class Purse and print the coins in the purse, reverse the sequence of the coins, transfer the contents of one purse to another, and compare to see if two purses have the same contents. I have the following code but the transfer is …

Software Development java perl
Member Avatar for Taywin
0
253
Member Avatar for Wilha

My goal is to output monthly cost insrance for entered employee id, but my program keeps giving me a error idk why [CODE]import sys #empfile=raw_input("Enter Emp.file Name:") #emp=sys.argv[1] #print emp #usage : run it as follows from command line. #python db.py employee.txt InsurancePlans.txt InsurancePolicies.txt def dict2(lines): dict={} for l in …

Software Development python
0
86
Member Avatar for shawntheking

So I have to create a guessing game to be played between 2-5 players. That part wasn't very difficult. I am however having LOTS of trouble with the try...catch statement. I have to have to make the program have a try catch so it doesn't throw an error if the …

Software Development java
Member Avatar for Taywin
0
1K
Member Avatar for MandrewP

I'm trying to do disk reads and writes when programming in C++ in the win32 console mode. I can create the file on disk using CreateFile(), but I can't figure out how to read or write to that file. I used the ReadFile() and WriteFile() functions but I just get …

Software Development c++ file-system
Member Avatar for MandrewP
0
382
Member Avatar for TheFearful

Hey, guys. I'm new to this forum and this is my first post ever on this site. I am currently a freshman in Penn State University and I am having trouble with my C++ class. I have a group project but have no idea where to start with this program …

Software Development c++
Member Avatar for TheFearful
0
463
Member Avatar for minimi

Here is the instruction to the assignment: [url]http://dl.dropbox.com/u/43732846/Instruction.txt[/url] I think I got up to the part to initialize array and set length to 0 but I'm not sure how to do a for loop to print. I tried like strlen(month), printf(month[i]), etc, but none of them seems to work. And …

Software Development c data-structure
Member Avatar for hkdani
0
135
Member Avatar for wissam.ashkar

Hello, I am updating a DataGridView using [CODE](dAdapter).Update(dTable);[/CODE] How to check if update is done successfully in order to display a message box.

Software Development
Member Avatar for wissam.ashkar
0
80
Member Avatar for Iphicles

Hi, is there anyone out there who has any little knowledge of how to got about getting ur program to read a .bmp file? Pls teach me or show me an example just about how to get ur program to read .bmp files Cheers Ming

Software Development c image
Member Avatar for hellihdhs
0
220
Member Avatar for r_james14

Hi There, Proberly a really simple request but im desperate for help none the same lol, I need to write some code that, takes filenames from a folder, and displays them in an order in a list. (Im using Visual Studio btw) lol. The file names are in the format …

Software Development visual-studio
Member Avatar for gusano79
0
94
Member Avatar for Zvjezdan23

This is code for the slope intercept formula y = mx + b I am supposed to find the slope (y2 - y1) / (x2 - x1) and have the user input the b for the y = mx + b in my program. Once the user does that I …

Software Development algorithm c++
Member Avatar for Zvjezdan23
0
2K
Member Avatar for ticktoc09

Another noob question here.. Im a frshman programming student and I don't have the best instructor. I've just finish doing a simple inventory system Vb6 + MS Access database. My question is how can I save the database path? because whenever I change computer from Home to School I need …

Software Development visual-basic
Member Avatar for hkdani
0
162
Member Avatar for giora88

Hello. Is there a way to move to the mouse cursor on the screen using C or C++? I am using windows vista and Microsoft visual studio 2008. I am pretty new to C so I don't know much. I have read previous threads which said that you need to …

Software Development c++ visual-studio windows-vista
Member Avatar for Narue
0
270
Member Avatar for mitchiexlolz

hello guys! we have a big problem in our database. When we input values, and retrieve them in forms, we can see them. but when we look directly into our database, we can't see it. What is the possible problem? here is our codes to add values. [CODE] Private Sub …

Software Development vb.net
Member Avatar for Mariandi
0
191
Member Avatar for ToweyLeake

When I run my program it prints out the number for the forty eighth sequence as being -132375223 when it should read 4807526976. What am I doing wrong? -Towey [code] # include <iostream> using namespace std; int main () { int x1=0; int x2=1; int fib; for (int i = …

Software Development c++
Member Avatar for ToweyLeake
0
115
Member Avatar for sasho648

I'm writing a Level Editor but my program is shows the X,Y,Z positions like DWORD(unsigned long). I want to show them like a float but I can't find a formula or function for that. If you know something please reply!

Software Development c++
Member Avatar for sasho648
0
347
Member Avatar for jen140

Hello. I've been doing a small application that will go (using only unsigned integer values) from 0 to 4026531840 and print them out. My code is next: [CODE]#include <stdio.h> #include <inttypes.h> int main(void){ uint64_t cnt; for(cnt=0;cnt<=4026531840;cnt++){ printf("%d\n",cnt); } } [/CODE] The only problem that i have is the last numbers …

Software Development c debian
Member Avatar for jen140
0
187
Member Avatar for I<LateNupurGuha

[INDENT]:icon_lol:Suppose there is a (method) [U]call stack[/U]; An [B]exception[/B] has occured in a deep level but not handled there yet; So the corresponding [I]finally block[/I] at that level is executed first and then [B]it[/B] is thrown to be propagated up through the [U]call stack[/U] and at each step if [B]it[/B] …

Software Development java
Member Avatar for I<LateNupurGuha
0
118
Member Avatar for gahhon

[CODE] public class Planet { private String planetName; private int travelDay; public Planet(){ planetName = "Earth"; travelDay = 365; } public Planet(String planetName, int travelDay){ this.planetName = planetName; this.travelDay = travelDay; } public void setPlanetName(String planetName){ this.planetName = planetName; } public String getPlanetName(){ return planetName; } public void setTravelDay(int travelDay){ …

Software Development java
Member Avatar for gahhon
0
130
Member Avatar for CalebS

I've looked into all the other threads and I am still lost. [CODE]#include<iostream> #include<cmath> using namespace std; //Prototype's ////////////////////////////// double functiony(double); double area(int, double, double); // Main ////////////////////////////// int main (void) { //Solving for y=x^3 using k as y and d as x double k; double d=0; k = functiony(d); …

Software Development c++
Member Avatar for mike_2000_17
0
167
Member Avatar for stereomatching

[code] void test(std:shared_ptr<some_type> A) {.....} [/code] would make a copy of a shared_ptr what if we pass a shared_ptr into a function like [code] void test(std:shared_ptr<some_type> const &A) {.....} [/code] Is this safe? Thanks a lot

Software Development c++
Member Avatar for stereomatching
0
190
Member Avatar for phfilly

Ola! I'm still kind of new with the whole assembly language and just need some help with this program i'm writing. What I want it to do is to ask a question -like for a number and then store that inserted number in a variable. And then test whether its …

Software Development assembly
Member Avatar for AceStryker
0
1K
Member Avatar for Zssffssz

When on the digital mars website he advertzed that their compiler could use all 80bits of a 32bit machine. What the heck does this mean?

Software Development c++
Member Avatar for Narue
0
63
Member Avatar for speak1

So I need to do this following program and I'm totally confused at the moment. Can someone please help me? Your help will be greatly appreciated. Objective: 1. Write a program that incorporates function modules 2. Use appropriate function declarations 3. Use function headers and write function procedure 4. Use …

Software Development c c# c++
Member Avatar for Zssffssz
0
465
Member Avatar for jayjay85

i need to use crossfade function to to this. i need some help please, i am new at this. any help would be great. i have done a program than makes a double image but this need to happen slowly.

Software Development python
Member Avatar for marksman123
0
611
Member Avatar for linhj

Hi All, I am tring to using the below function to read in a .txt file, which consist of a 10x10 matrix number. I just cannot find out where goes wrong, it appears such a funny number -858993460... [CODE]void readinput(int in[][MAXCOLS]) { int row ,col,ip; //Declare row,col, ip as int …

Software Development c++ file-stream
Member Avatar for linhj
0
3K
Member Avatar for Efficience

I have written a code for checking vfork in unix. But I am getting the ambiguous behavious. When I am using exit(0) in child process , output is fine i.e; output :- Before fork I am a child My name is parent child PID=> 23133 kValue => 2 ] But …

Software Development c multithreading unix
Member Avatar for Efficience
0
296
Member Avatar for kokila1234

how to automatically display data in textbox from database when primary key is added in textbox

Software Development display
Member Avatar for Mitja Bonca
0
194
Member Avatar for namratag

What is the difference between Release and Debug modes in Visual Studio while building a project?

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
208
Member Avatar for Zssffssz

Ok simple question. Google didn't bring up much and I need this. This is the question: How do I interact with non-text files in a simple console app?

Software Development c++
Member Avatar for vijayan121
0
175
Member Avatar for nikita.

I want to write a shell script to automate the ftp session, in that it should take the inputs like the server ip , username , password from a different file who path i'll pass. and also the validations that if the server path exits or not.

Software Development session shell-scripting unix
Member Avatar for nikita.
0
207
Member Avatar for aKiLa.. :)

i want to do a project using graphics in c++..i am going to start with a simple project, because i am a beginner.. plz tell me which websites to refer in order to get help on topics and to learn about graphics in c++.. thank you.. :)

Software Development c++
Member Avatar for Ancient Dragon
0
233
Member Avatar for i2u2me

Why do you think the Java language chooses to treat file data as a stream rather than as a single object?

Software Development file-stream java
Member Avatar for i2u2me
0
75
Member Avatar for bilal_fazlani

I am looking for the a simplest for of code where I can add some items to a listview. i have 4 text boxes and 4 columns in a listview.. what could be the code to put 4 values as a single row in list view.. i managed to put …

Software Development listview vb.net
Member Avatar for Reverend Jim
0
197
Member Avatar for DmytriE

I cannot spot the issue and neither can VS2010/ VS11 Developer preview edition. The code runs perfectly until allocating memory for the double pointer new_matrix. The only reason I cannot find the problem is because I've allocated space for 3 other pointers successfully. I believe I have the syntax correct …

Software Development c
Member Avatar for Narue
0
95
Member Avatar for zachattack05

I'm working on a custom textbox control that can "filter" out inappropriate input. The filter property can be: None, Numerical, LowerAlpha, UpperAlpha, Alpha, AlphaNumeric, Symbol None would function like a normal textbox Numerical would be any number key (1,2,3...) LowerAlpha would be any alphabet character as long as it is …

Software Development
Member Avatar for zachattack05
0
235
Member Avatar for ChristosK

Hello How i can read the motherboad model using code in vb? I write a program in ms access and i want to read/confirm the motherbord model on startup. Thanks in advance

Software Development visual-basic
Member Avatar for GGSoft
0
481
Member Avatar for hhheng

I'm new to Java and while trying to add a text area to the applet, found the textarea uneditable, and while trying to add the scrollbar to the textarea, found the applet will not be started. Code as below: [code=java] import java.awt.*; import javax.swing.*; import java.applet.Applet; public class AppletEditor extends …

Software Development java java-swing
Member Avatar for hiddepolen
0
416
Member Avatar for ChaseRLewis

So need to use C# to create this tool I want for a game. It will involve an interop between Excel and my own program so I can easily tweek values on some items in my program or through excel. So far it's going ok, but when I'm constructing the …

Software Development c c# c++
Member Avatar for charlybones
0
270
Member Avatar for albana

i have as a homework to do a desktop aplication using C#,it will be good if i use also and databases,plsss could anyone give me some ideas what willl be good to work on...(sorry for my english)...

Software Development
Member Avatar for ChrisHunter
0
111
Member Avatar for hmortensen

Hi All, I'm trying to bind a textbox to a listbox's selected.Content properties. The listbox displays the items as designed in the datatemplate. But I can't get a textbox to display one/any of the selectedItems properties. [B]DataTemplate[/B] [CODE] <DataTemplate x:Key="dt_Afloeser" > <Border BorderBrush="Black" BorderThickness="0.5" CornerRadius="2" Margin="2,2,2,2"> <DockPanel HorizontalAlignment="Center"> <TextBlock Name="navn" …

Software Development asp.net
Member Avatar for hmortensen
0
2K
Member Avatar for Mubusher

i am having attachments you can see the image when ever i move to mouse on Forms to Buttons so buttons shape is changed but its not clicked on form when you click the button from mouse so its not clicked it can cliked with only keyboard what its occur …

Software Development vb.net
Member Avatar for Mubusher
0
180
Member Avatar for Mike Askew

Hi all, My program is proving Kaprekar's Constant - 6174. To do this I will need to store values exactly how they come out without losing any preceding 0's which int has a habit of cutting off. For example: Number to store exactly: 0147 Int stores: 147 A googling session …

Software Development session
Member Avatar for Mike Askew
0
142
Member Avatar for stereomatching

[code] void test_rr(std::string const &lvalue) { std::cout<<"this is lvalue"<<std::endl; } void test_rr(std::string &&lvalue) { std::cout<<"this is rvalue"<<std::endl; } int main() { test_rr("this is"); //will output "this is lvalue" std::cout<<"system pause"<<std::endl; std::cin.get(); return 0; } [/code] how could I treat "this is" as rvalue reference? The easiest way I could think …

Software Development c++
Member Avatar for stereomatching
0
286
Member Avatar for praveendasika

string name = ((TextBox)grid.Rows[e.RowIndex].➥ FindControl("nameTextBox")).Text; in the above line what does this mean? ((TextBox)grid.Rows[e.RowIndex]

Software Development
Member Avatar for skatamatic
0
102
Member Avatar for nikita.

I have to run a shell script and store whatever is performed in it into a log file. the path can be altered for the log file. how can i do that ?

Software Development shell-scripting unix
Member Avatar for nikita.
0
4K
Member Avatar for ishtine18

[B]hello ! my thesis is all about language translation and im having a problem with the concatenation of strings in the textbox...because for example i input city kiss and it will display the ilocano(dialect) ili agek but when i input kiss city it still display ili agek[/B]

Software Development
Member Avatar for Iswariya
0
229
Member Avatar for beaute

Hello. I have a problem and I would love it if I could get some insight on it. I have read the forums with many answers about the subject, but I'm still having problems so I'm writing here. Basically I was following [URL="http://tom-shelton.net/index.php/2008/12/11/creating-a-managed-wrapper-for-a-lib-file/"]this[/URL] guide which is for creating Managed Wrapper …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
1K
Member Avatar for DSTR3

I'm using Visual Studio 2010, Win 7, MS Access 2010, C++, Direct ODBC, 32 bit. The first SELECT statement executes. The INSERT, SELECT, SELECT and UPDATE statements don't nay help is appreciated. Thanks. [CODE] #include <windows.h> #include <stdio.h> #include <sqlext.h> const char* DAM = "Direct ODBC"; SQLCHAR szDSN[256] = "Driver={Microsoft …

Software Development c++ microsoft-access sql
Member Avatar for Ancient Dragon
0
118
Member Avatar for ljvasil

Hi all, I wrote this somewhat simple script that is suppose to change and update polygon GRIDCODES based some rules. The shapefile is reclassified into likelihood of conversion. So the code is set up to get the GRIDCODE value of all adjacent polygons to the cursor polygon. I put these …

Software Development python
Member Avatar for Gribouillis
0
428

The End.