199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mike182

Id like someone to take a look at this piece of code and tell me any errors to correct, ms-vc++ 6.0 says there are 3, but when I correct them it creates more errors (example being: going from 3 errors to 18 with one ';' going in) Help appreciated. Here …

Member Avatar for Ancient Dragon
0
334
Member Avatar for rasheed1982

how to optimize this code in c? int j=4,k=4; for(i=0;i<1000:i++) { j+ =i: k-=i: }

Member Avatar for Ancient Dragon
0
138
Member Avatar for skalra63

i am using ADODB to connect an access database to my forms. i have the folloing code which searches the database table for a barcode. it searches and displays correctly, until you put in a non existant barcode, then it comes up with error 3021. eof bof error. it highlights …

Member Avatar for nicentral
0
158
Member Avatar for jigvesh

Well, i searched all through google and stuff...but in vain..i want to add a functionality in my program to copy and paste buttons which are present on the screen.....I got a wonderful article to copy and paste text.but what about some swing components???????how do we copy and paste them????? [site]http://www.cafeaulait.org/course/week13/[/site]

Member Avatar for jigvesh
0
125
Member Avatar for Rearden

What happens if you call openStream twice? I have this code in which I open up a weather xml page and get information out of it. Unfortunately, the way I do it has me doing a linear search down the page for the line I need each time I want …

0
132
Member Avatar for bg123

I have a program where the user enters a number and it prints all the prime numbers between 1 and that number. I have been able to do that. It must also print the max prime number, the greatest prime between 1 and that number. This is where I am …

Member Avatar for WolfPack
0
131
Member Avatar for php4ever

Has anyone see an error like "Undefined Offset" before. Every where I look I see that it referrs to an undefined var which doesnt seem right. [B]Undefined Offset on line 20[/B] Code is as follows: [PHP] <?php include('sql_connect.php'); $truncsql = "TRUNCATE TABLE allproperty"; mysql_query($truncsql) or die(mysql_error()); function parselistings($thefile, $thetable) { …

Member Avatar for sarahk
0
676
Member Avatar for javamum

This is the first program I am writing after taking one C++ class 4 years back. Please help me with this syntax error: #include <iostream> #include <math.h> using namespace std; enum run {TERMINATE=0, LOOP, NoRoot}; double f (double x); double f (double k); double f (double n); return (x*(1 + …

Member Avatar for javamum
0
99
Member Avatar for butterflyTee

AM I DOING THIS RIGHT, PLEASE HELP ME, SO ME MORE EXAMPLES ON HOW TO RIGHT IT :o C:\home\COP1000\a\3>python wc.py futval.py test.txt wc.py 22 103 699 futval.py 2 4 22 test.txt 52 223 1683 wc.py 76 330 2404 total

Member Avatar for butterflyTee
0
492
Member Avatar for seh1

Hi, This is my final question on my GUI , I promise. I wanted to create a global String array that once it was initialized and set in one GUI that it could be accessed by any of the other related GUIs or do I have to pass it from …

Member Avatar for hooknc
0
146
Member Avatar for docfish

Hello! I'm supposed to write a program that starts by drawing a 200 X 200 square at the top-left corner of the monitor. Continue drawing squares that become steadily smaller as they are displayed to right side of each preceding square. The bottom of the square stays at the same …

Member Avatar for server_crash
0
250
Member Avatar for kryptolite

i'm trying to make a hangman game with c++ right now and i got a question: how do you get a RANDOM word from a text file? given there is only a word each line in that file e.g: television computer football butterfly etc. anyone can help? thx.

Member Avatar for AhmedHan
0
203
Member Avatar for Jon182

Hey guys I am using code like the following: But I would like to say if a semi colon appears at any stage after a ")" (closing bracket) add one to count. Any advice thanks. ( I am also using a char array and not a string, unfortunitly I have …

Member Avatar for Jon182
0
130
Member Avatar for magikman

Howdy, I have been trying to teach myself C++ for a few months now and have been progressing nicely thanks to all the wonderful help I have received on this site and others. Thanks for your help! Now, on to my question. I am currently trying to learn linked lists. …

Member Avatar for Rashakil Fol
0
497
Member Avatar for seh1

Sorry I've asked a question about my GUI already but it's due Monday and I still having a few problems with it.... 1. When the GUIs opens it opens so that I have to change the size manually to view it i.e. the toolbar appears. Is there a way I …

Member Avatar for server_crash
0
148
Member Avatar for seh1

Hi, I wrote the following GUI. Its total crap but just need to get the basics working first. Its compiles fine and my Hello World test message comes up but no sign of the UI itself. Any ideas at all ? Much Thanks, Sean import javax.swing.JFrame; import java.awt.event.WindowEvent; import java.awt.Label; …

Member Avatar for seh1
0
123
Member Avatar for anupam_smart

So, the question is simple... in 'C' we have calling conventions in FUNCTIONS. Why? why we cann't(don't) build compilers,libraries to make our own calling conventions like... func()(lr);-for left to right calling convention. func()(rl);-for right to left calling convention. :eek:

Member Avatar for Ancient Dragon
0
119
Member Avatar for screwrup

[COLOR=SeaGreen]Hi guys, i hope u can help me solve this prob of mine. Im currently werking on this project and somehow im unable to insert this data into my database eventhough the data was being retrieved. Can anione help :sad: [/COLOR] <% option explicit %> <% response.buffer = true %> …

Member Avatar for DMR
0
211
Member Avatar for Jhun33

Hello everybody! I hope I'm in the right place to consult some programming issues. I'm Jhun and I'm new to the datagrid of VB 6. I'm currently working on a database application in which I would like to show records from an Access DB thru the datagrid. I tried to …

Member Avatar for Yomet
0
219
Member Avatar for winbatch

Is there a function that I can use that given a few vectors which elements are common to all? for example vector<int> a; vector<int> b; a.push_back( 1 ); a.push_back( 2 ); a.push_back( 3 ); a.push_back( 4 ); b.push_back( 2 ); b.push_back( 4 ); Something that will give me back the …

Member Avatar for Narue
0
126
Member Avatar for rgrwalker

I have the code written, compiling and no errors, I just need it to write to a file now. This is the code I have. Is the header piece correct? [code] #include <iostream> #include <string> #include <fstream> #include <cstdlib> using std::ofstream; using namespace std; class finalgrade { char firstName[20]; //to …

Member Avatar for Ancient Dragon
0
137
Member Avatar for allenhu
Member Avatar for Comatose
0
142
Member Avatar for Sulekha

hiiiiiiii...........i want to access random lines within a text file in my program,plz help me!!!!!!!!!! :rolleyes:

Member Avatar for KorB
0
93
Member Avatar for Kegtapper

Trying something out of my area of expertise, and wanting to experiment with WebClasses Anyway when I start VB new IIS project - [IMG]http://www.kegtapper.net/test/DaniWeb-IIS.jpg[/IMG] Then I get an error regarding [IMG]http://www.kegtapper.net/test/DaniWeb-error.jpg[/IMG] Then the Dsr won't load and this error [IMG]http://www.kegtapper.net/test/DaniWeb-Dsr.jpg[/IMG] I have PWS 5/IIS server installed on this Win2000 system. …

Member Avatar for Comatose
0
127
Member Avatar for Steel Rat

Hello All, I've been dabbling with PHP for a couple years now, nothing serious, but something has really been bugging me. I see -> and => being used all the time, almost as assignment operators but can't find squat about them in any operator list, either on php.net, or in …

Member Avatar for Steel Rat
0
134
Member Avatar for jack223

How do i get from 2 character words to 4 character words or 5 character words?? can anyone show me how to do that plz... Q) Consider a language of words, where each word is a string of dots and dashes. The following grammar describes this language: <word> ::= <dot> …

Member Avatar for jack223
0
167
Member Avatar for dx20021213
Member Avatar for techkar
0
235
Member Avatar for jkushner

i am interested in knowing how to make my resultset updatable. i am currently running jdk5.0 so it should already acquire such information, but the following code is throwing me errors. public String execute( String newPassword ) throws ClassNotFoundException { //private variables Connection conn = null; Statement stmt = null; …

Member Avatar for jkushner
0
117
Member Avatar for 3x108th

i am working on a program where the user enters a number and the computer will generate N number of characters and print them in all combonations. For example: enter number: 3 aaa aab aac aba abb abc aca acb acc baa bab bac bba bbb bbc bca bcb bcc …

Member Avatar for masijade
0
192
Member Avatar for tyczj

so im new to templates and i dont understand the errors im gettin in my code. the errors start where it says "sort double array" in the main and the errors are the same for all 6 function calls after that "cannot convert parameter 1 from double[10] to int []" …

Member Avatar for Rashakil Fol
0
135
Member Avatar for CLIPER

Hi, I would like to have a asp.net application that will let me extract or import data automatically to my Access Database. For that, I have a .csv file and I will then upload it and will be extracted into one of the table in my Access Database. Is there …

Member Avatar for CLIPER
0
201
Member Avatar for martinkorner

Would it be possible to display only a message e.g. "Page Loading..." until the page has fully loaded, then display the fully loaded page? I don't know if this can be done with Javascript, css or html. Would it also be possible to show what percent of the page has …

Member Avatar for tgreer
0
152
Member Avatar for brianotieno

Inheritance Create a class called Rectangle so that, given a height and width, the object would calculate and display the length, width, the perimeter, and the area. Do not include a constructor for this class Another class called Box is derived from the Rectangle class. This class given the breadth …

Member Avatar for Rashakil Fol
0
104
Member Avatar for Tlhokomelo

;) Hi there... How do you get java applet to instantiate(execute) an application. like a Unix terminal for instance... :twisted:

Member Avatar for Rashakil Fol
0
106
Member Avatar for jcrcarmo

Hello everyone, Greetings from Brazil! As shown in the code below, is it possible for me to add the new objects for tipoDT and sementesDT without having to do it one-by-one? Like, for example, getting the values automatically from the tables?.... How would I do that? The sementesDT table is …

Member Avatar for jcrcarmo
0
170
Member Avatar for vrushalinz1

hi, I have used a combobox to display a list of options like 1 Month,2 Months,3 Months and last option Other. Wen i click on "Other" , calender opens and i have to select the date. The problem is after i select the date and the calender closes i am …

Member Avatar for Gcox18
0
242
Member Avatar for Jon182

Hey guys I have been trying to expand the following code but have had no luck, is there anyway I could also make this code say if the previous character is space or a is comma? Thanks. [code] //temp is the array ch is a char pointer if( ch == …

Member Avatar for Ancient Dragon
0
234
Member Avatar for Acidburn

Hello, I've got a 2 diemsional array that ments to represent this: Name Address A 1 B 2 C 3 I've got the following code written for this: [code] char * tableArray[10]; [/code] should that be: [code] char * tableArray[10][10];? [/code] And I've got a pointer that populates only the …

Member Avatar for Bench
0
106
Member Avatar for jlouang

I need help making a program that include meter yards and feet. my c+ class is only in chapter 4 of the c++ book. function header should be void convertMeters(int meters) int main 1. ask for the number of meters 2. read in the number of meters 3. call your …

Member Avatar for jlouang
0
138
Member Avatar for Aperson

Im after a way to code the following login script in javascript. The login menu is a dropdown offering "log in for"~ select "x"minutes, hours, forever etc. not sure if its possible in javascript?

Member Avatar for tgreer
0
84
Member Avatar for javafan

Hi Please see [url]http://www.proxyslash.com/BuyPixelScript.com.htm[/url] For some reason when I go to the bottom, hovering is not working Source can be viewed using "View source" Please tell me what to do Also, I wanted to ask how to debug in such cases as when I wrote document.write("something here"), the moment it …

Member Avatar for xempth
0
113
Member Avatar for GTX

I'm just the master of disaster when it comes to PHP.... anyways, here's a new error: [code] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>300 Multiple Choices</TITLE> </HEAD><BODY> <H1>Multiple Choices</H1> The document name you requested (<code>/Forum2/includes/tiny_mce/langs/.js</code>) could not be found on this server. However, we found documents with names similar …

Member Avatar for DanceInstructor
0
89
Member Avatar for aamirbabar

hello everybody: i am new to VB.net I have to design a custom web server control which validates itself on client side and server-side. which means that i would not use a seperate custom validator for validation, but it should be a part of the custom control itself.and this validation …

Member Avatar for f1 fan
0
200
Member Avatar for bashi

I want to develop a software in C++, Java or VB to develop a software /tool to remove duplicates and to identify siblings. The Code/implement the BSN (Basic Sorted Neighborhood) method to remove duplicates. The Code/implement the BSN (Basic Sorted Neighborhood) method to identify the siblings (people who have the …

Member Avatar for f1 fan
0
173
Member Avatar for rgrwalker

I can't seem to get it working properly. Here's what I have thus far. #include <string> #include <iostream> class Student_t { char firstName[20]; //to hold the first name char lastName[20]; //to hold the last name int exam1; //to hold Exam-1-Grade int exam2; //to hold Exam-2-Grade int homeworkavg; //to hold Homework-Average …

Member Avatar for rgrwalker
0
242
Member Avatar for osean

im not sure exactly what its called or how to use it.. but im guessing its used to pass over variables as arguments to a function, ive only seen it in functions with this added after it: [B],...)[/B] somewaht similar to the code below.. [code]int myfunc(char *data,const char *data2[B],...[/B]) { …

Member Avatar for osean
0
169
Member Avatar for ilikerps

Hello, I know this question is stupid, but I cannot find an exact answer to it. I am using Eclipse, and have written some classes to be used as a small database editor for XML. It compiles and runs fine in Eclipse. However, I made it so that it can …

Member Avatar for ilikerps
0
301
Member Avatar for janito2008

I need help with a program for school. I have to write a program that asks for the number of days each employee is absent, the total number of days absent for all employees combined and the average number of days absent for all employees combined. I need help before …

Member Avatar for Bench
0
807
Member Avatar for rgrwalker

I have an assignment of the following. Create a class named Fractions having two integer data members named for a fraction’s numerator and denominator. The Class’s default constructor should provide both data members with default values of 1 if no explicit user initialization is provided. The constructor must also prohibit …

Member Avatar for rgrwalker
0
181
Member Avatar for niceguy21

1. The temperature of a city is obtained at a weather station in degrees centigrade. The job is to convert this temperature into its corresponding value in degrees Farenhiet. Assume the data type for the value of temperature to be 'double' and use the formula F=(9/5)*C+32. What is the input …

Member Avatar for Bench
0
143

The End.