132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jray344

I don't understand functions that accept a variable number of arguments. I want to make a program with a max function taking any number of type double and returns the greatest of them

Software Development c++
Member Avatar for jray344
0
269
Member Avatar for jbstin

Please help me to write a programme to add two matrices. The matrices should be o 3*4 and must have necessary commend lines so that i can catch it correctly. anyone help me pls?

Software Development c++
Member Avatar for WaltP
0
115
Member Avatar for squidd

I have it coded to where a small list can have dupes removed rather efficiently. But, the larger the list gets, the longer it takes to the point that it is better to not even try. A list of 15,000 lines would takes hours and hours... probably longer to remove …

Software Development delphi pascal
Member Avatar for squidd
0
807
Member Avatar for nemoo

[COLOR="Green"]here is my program i think that it's right[/COLOR] [code=c++] #include<iostream.h> int main(){ int n,i=3; cout<<"please enter number to see weither it is a prime one or not"<<endl; cin>>n; if(n==2||n==3){cout<<n<<"is prime number"<<endl;} else if(n%2==0) {cout<<n<<"\t is not prime"<<endl;} else{ for(i=3;i<n;i+=2) { if(n%i==0) {cout<<n<<"\t is not a prime number"<<endl;break;} else { …

Software Development c c# c++
Member Avatar for vmanes
0
107
Member Avatar for Brent.tc

I have newly made my bcstring class, and it is having some strange errors. I have given it the ability of dynamically allocating memory. If the memory to be allocated is already allocated, nothing happens (correct/non-problematic); If the memory to be allocated is greater than that that is allocated, and …

Software Development c++
Member Avatar for Ancient Dragon
0
158
Member Avatar for chris53825

Hey guys, I'm trying to read from a file and put each column into it's corresponding array. [code] % P_ID CPU_burst I/O_burst Priority 0 10 4 2 1 8 2 1 2 12 0 5 while ((Line=myInput.readLine()) != null) { StringTokenizer s = new StringTokenizer(Line); //System.out.println(Line); pid[counter]= Integer.parseInt(s.nextToken().toString()); cpu[counter]= Integer.parseInt(s.nextToken().toString()); …

Software Development java
Member Avatar for chris53825
0
99
Member Avatar for Rick1980

Hello All, I know that there is a similar thread about my problem, but I can't find it anymore. Well basically I want 2 objects to know from each other. I know that in C++ I have to use pointers to do that. I wrote some sample code to show …

Software Development c++
Member Avatar for Rick1980
0
2K
Member Avatar for sunrise2007

hi:: i back with small problem and i wish to help me. i have problem with getline() i search about the solution and i find it but the problem is still see the example [CODE]#include<iostream> #include<string> #include<iomanip> using namespace std; #include<ctype.h> void validate_name(string &name)//validate_name for each student { int i; …

Software Development c++
Member Avatar for sunrise2007
0
89
Member Avatar for sai_kishor5

hi, I am a beginner of visual basic programming. I know form designing and can write the source code also.But i would like to know how can i store my data in the project or programming.Means how to create and use databases in VB. Please give me the reply as …

Software Development visual-basic
Member Avatar for steve585
0
110
Member Avatar for gjr1829

please help me create the first part of date class project. Date Class Project (part #1) Create a class named Date The class has 3 int variables for month, day, and year (05 points) The class has a Boolean value for whether the date is a leap year private int …

Software Development java
Member Avatar for Ezzaral
0
516
Member Avatar for Racoon200

Hi... I have this addLink button, that calls the addLinkClick function. content is a multiline text control. The following are variables: href,target,linkName I want this button to print [CODE] print "<a href='"+href+"' target='"+target+"'>"+linkName+"</a>" [/CODE] into the content control. How do I do this? Also...does anybody now how to run a …

Software Development python
Member Avatar for Racoon200
0
103
Member Avatar for Punkr63

I need to create a Java program that implements both a stack and a queue (and not a palindrome problem) any suggestions?

Software Development java queue
Member Avatar for Nickk
0
187
Member Avatar for dno117

Hello all, I am an online student in an intro to Java programming course and am a little stuck on my current program. I do not want the answer, but rather help figuring out what it is I am doing wrong. The program is supposed to prompt for an employee …

Software Development java
Member Avatar for dno117
0
875
Member Avatar for leeqiang

i wanna write a othello programm myself.i Googled a platform to test programm.that's very good i think.there is a abstract player(source attached) .i don't how to start it.any good-heart people can give me a sample? use the alpha-beta search is i want to do. THANKS soooooooooo much

Software Development java
Member Avatar for Jishnu
0
156
Member Avatar for emilio

hello does anyone knows the meaning of the error undefined reference to main. i'm getting the error when trying to compile a file without a main function with -Wall option

Software Development c
Member Avatar for emilio
0
91
Member Avatar for jbstin

cn anyone sugest any e book or sites to study the assembly language well? i am searching forr it.

Software Development assembly
Member Avatar for Salem
0
82
Member Avatar for kobi

Hello There, How can i use in the code the " character witout the complier will throw en error im trying to create the following string : what i need : <A NAME="ppp" A> hello</A> when the ppp is an object myString ="<A NAME=""+object+"" A> hello</A>" as you see i …

Software Development
Member Avatar for kobi
0
100
Member Avatar for DrTsus

I'm dying here. I can't find out why my code isn't working. I get "illegal start of expression" in Blue J. It's on line 34 ( if((menuchoice = = 0) && (gender.equals("M"))) ) [ICODE]/** * Brandon * November 14, 2007 * TDEE */ import java.util.Scanner; public class TDEE { public …

Software Development java
Member Avatar for iamthwee
0
183
Member Avatar for Tamose

I'm trying to make the canvas (or window) created from the turtle module, but the code listed in the docs at python.org doesn't work. I've done some research online, and I keep coming across 'Tkinter', which is only confusing me further. I'm trying to make a soduko game, but first …

Software Development python tkinter
Member Avatar for bumsfeld
0
909
Member Avatar for siri_lito

hi, can anyone give me idea how to do this please as i am new to shell scripting write a shell script(varcount) that takes a c++ program and counts the number of words which could be a valid c++ variablename. thanks for the help in advance

Software Development shell-scripting
Member Avatar for swetha321
0
70
Member Avatar for jbstin

please help me to find how to find the factorial of a number in a easy way? the methods i have seen are difficult to me .can any one heelp me to solve the problem?

Software Development c++
Member Avatar for zandiago
0
103
Member Avatar for tgifgemini

Hi everyone, I am attempting to access a database that is located in a shared server/ directory "K:\". Assuming I don't know where the database is located, how can I programatically tell vb to locate this database by searching all the network server directory? My database name is called: `PTS.mdb` …

Software Development visual-basic
Member Avatar for debasisdas
0
145
Member Avatar for xmile

i designed a form that has labels on it that you are expected to insert value (Alphabets and Numbers) an then it will do a calculation and give you a result on that page this page contains about 200 -250 labels i want to make a "save" menu that will …

Software Development hard-drive visual-basic
Member Avatar for debasisdas
0
99
Member Avatar for pdwivedi

i have a program which outputs a [COLOR="Green"].prt [/COLOR]file for printing barcode. But i want to send the file directly to the printer port LPT1 for printing instead of having [COLOR="Green"].prt[/COLOR] file please any body suggest a solution. [COLOR="Red"]Regards Prashant[/COLOR]

Software Development c printer
Member Avatar for Salem
0
111
Member Avatar for sheida

Hi, I Hold a MS degree in Information Systems and I work in a University as a turore, I am to tutore visual basic 6 for next semester, I sont know where to start? I dont know anything about VB. I know Pascal, fortran, and C++ but I have no …

Software Development pascal visual-basic
Member Avatar for debasisdas
0
107
Member Avatar for Fenerbahce

Hi, I use VB6 with Access. I have 4 records in my DBF file. When i do Recordcount, it says that i had -1 record. Why not 4? Help please Thanks Dim Conn As New ADODB.Connection Dim Rs As New ADODB.Recordset Dim Query As String Private Sub Form_Load() Conn.ConnectionString = …

Member Avatar for debasisdas
0
100
Member Avatar for ace_joker_bt

I can make this program to copy diverse format wihout losts. example: C:\\animal.exe to D:\\animal.exe (The File location write in locale) [CODE=c++]#include <iostream> #include <fstream> using namespace std; int main () { char data[50]; char inputFile [100]; cout <<"Insert inputFilePatch :"<<endl; cin >> inputFile; ifstream inputFilePatch; inputFilePatch.open(inputFile); if(!inputFilePatch) { cout …

Software Development c c# c++
Member Avatar for ace_joker_bt
0
357
Member Avatar for GrazBurya

Hello All, I am trying to write a C program that reads a text file and output unique words sorted alphabetically using /usr/bin/sort. All non-alphabetic characters serves as delimiters and are discarded. I am having a problem just parsing the text file into words, getting SEG FAULTS. dbx gives error: …

Software Development c
Member Avatar for Salem
0
158
Member Avatar for holy_boy

I have been trying to write a code for Conways Game of life, the thing is I need to generate a matrix of char filled with the elements * or o(o marks a dead cell,*marks an alive one). The Rules: For a cell that is alive: Each cell with one …

Software Development c
Member Avatar for WaltP
0
273
Member Avatar for notorious_pan

we have a strin which is stored in a text file...we have to read that string from text file ....them we have to make the fragments of a string and we have to count tht word number of thye string...finally we have to put this string into the structure.... like …

Software Development c++
Member Avatar for Ancient Dragon
0
107
Member Avatar for Love Story

hi everyone, it's my first thread here and i need help plz with this question below: The purpose of the program is as follows. A line of programming code is to be entered from the keyboard. Part of the code will be contained between a “Begin” string and an “End” …

Software Development c++
Member Avatar for zandiago
0
103
Member Avatar for RichardNero

i keep getting this error (error C2447: '{' : missing function header (old-style formal list?) can someone give me a hint or help me out, I went from 23 errors to 1. [code=c++] // Enter a grade which is 1 and 100 for user. #include <iostream> using std::cin; using std::cout; …

Software Development c++
Member Avatar for Salem
0
108
Member Avatar for Justmehere

All I want to do is for some block of code to run every 10 minutes or about. Can anyone tell me is there some standard or common way of implenting a block of code that just buys some time or is it a simple loop like the following: int …

Software Development c++
Member Avatar for Justmehere
0
198
Member Avatar for Justmehere

Can anyone tell me if its possible to declare a function and use it with multi parameters with the special character like "..." as part of the parameter list. I'm not intested in function overloading. What is the ... used for then if I'm incorrect on its useage ? Thanks …

Software Development c++
Member Avatar for Justmehere
0
287
Member Avatar for k88joshi

Hi , I want to read in a file that has string in it and i want to convert all those strings to hex and want to find a pattern. For Example, string = "dsofijdsoifjaslifdjaslidjlasjdlasjdlsaj" and i want to find a sequence of something in Hex: " 5A 1b 1b" …

Software Development c c# c++
Member Avatar for iamthwee
0
132
Member Avatar for Racoon200

Hi. Iam making an app to write and append to an html document blog-type blocks. I have the GUI finished, but I need to fusion it with my script. Look at this snippet of my script: [CODE] def link(href,target,linkName): partA = "<a href='"+href+"' target='"+target+"'>"+linkName+"</a>" print partA [/CODE] Now, this is …

Software Development gui python
Member Avatar for Racoon200
0
146
Member Avatar for tuxman

Hi all. First of all let me apologize by my english. I've googled a lot about my problem, but I had not find anything conclusive. I have the following piece of code: [CODE]vector < map < int , char * > > bank; bank . reserve ( 10 ); if …

Software Development c++
Member Avatar for vijayan121
0
97
Member Avatar for danbellinger1

I am writing a program that asks for numeric input until a negative number is given. My question is how do I test for no input? I currently have: [code] if ( userInput == "" ) { cout << "NOTHING TO PROCESS" << endl; } [/code] But I get: " …

Software Development c++
Member Avatar for Duoas
0
267
Member Avatar for spockenheit

How do i use parameters in a system call? For example: ipconfig /all

Software Development c++
Member Avatar for Duoas
0
90
Member Avatar for huntatunc

so, everything works through the first iteration (don't know if this is an appropriate term for linked lists, but we just learned arrays) but then it stops. I thought that telling it to continue until position.next != null and increasing the position after every iteration would work but I think …

Software Development java linked-list
Member Avatar for cms271828
0
5K
Member Avatar for alexasmith

Hey! I am new to java programing and need some help with some homework, here are the requirements: Right now I am working on just setting up my arrays but it is not working. I read the size of the array from the user and then tell the user to …

Software Development java
Member Avatar for alexasmith
0
173
Member Avatar for parthiban

Hi da, Suggest me good books for Swing and JDBC(apart from Sun tutorials -which I will use) . I have basic knowledge of Swing which I read from Head First Java but I don't know anything about JDBC. Now I want to explore my knowledge in Swing and I'm going …

Software Development java java-swing
Member Avatar for Ezzaral
0
98
Member Avatar for dooda

I hope that you could help me and solve this problem to me: write a program to read lines of characters and prints the average number of vowels (a,e,o,i.u) and the average number of characters digits that appear in each line. the input is terminated by by intering '$'. you …

Software Development c++
Member Avatar for joshua.tilson
0
105
Member Avatar for Questions???

After several hours I have figured this out, but because the % statement is confusing to me I was wondering if someone wolud not mind explaining to me my for statement in the following program? using System; /*This program is designed to identify the prime numbers from 1 to 100. …

Software Development
Member Avatar for Questions???
0
161
Member Avatar for susuoi

Hi, I'm learning perl and web application now. I have a xml data as shown below. <?xml version="1.0" encoding="utf-8" ?> <rsp stat="ok"> <photos page="1" pages="102" perpage="2" total="508"> <photo id="1969474222" owner="20137329@N04" secret="8ebd15f901" server="2185" farm="3" title="allen-iverson-dunks" ispublic="1" isfriend="0" isfamily="0" /> <photo id="1952424144" owner="7974492@N03" secret="a18966828b" server="2241" farm="3" title="Celtics vs. Nuggets" ispublic="1" isfriend="0" isfamily="0" …

Software Development api perl web-server xml
Member Avatar for susuoi
0
119
Member Avatar for kartik14

I have a question regarding the test condition of the [I]for[/I] loop.. For example, if the loop is say: [CODE]for ( int i=0 ; ( C1 && C2 ) ; i++ ) {// some code}[/CODE] My question is, if either C1 or C2 is false then the test condition is …

Software Development java
Member Avatar for masijade
0
446
Member Avatar for TOROOOLOLOOLO

HI I have created database with ms and linked it with vb6 user interface.But i have a problem linking or loading pictures to the records.I need help on how this can be done,and if possible how pictures can be loaded with it's corresponding data into the database at runtime. Thank …

Software Development user-interface visual-basic
Member Avatar for dilip_singh3
0
102
Member Avatar for Newton27

I am trying to create a C++ program that can calculate cube root. I was assigned to use the Newton-Raphson cube root. A website that speaks about it can be found here: [url]http://www.mathpath.org/Algor/cuberoot/cube.root.newton.htm[/url] Here is my overview taken from that website: X2 = 2(X1)+a(X1^2) ___________ 3 My writing of the …

Software Development c++
Member Avatar for iamthwee
0
129
Member Avatar for jbstin

how can i make a new file and acces it from a class object? i refferd some book but i am not clear about it.

Software Development c++
Member Avatar for Salem
0
98
Member Avatar for Richard26

Hi, I would like to use VB to access a field in MS Access db which contains an article but I only want to retrieve a select sample from each article not the whole article. Any ideas Thanks Richard

Software Development visual-basic
Member Avatar for Richard26
0
87

The End.