132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Masterace

hi everyone can someone please help am trying to convert numbers to words but there no response at all when i run the prog. i used the codes below [CODE] Function Getword(strNumber) Dim strtemp As String Dim x, y, z As Integer x = Val(Mid$(strNumber, 1, 1)) y = Val(Mid$(strNumber, …

Software Development visual-basic
Member Avatar for akaban
0
3K
Member Avatar for AngusFloydKAOS

Hey so I'm trying to get one of my c variables to be a bash variable. Is there a way that I can do this?

Software Development c
Member Avatar for nezachem
0
111
Member Avatar for froggy1

I would like to find and replace a string in a file. I know how to do this, but I can only do it for all instances. Is there a way to do it for just the first instance of the string in the file? import fileinput for line in …

Software Development python
Member Avatar for froggy1
0
149
Member Avatar for fur8ar

[code] Traceback (most recent call last): File "C:/Python31/sample.py", line 10, in <module> calendar.prcal(year) AttributeError: 'module' object has no attribute 'prcal' [/code] Hello, I just started learning Python with this fantastic site. Unfortunatly I get this when i try to execute the following code [code] import calendar print( "Show a given …

Software Development python
Member Avatar for fur8ar
0
101
Member Avatar for pinknblu

It's saying I have 6 errors. Need help, please..or a push into the right direction. Thank-you. :) [CODE]#include <iostream> #include <cctype> using namespace std; int Len_String(char *); int CountCapitals(char *); int CountVowels(char *); int main() { char msg[] = "Strayer - what a University !"; char msg2[] = "Programming is …

Software Development c++
Member Avatar for pinknblu
0
139
Member Avatar for lionaneesh

I want to know what is const type in C and what is its uses etc. i dont know anything about this term used in C so please give detailed description...

Software Development c
Member Avatar for jephthah
0
120
Member Avatar for praneshss

Hi all, I'm basic programmer of Java..I tried to use JFormattedTextField for the first time.. It's giving error in importing sentence only.. I hav written import javax.swing.JFormattedTextField; It shows error "Cannot resolve symbol class FormattedTextField" I don't know what the problem is..Everything seems right..Please help me..

Software Development java java-swing
Member Avatar for praneshss
0
56
Member Avatar for zyaday

[CODE] public class TryCatchTest { public static void MyNumber(String x) throws TryCatchException1{ try{ String y = x.substring(0,200); }catch(TryCatchException1 e){ System.out.println("BBBBB"); System.out.println(e.getMessage()); // e.printStackTrace(); }catch(java.lang.StringIndexOutOfBoundsException e){ System.out.println("AAAAAAA"); e.printStackTrace(); e.getMessage(); } } } class TryCatchException1 extends java.lang.StringIndexOutOfBoundsException{ TryCatchException1(){ super(); } TryCatchException1(String msg){ super(msg); } }[/CODE] why is my exception not caught on …

Software Development java
Member Avatar for BestJewSinceJC
0
113
Member Avatar for vivosmith

Hello I am glad to find this site. I have been searching for help with learning C++, to no avil. So my question, which is multi-fold: I have a book from 10 years back or so, ansi compliant, should it work with dev-cpp. Second, I learned the difference between char …

Software Development c++ windows-xp
Member Avatar for vivosmith
0
582
Member Avatar for danturn

Hey Guys... I've got a bit of a fiddly problem... I have an XML doc in the following format: <row> <DNOrPattern>0444</DNOrPattern> <HuntList>HL-1104 C Capital</HuntList> <LineGroup>LG-1000-COREVM1</LineGroup> <RNAReversionTimeout>4</RNAReversionTimeout> <DistributionAlgorithm>Top Down</DistributionAlgorithm> <Member>20130</Member> </row> <row> <DNOrPattern>1015</DNOrPattern> <HuntList>HL-1104 B Ltd</HuntList> <LineGroup>LG-1000-COREVM1</LineGroup> <RNAReversionTimeout>4</RNAReversionTimeout> <DistributionAlgorithm>Top Down</DistributionAlgorithm> <Member>20110</Member> </row> <row> <DNOrPattern>0444</DNOrPattern> <HuntList>HL-1104 C Capital</HuntList> <LineGroup>LG-1000-COREVM1</LineGroup> <RNAReversionTimeout>4</RNAReversionTimeout> <DistributionAlgorithm>Top Down</DistributionAlgorithm> …

Software Development xml
Member Avatar for danturn
0
147
Member Avatar for react05

how would i get the file below to display the number of moves by adding an output statement after the call to move() in main() to display the value of moveNumber, which will be the number of the last move. Thanks! [code] #include <iostream> #include <iomanip> #include "timer.h" using namespace …

Software Development c++ puzzle
Member Avatar for Fbody
0
279
Member Avatar for kut KK

hello guys... can you help me to find coding for grading system for my new assingment...( grade n grade point) grade A= 4.00 A- = 3.70 B+ = 3.50 B = 3.00 B- = 2.67 C+ =2.50 C = 2.00 C- = 1.67 D+ = 1.33 D = 1.00 E …

Software Development c++
Member Avatar for MyrtleTurtle
0
231
Member Avatar for ROTC89

ok so im trying to search list for a student by the last name and i keep getting a error as Error 1 Cannot convert type 'string' to 'Project2.Person' and i do not know how to fix it. any advice? [CODE] class StudentData { private List<string> Page; public StudentData() { …

Software Development
Member Avatar for apegram
0
101
Member Avatar for MyrtleTurtle

My assignment this week deals with using a struct. I think I can do that part. What I'm having trouble with is reading the file into each variable. The first item in the file is text with spaces. The next items are numeric and need to go into other variables, …

Software Development c++
Member Avatar for MyrtleTurtle
0
125
Member Avatar for syd919

hello everyone I am teaching myself c++ and I was wondering if anyone could give me a site that has some c++ exercises particularly on 2d arrays and string manipulation. thank you.

Software Development c c# c++
Member Avatar for syd919
0
80
Member Avatar for MeetMak

Hi All, I have a C++ DLL, which has a function called INPUT and it is defined as follows in DLL: [code] extern "C" __declspec(dllexport) char* _cdecl INPUT(int a,int b,double D[2],double Z[2],double e,double f); __declspec(dllexport) char* _cdecl input_balr2(int a,int b, double *D,double *Z,double e,double f) { //Do Something } [/code] …

Software Development c++
Member Avatar for MeetMak
0
973
Member Avatar for jallan2009

Sir, I am using front end as a VB.net 2005 and I am a beginner in this language. I am creating Desktop application and using controls TAB controls 1st tab control is Contact in contact I am using one text box, two button and one datagrid while I am using …

Member Avatar for pritesh2010
0
222
Member Avatar for Tushar Dutt

I am developing a software using vb.net and sql server as database.It takes name of my computer as a connection string.when i load this software on other computers it searches the name of my system.how can i define a connection string that automatically takes the name of system on which …

Software Development vb.net
Member Avatar for Oxiegen
0
155
Member Avatar for josolanes

Hi, I'm writing a "Date" class and it's fully functioning, including the output manipulators, but the issue I have is when creating a class the has a "Date" instance in it. It, then, doesn't compile because it says there are multiple definitions of the manipulator functions. I'll lay out, below, …

Software Development c++ ide
Member Avatar for josolanes
0
102
Member Avatar for Akatosh

Ok following the suggestion from another user I have switched over to a GroupBagLayout. Following the java tutorial in hindsight this seems easier. But alas, I have ran into a problem which does not make any sense to me. See screenshot: [url]http://img189.imageshack.us/img189/1060/groupbaglayout.png[/url] I have started from a top down approach …

Software Development java
Member Avatar for Akatosh
0
107
Member Avatar for lyn.vita

Hi all, I'm trying to write the Hufmann code to encode a given file & give me the compression ratio. but when I run this programme, I'm getting segmentation fault. Can you please help me with correcting it ? [CODE] /*************************/ /*************************/ // HUFMANN.C /*************************/ /*************************/ #include<stdio.h> #include<stdlib.h> #include<input.h> #define …

Software Development c
Member Avatar for Adak
0
140
Member Avatar for mucoool

i'm having a problem in executing a batch file from my c++ code i've included all the necesary headers like dos.h,process.h,stdlib.h code: system(c:\new\ram.bat); there is no error in the program but the batch file does not get executed..... please help ................

Software Development c++
Member Avatar for thomas_naveen
0
206
Member Avatar for gaya88

can we declare a array as, int arre[x]; and assign the value of x as,x=5; but error is coming "constant expression required." Any help? i wanted to input series of marks,first you should enter how many subjects(if 5 subs,x=5) then you can enter 5 marks.

Software Development c c# c++
Member Avatar for thomas_naveen
0
174
Member Avatar for jacksparao
Member Avatar for ahmedyes

hi every one I really need help with this and how to do it =The motel has 12 rooms numbered 1 to 12, and each handles a maximum of 4 guests. Assume all rooms begin empty. Provide a user-friendly interactive menu that allows the following transactions: B – Book room(s) …

Software Development c++
Member Avatar for thomas_naveen
0
167
Member Avatar for andy38

Hi,Using Vb net (2005) in Win Forms, in my app. I have many Win Forms one off them is "SetupOption" this need to be shown at least once at the first time I run the app and never ever after unless I need to change some settings,. then my question: …

Software Development vb.net
Member Avatar for Chris147
0
131
Member Avatar for rumpleteaser33

Hi, I'm writing my first application in VB and need some help with my Access database. I have 2 problems; the first one is the most important, the second I would just be very grateful for any help/advice. Firstly, I need help updating a record from my database. I have …

Member Avatar for kevinnrobert
0
158
Member Avatar for ilkeamasya

Our homework is to compare N circles with each other if they are intersecting or containing.My C file for that is : [CODE]int N=0 , i=0, j, a=0, max=0; float circle[MAX] [3] ; float durum1, durum2, durum3; float intersection[MAX], containment[MAX]; printf("Please enter the number of circles you want to compare …

Software Development c++
Member Avatar for ilkeamasya
0
91
Member Avatar for kut KK

hello guys... can you help me to find coding for grading system for my new assingment...( grade n grade point) grade A= 4.00 A- = 3.70 B+ = 3.50 B = 3.00 B- = 2.67 C+ =2.50 C = 2.00 C- = 1.67 D+ = 1.33 D = 1.00 E …

Software Development java
Member Avatar for Nick Evan
0
130
Member Avatar for timbomo

#include <iostream> #include <ctime> #include <cstdlib> using namespace std; i am having trouble putting functions in int main(). can someone show me how??? i want to put these function def. in int main() [CODE]int score_num(int& ns1,int& ns2,int& ns3, int& ns4, int& ns5, int& n6, char& gam_answ); int roll_hold(int roll, int …

Software Development c++
Member Avatar for mattjbond
0
414
Member Avatar for stanleymakori

can somebody give me code that retrieve data from from same column which have same name e.g surname,store it in dataset and then navigate through it on form using odbc.

Software Development dataset vb.net
0
39
Member Avatar for bokz06

i think i have converted my application to an applet..... it use to read lines from a .txt file i have on my hard drive but now i want it to read a .txt file from a URL: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.JButton.*; import javax.swing.event.ListSelectionEvent; import java.net.*; import java.io.*; …

Software Development file-system hard-drive java java-swing
Member Avatar for HoRn
0
171
Member Avatar for lastlight

Hello again, Whenever I run a certain .exe in my CGI script, it opens the process but does not bring up the application. I am forced to close it out through task manager. Both exec & system have the same result. I created an autoit script to run the .exe …

Software Development perl
Member Avatar for vitana
0
125
Member Avatar for jasneg16

im using <stdio.h> and <conio.h> only is there any solution so I can randomize result? I want to make a fortune cookie that randomize the reading. i am not familiar with iostream and stdlib thanks

Software Development c
Member Avatar for WaltP
0
147
Member Avatar for jazzy_24

firstly here is the code i'm working on in visual studio [CODE]#include "stdafx.h" #include <iostream> #include <string> using namespace std; struct Car { string r_number,make_of_car,model_of_car; int mileage; int age_of_car; }; void main () { int i,num; Car *car1; cout << "Please enter the number of cars: "; cin >> num; …

Software Development c++ visual-studio
Member Avatar for pinsickle
0
125
Member Avatar for PSP1202

Hey all I'm new C++ and am having a little trouble with a simple program. The program calculates the square root of a number the user inputs. When I input -1 or any negative it comes up as 1.#ind. Ideally when the user types -1 i want -1 to come …

Software Development c++
Member Avatar for Banfa
0
317
Member Avatar for ratchy

So I have been asked to write a template class for a binary tree (easy) the hard part is that the nodes have to be written into a file and read in the same exact positions they were in when they were stored. I looked at the array solution with …

Software Development c++ file-stream
Member Avatar for ratchy
0
259
Member Avatar for some

Hello everyone, Currently, I am trying to make a smaller version of the famous Eliza bot. I have written a program that can understand and put out replies, but if I want to make it bigger then the code will be thousands and thousands of lines long. And all on …

Software Development c++
Member Avatar for Banfa
0
209
Member Avatar for MTW1989

[CODE] #include <cstdlib> #include <iostream> #include <iomanip> #include <stdlib.h> #include <conio.h> #include <stdio.h> using namespace std; void printintromessage (); void getUserInput (char& Y); void calculations (const int& numofgamesinseries, const int& numofplayersonteam, int& i, int& j, int& k, int& l, char& Y); void PrintMax (const int& numofgamesinseries, const int& numofplayersonteam, int& …

Software Development c++
Member Avatar for pinsickle
0
133
Member Avatar for ari200429

I am trying to create a telephone word generator that ask for seven digit number in a textbox and displays every possible seven letter word combination corresponding to that number when user clicks generate words button. My generate click button is not working once click [code] Public Numbers(7, 3) As …

Software Development vb.net
Member Avatar for apegram
0
578
Member Avatar for DSalas91

Hi everyone. Im new in C++, actually im doing my first project, and i have a few questions, if you guys could help me it would be awesome. :) In a method i have to create a .txt file, It have a parameter indicating the number of the file. But …

Software Development c++
Member Avatar for DSalas91
0
187
Member Avatar for spursfan2110

Hi all! So our T.A. gave us a function to use in our programming assignment as follows: [code=php] struct node *delete_from_list(struct node *list, int examnum) { struct node *cur, *prev; for (cur = list, prev = NULL; cur != NULL && cur->examNumber != examnum; prev = cur, cur =cur ->next) …

Software Development c linked-list motherboards-cpu-ram
Member Avatar for spursfan2110
0
2K
Member Avatar for spawn2004

hi everyone, i am having a difficulty with a C# program. The program thing i don't know how to do is one button that have to draw a text to an image. I have two forms. The first one have three buttons Open File, Edit Text and Save Image It's …

Software Development c#
Member Avatar for Diamonddrake
0
157
Member Avatar for Akatosh

Alright I'm trying to design a GroupLayout but running into troubles and lots of confusion...I have read the java tutorial on them and I'm still at a lost. Here is a makeshift design I painted: [url]http://img268.imageshack.us/img268/2757/grouplayout.png[/url] The thing that is stumping me is how do I go about stretching the …

Software Development java
Member Avatar for Akatosh
0
92
Member Avatar for BestJewSinceJC

I'm trying to write my own system calls. I have a .c file where I'm putting the system calls. My system calls use a struct, so I have declared a global variable that is an array of my struct. Lets just call it [CODE] //Stuff is the name of the …

Software Development c
Member Avatar for BestJewSinceJC
0
96
Member Avatar for senormateo2011

Hi everyone. I am new to this website and I could use some major help. Basically, I am taking AP Computer Science and my teacher has no idea what he is doing. The school thinks that since he can do web design and adobe teaching, he can do java programming. …

Software Development java java-swing user-interface web-design
Member Avatar for senormateo2011
0
739
Member Avatar for mathew_johnny

Hi, I v got a tough challenge to solve please help me find its solution. Have code but no corresponding higher language code. Code displays 8 top records made by any users in a particular game, i have to modify it in such a way that it prints 10 records. …

Software Development assembly
0
242
Member Avatar for javarook

I need to find the smallest index in an array, my math must be wrong because i am finding the smallest number not the smallest index. can someone check my smallestIndex method and give me some help? for example: if i put in these four numbers, 2 3 0 1, …

Software Development java
Member Avatar for kvass
0
3K
Member Avatar for NOLK

Hello all, I've been looking at various c# timing functions but can't seem to find the right one. The closest one I seem to have found is stopwatch function, that only measures the time it takes to complete a command. What i'm after is a stopwatch function that only measures …

Software Development
Member Avatar for NOLK
0
123
Member Avatar for tuffenuff

I have file which is having large data in it. and there are some repeated rows. Basic idea here is : Sort data, remove duplicates based on first field and then print the whole.... I have tried teh following but no help.. [CODE]#!/bin/sh if [ $# -ne 1 ] then …

Software Development shell-scripting unix
Member Avatar for tuffenuff
0
502

The End.