132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Member 785160

So hopefully I am aloud to post this here. I am doing great in class but this chapter and especially this programming challenge has got me stumped. So I am in need of help. Heres the question: Create an application that when a user enters a positive integer value in …

Software Development vb.net
Member Avatar for wolfrain63
0
1K
Member Avatar for theemerchant

Can anyone please help me on this? The server is supposed to see which computers are online and which are not. if the workstation are not online the computer should not be seen on the server's list but if it open again the computer name should appear on the list. …

Software Development client-server dns vb.net
Member Avatar for Teme64
0
119
Member Avatar for arete

I'm trying Euler problem 3 on [url]http://projecteuler.net/[/url] for fun. I think I have a program that works (with very small numbers), but it takes too long. Can anyone give me some hints to improve speed? [CODE] /** * The prime factors of 13195 are 5, 7, 13 and 29. * …

Software Development java
Member Avatar for Taywin
0
153
Member Avatar for Dennis M.

Hey guys, Today I find myself stuck working on a small project. I am reading information from a pipe and want to output that information to a HWND. The HWND is already created and I'm using ::SetDlgItemTextA() to properly append the data within the multi-line "edit" box. This kind of …

Software Development c++ gui
Member Avatar for Dennis M.
0
109
Member Avatar for MrBentley

[CODE]#include <stdio.h> #include <string.h> #include <ctype.h> int getemail (char * email); int getfirstname (char* firstname); int getlastname(char * lastname); int getphonenumber (char * phone); void main () { char email[30]; char firstname[80]; char lastname[80]; char phone[15]; int namevalid; do { namevalid=getfirstname(firstname); if (namevalid ==1){ printf("You entered: %s, A good name\n",firstname); …

Software Development c
Member Avatar for jonsca
0
211
Member Avatar for Rickay

I am fairly new to programming but have been working on putting together a group of functions into one program. It is coming along nicely, but for some reason I can't get the loop on the divisibility function to work properly. When you prompt it to quit to return to …

Software Development c++
Member Avatar for jonsca
0
172
Member Avatar for sisterjo

#include <fstream> #include <iostream> #include <iomanip> int main() { int index; int counter=0; double comparison_variable; float numbers; double array_numbers[10]; // an array with 10 floating points for(index=0; index < 10; index++) { cout <<"enter array_numbers"<< (index +1)<<":" ; ERROR: undeclared (first use this function cin >>array_numbers[index]; if(index > 0) { …

Software Development c++
Member Avatar for tesuji
0
101
Member Avatar for genie0582

Hi, I use Runge Kutta to solve for ODEs. (Thanks for someone who provided this runge kutta code. I'm sorry if I didn't put a credit here) I was wondering why when I set TIME 75, the result of y[3] becomes negative at the time around 70+. it is supposed …

Software Development c
Member Avatar for tesuji
0
117
Member Avatar for Andreas5

Hello again, i just finished excersise 11-6 in Accelerated C++. Through this chapter the book emulates a simplified vector class, and as a excersise i have written an erase() member function. My solution allocates new memory, with the size of the original minus the size of what i erase. Then …

Software Development c++ storage
Member Avatar for Andreas5
0
190
Member Avatar for Duki

Hey everyone, I have an excel file I'm trying to work with. I can open it, write to it, and save it fine. But now I'm trying to work with adding sheets, and modifying the names of those sheets. For some reason though, my app keeps locking my excel files. …

Software Development
Member Avatar for nick.crane
0
107
Member Avatar for maria99

Hi I run a c++ program in VC++ 2008 expression edition. The program was running perpectly in VC++ 6.0 edition. But when i execute the program in VC++ 2008 expression edition, the following error is shown Debug assertion failed Expression: Vector subscription out of range. I define the two dimentional …

Software Development c++
Member Avatar for maria99
0
383
Member Avatar for Duki

Hey everyone, Does anyone know how to specify which sheet you're going to be modifying in an exel worksheet? For example, if I have an Excel file that has 5 sheets, and I want to modify (4,7) on sheet 3, how would I do that? Here's what I have so …

Software Development
Member Avatar for nick.crane
0
207
Member Avatar for vlad44

hi everbody, i;ve made a file of size 128MB and fill it with nulls except for a part whose offset is (655424) i fill it with integer numbers from 1 to 129407 then i try to read an object of structure from it where that structure consists of four integer …

Software Development c++ data-structure file-system ios
Member Avatar for vlad44
0
148
Member Avatar for neotaunter

Please help... This is driving me nuts. I have been searching for an answer to this for a few days now. In c... How do you stop a line feed or new line after pressing enter for an input. I want the printed information to appear on the same line …

Software Development c
Member Avatar for Ancient Dragon
0
3K
Member Avatar for Mr Programmer

Hi... :) I have only [B]1 LABEL[/B] in my form. There is [B]no text in Label1[/B]. I want that when i run the project, the label has any [B]word or number[/B] in it like '[B]1[/B]'. I want that when i run the project [B]AGAIN[/B], the [B]word or number[/B] in the …

Software Development vb.net
Member Avatar for trpsjt2008
0
119
Member Avatar for cleve23

i saw from this forum on how to make line number in python but where should i paste the code into???i pasted the code in my gui code and no numbers appear out??Can anyone help me???i am a beginner in this. Thanks. [CODE]import wx,os,re ID_OPEN=102 ID_SAVE=103 ID_SaveAS=104 class MainWindow(wx.Frame): def …

Software Development gui python
Member Avatar for vegaseat
0
595
Member Avatar for RaniThomas

Hi All, Can i Compile a java program without a single line in a main method. If s, how it works. Please explain. Help Me.

Software Development java
Member Avatar for Taywin
0
158
Member Avatar for gampalu

Hi, I am trying to load an image into an applet, however unsuccessfully. What's wrong here? [CODE]package sess31; // Import the AWT graphics package import java.awt.*; import java.applet.*; public class myownapplet extends Applet { Image image; public void init() { // Load image //image = getImage(getDocumentBase(), "show14.gif"); } public void …

Software Development image java
Member Avatar for Alimuzzaman
0
695
Member Avatar for kalpa23

c# ,webforms,vs2003, frames i have a web form that have two frames top frame and main frame and the top frame contains all the links to the pages wich is loaded in the main frame and lets say i have 2 web forms (webform1 & webform 2. my problem is …

Software Development
Member Avatar for nick.crane
0
244
Member Avatar for Dan08

Is there a way to delete every n bytes from one point to the first byte? This s quite confusing. What I've done: [CODE]a = open("file.txt","r") b = a.read() a.close() findit = "WIN - PLACE" texto = b.find(findit)[/CODE] And now I need to delete everything before "WIN - PLACE", its …

Software Development python
Member Avatar for TrustyTony
0
180
Member Avatar for chinee

i created a flash screen but all i could get is a blue screen not even the picture is comin up and not even the menu is coming up.and plus there are errors from place order to change order with the variable and the equal sign. so can any one …

Software Development flash java java-swing
Member Avatar for NormR1
0
250
Member Avatar for doomas10

Hello all, Quick question-i am trying to write a programs whcih calculates the average of the numeric values of words that appear multiple times (if a word appears more than once then i want the average of its values). I do not get an error but instead only the sum …

Software Development python
Member Avatar for woooee
0
120
Member Avatar for Derrin

Hello everyone and thanks in advance for your help. I am having trouble with a piece of java code for class and have asked the insructor for help and he has only helped in confusing me further. The assignment was due Sunday and I have been in the hospital since …

Software Development api gui ide java java-netbeans java-swing
Member Avatar for JamesCherrill
0
178
Member Avatar for rayborn66

Hey guys need as much help as you can give me cause I need to turn this in by midnight. I am trying to do this: You are to write a program that will input English text translate it into Pig Latin, then output the result to a file Pig …

Software Development c++
Member Avatar for Aranarth
0
778
Member Avatar for bbman

Hey, How do I use the Windows forms designer, and produce native code?

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
103
Member Avatar for anerchy

[CODE]private void checkBox1_CheckedChanged(object sender, EventArgs e) { sayi = double.Parse(textBox1.Text); sayi = sayi * 2; string a; a = sayi.ToString(); textBox1.Text = a; }[/CODE] here's a little code. when I enter a number and click on the checkbox,it multiplies the number by 2. but when I toggle it, it does …

Software Development
Member Avatar for anerchy
0
75
Member Avatar for bbman

Hi, folks. I'm not a C# programmer, but for now I have the task of translating a short PHP script into C#, and I'm hoping someone here will be able to help me. The goal of the script is to bundle and minify JS and CSS files on the fly. …

Software Development html-css web-server
Member Avatar for nav33n
0
380
Member Avatar for thewannabe

Hello there. My aim is to use the Flickr API to extract details of only one photograph given a set of keywords. I have the request URL which (in a browser) returns XML much like the following: [CODE]<rsp stat="ok"> <photos page="1" pages="8951" perpage="100" total="895061"> <photo id="4503248539" owner="33965274@N08" secret="b60e5fcc27" server="2774" farm="3" …

Software Development api xml
Member Avatar for microtrends
0
313
Member Avatar for shena

Hi friends, I have a form with 8 textfields. Textfield1 is combo box. Thus, when user chooses an item, Textfield2 and Textfield3 automatically retrieve value from DB and fill in the textfields (in lostfocus event). Then, user will add running number behind Textfield3. After that, fill in the rest of …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
188
Member Avatar for Pokenerd

Hi guys, I'm having a bit of trouble with a bit of trig in C#. I've written code similar to this in actionscript3 (flash), but it is giving me issues in C#. I am not receiving errors, but all the shapes I rotate are somewhat screwed up. Here is the …

Software Development flash
Member Avatar for nick.crane
0
906
Member Avatar for patr1c1a

I'm trying to update an Access database by using an OLE connection, retrieving the information from textboxes where the user enters the new information. All the fields in my Access table are required fields, so I have validated that some info is entered in each one of the textboxes and …

Software Development sql vb.net visual-studio
Member Avatar for G_Waddell
0
186
Member Avatar for santoshj.1983

There is a problem like I have 3 arrays i,j, & k ( the array count can be anything) i j k _____________ 2 4 7 3 5 8 6 9 A combination has to be created like (2,4,7) , (2,4,8) , (2,4,9) , (2,5,7) , (2,5,8) , (2,5,9) , …

Software Development
Member Avatar for Lusiphur
0
86
Member Avatar for moddie

Hi, I'm trying to create an applet that allows users to login with their usernames/passwords. Users will also be allowed to register a new account. Question is, how do i create this? Where do i store the username and passwords? Thanks in advance

Software Development java
Member Avatar for NormR1
0
144
Member Avatar for dhawalchauhan

Hi I need an urgent help...... I Have made a project on C# where i have use MS-SQL as a database....after that i have published the program which creats exe of my program.......after creating exe 1) I download .net framework 3.5 to friends computer. 2) Then i install MS_SQL Server …

Software Development c# sql
Member Avatar for srikaaanth
0
88
Member Avatar for csha_cs508

//Program that computes for the salary of the employee [CODE]#include <iostream> using namespace std; int main() { int EmployeeCode; float WeeklySalary, HourlyWage, NumHoursWorked, Overtime; cout<<"Enter Employee Code: "; cin>>EmployeeCode; if (EmployeeCode==1) { cout<<"Enter Weekly Salary: $ "; cin>>WeeklySalary; WeeklySalary = WeeklySalary; cout<<"Weekly Salary is: $ "<<WeeklySalary; } else if (EmployeeCode==2) …

Software Development c++
Member Avatar for Fbody
0
2K
Member Avatar for wiegmale

[CODE]#ifndef ARRAYLIST_H #define ARRAYLIST_H #include <iostream> using namespace std; template <class ItemType> class ArrayList { public: enum SortOrder {ASCENDING, DESCENDING}; private: typedef ItemType* pItemType; typedef pItemType* ppItemType; ppItemType items; size_t count; // Finds the index of the next item in order. size_t FindNextIndex(const int start, const SortOrder order) const; // …

Software Development c++
Member Avatar for mitrmkar
0
158
Member Avatar for Mikey12345

Hi, Is there a frequency function in C# like there is in Excel. I need to show a distribution chart in bell curve form. Thanks

Software Development mathematics
Member Avatar for ddanbe
0
1K
Member Avatar for fenhopi

I have this code that searches for a set of numbers in my textfile. When it finds those numbers I want it to print what's on column 5 to 12 in the same line. Is this possible to do? I've been looking for an answer for ages now, and I …

Software Development vb.net
Member Avatar for G_Waddell
0
94
Member Avatar for Carolus89

Why this Error may happend? I have to readjust huge application and I need the most supposed possibilities which make this kind of error.

Software Development python
Member Avatar for Carolus89
0
9K
Member Avatar for Agent Cosmic

What's the the difference if I were to use "this.x=y" instead of just "x=y"? All I know is that this refers to the object created from the class. Also what's the difference if I were to use "this.method()" as compared to creating a new class like so, "Class cs = …

Software Development java
Member Avatar for JamesCherrill
0
101
Member Avatar for idb_study

[CODE]#include <stdio.h> #include <stdlib.h> /*(*void)displayValue(char* );*/ void main() { char* userInput = (char*)malloc(sizeof(userInput); printf("\n\nEnter : "); scanf("%s", &userInput); printf("\n\nEntered : %s\n\n",userInput); } [/CODE] I have got core dump by running this code. Please suggest.

Software Development c
Member Avatar for mitrmkar
0
305
Member Avatar for p@rse

I have had this problem many times and I have never been able to get my while loops corrected, hence the reason I never used them, so maybe I need a professional solution to the problem. I never really got classes on how they worked, although they had some relevance …

Software Development c++
Member Avatar for mahmud.2345
0
92
Member Avatar for RaniThomas

please explain that how JVM works when we trying to compile a java class? Help me in understanding the concept?

Software Development java
Member Avatar for RaniThomas
0
92
Member Avatar for ctrl-alt-del

Good day all! Recently I have started working for a law firm of considerable size (as ICT support). Since helping out users is a big part of my daily work, and I do have lots of other things to do, I would like things to run as efficiently as possible. …

Software Development machine-learning
Member Avatar for finito
0
136
Member Avatar for vlady

Hello, pls can anybody help me to break following string? example: output is 000 (type str) an I need to get [0,0,0] here is a script: [CODE]def test(n_input): bin_n=2 r=bin_n**n_input ## print r for x in range(r): ## print bin(x) f=str(bin(x))[2:].zfill(n_input) # x is type int, f is type str …

Software Development python
Member Avatar for TrustyTony
0
103
Member Avatar for pooya083

Dear All, Hello, I am very new at python. I have an existing example project that have some scripts YYY,in path XXX/YYY and an script A.py that call these one by one. i.e, YYY is colection of py files { y1.py, y2.py,....}, that are imported to A.py. I mean that …

Software Development python
Member Avatar for pooya083
0
257
Member Avatar for Cap'nKirk

Hi, I have been looking at various ways to skin my application nut am not having much success. I have tried [URL="http://www.skincrafter.com/"]Skin Crafter[/URL], although what ever I try I cannot get this to work. I am now trying [URL="http://www.codeproject.com/KB/library/USkin.aspx"]USkin[/URL] and am having some success but still need a little help …

Software Development
Member Avatar for Cap'nKirk
0
204
Member Avatar for GAME

Hello, I have I program that makes text turn into int32. I would like to convert the int32 (int32 is inside the text box) to text. Any ideas? Nothing on google.

Software Development
Member Avatar for Lusiphur
0
274
Member Avatar for s2xcracker

Hey everyone,I am trying to solve a problem but it's pretty difficult for me, and I thought that someone will can help me: So I am given this problem: By starting at the top of the triangle below and moving to adjacent numbers on the row below, Find the maximum …

Software Development c c# c++
Member Avatar for s2xcracker
0
72
Member Avatar for feoperro

Hi, Yesterday I downloaded and extracted ActiveMQ and ran the consumer/producer example and it worked. Today I did the exact same thing but I get the following feedback: [CODE] C:\Java\apache-activemq-5.3.2\example>ant consumer Buildfile: C:\Java\apache-activemq-5.3.2\example\build.xml init: compile: [javac] C:\Java\apache-activemq-5.3.2\example\build.xml:146: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable …

Software Development apache java open-source queue xml
Member Avatar for feoperro
0
2K

The End.