199,114 Archived Topics
Remove Filter ![]() | |
This is our assignmenWrite a program to convert between yards and meters. Your solution must utilize functions to perform the conversions. Your functions must meet these requirements: One of the functions must use pass-by-value, returning the converted measure One of the functions must use pass-by-reference to store its result (the … | |
I need to write a recursive function reverseInput that until the user enters zero it keeps on accepting numbers, then when done, outputs them in reverse order. Only thing, i cannot use strings or arrays or anything of the like and it must be done in one recursive function. It … | |
what is the source code for this [code] ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A [/code] | |
Hello Everyone, In my application i need to select a file using open dialog box. And then i dont need to open the file. I just need to display the name of the selected file in a text control. And then open the file in later part of the program. … | |
Hi everyone I am working on this project that involves programming the EEPROM chip using assembly language but I do not know how to go about doing this. I am suppose to be able to read from, write to, edit, and erase the eeprom. What can I do? Where do … | |
I formatted my computer and I want to install the visual basic 6.0... I can’t install it using my installer... I’m enjoying making programs and of course experimenting… hehehe… So I just wanna ask... If there’s any possible website where I can download to install visual basic??? Thanks and more … | |
Reading from text files........I have to read in a file which contains the list of all service calls to be done today, the calls have to be assigned based on how far the area is in the 10X10 grid of the sector, assuming the office is in the middle say, … | |
This is an annoying error...tried re-writing the code a few times...deleting and recreating the table...etc...still the same result: " ... You have an error in your SQL syntax; check the manual that corresponds to your MYSQL version for the right syntax to use near 'desc) VALUES ( '', '1', '1', … | |
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 | |
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? | |
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 … | |
[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 { … | |
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 … | |
![]() | 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()); … ![]() |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
I need to create a Java program that implements both a stack and a queue (and not a palindrome problem) any suggestions? | |
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 … | |
I have done coding for custmization of web page using drag and drop. After customization i need to save the change they made using javascript.please give some idea. | |
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 | |
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 | |
cn anyone sugest any e book or sites to study the assembly language well? i am searching forr it. | |
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 … | |
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 … ![]() | |
Hi! I've got some basic javascript and XML skills. I'm wanting to learn about AJAX but preferably without .asp or some other technology involved (I'm not running .asp on my server). Are there any books you guys can recommend to me? Thanks! THT | |
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 … | |
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 | |
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? | |
Hi all. Im a newbie and need help creating flowcharts for my class projects. I worked on them for a few days now and cannot figure them out. I am running out of time and have to get thru this class. Here is what I need them to do #1 … | |
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` … | |
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 … | |
Guys, without saying anything much, I have such data at hand (rows from a database table): [code]111 | xyz | a, b, c[/code] Following someone's wise words, I would love to have this transformed to : [code] 111 | xyz | a 111 | xyz | b 111 | xyz … | |
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] | |
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 … | |
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 = … | |
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 … | |
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: … | |
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 … | |
Hi All, Newbie poster here. I have an, I guess, architectural question. I am still very much a beginner in mysql so bear with me. I have an e commerce site in which the prices of my products fluctuate very often. By default, my customers see the regular prices or … | |
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 … | |
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” … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.