199,114 Archived Topics
Remove Filter ![]() | |
Hello, I am pretty new to C++, and I have a question: I am, and have been using Dev-C++ I used this code, to delete a text file on my desktop. The first time around, it worked perfectly. Given the file example name of "dafile". #include <stdlib.h> // needed to … | |
hello, my head has been spinning around a way to do this. the best way to describe it would be with psudo code so... ReplaceLine (string file, string keyword, string str) { open file "file" search for first line containing keyword "keyword" replace that entire line with string "str" save … | |
my teacher gave me an assignment to complete the blackjack program but I have little understanding of it. I have the majority of it but i'm missing pieces. [B]NOTE: All of the sections where it says TO DO are the missing pieces.[/B] PLEASE HELP. [code=c] #include <stdio.h> #include <stdlib.h> #include … | |
my question is how can i make my program not to display any unique combination more that ones? //*****f04.cpp***** //Name: //Date: 02 - 17 - 08 #include <iostream> using namespace std; int main () { // #1 int a, b, c; for (c = 1; c *c <= 100; c++) … | |
Does anybody know what class function is for checking if a string has any letter in upper case? string FirstName_LastName any function return the idex of char[] that is upper case ? thank you | |
Does anyone have succesfuly run Classic ASPvb on IIS7 on Vista? As I am a complete beginner, I started to work with ASP on IIS5, and it was a breeze to set up, just by curiosity, I copied and move few sites to an IIS7 server on a vista machine, … | |
Hi all, At work, we are using prototype vs 1.5 (don't know the sub version off hand). I have been doing all of my development in firefox. The problem is almost 80% of our site's users use IE6 or IE7, and since they are on their company computers, they do … | |
Hi! I need help on writing a program that puts 10 "char" values into an array, the program have to sort the values of the array into ascending order. Sample output: Array before sorting: Array[10] = [ E, F, Y, R, Q, A, T, O, W, X ] Array after … | |
Hi friends, I'm creating a website for my college project. I came to know that to run it through tomcat, you need to create web.xml file first. i saw the readymade file in root directory of tomcat, but could not understand, how to modify (or create) it so as to … | |
I know I'm probably being dumb here but I cannot seem to compile a java bean. Here is my code: [code] package beans; import java.sql.*; public class example { public void test() { out.println("The bean worked"); } } [/code] I get the error: example.java:5: class Example is public, should b … | |
I need help on how to properly combine two programs into a single program. This is the first program: [code] int main() { FILE *input, *output; char doc; input = fopen("input3.txt","r"); output = fopen("output.txt","w"); while(!feof(input)) { doc=fgetc(input); if(doc==EOF) break; else { if(doc==';') { while(!feof(input)) { doc=fgetc(input); if(doc=='\n') goto out; } … | |
hi,I have a problem here. [CODE=cpp]#include "stdafx.h" int main() { int speed, dist, time, force, mass, masss, accel, velo, moment; int choice, choose; char pilih, pick; do{ printf("\t\t\tWelcome to Physics (Force and Motion)\n"); printf("\t\t***************************************************\n"); printf("\t\t\tCHOOSE SECTION\n\n"); printf("\t1. FORCE\n"); printf("\t2. SPEED\n"); printf("\t3. MOMENTUM\n"); printf("\t4. END\n\n"); printf("Choice: "); scanf("%d", &choice); switch(choice){ case … | |
I'm stuck here. Please Help me! I've created a feedback form which takes name, Email Id & Comments from users. On submit button, i want to save the entered details along with the current date to the UserDetails table, so that, when admin logs in and wants to see the … | |
can some one provide me a sample programe in vb.net which can just save, edit, search and delete records. thanks riaz | |
i have been getting this problem n this is getting into my nerves.. it works fine on the web.. but i need to present it on the intranet tomorrow "sunday" it gives this damn error. of mysql_fetch_array.. can u plz help me CODE: <div id="right_nav"> <div id="cga_events"> <div id="navtop" align="center"> … | |
Hi! I have a problem with this line: GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, LOCK TABLE ON test.* TO user1@localhost IDENTIFIED BY "abcdef"; Here is what I do: [CODE=SQL] >mysql -h localhost -u root -p Enter password: ******* Welcome to the MySQL monitor. Commands end with ; or \g. Your … | |
Can someone please take a look at this and help me do one thing? I am uploading images to a directory and updating the users record with the photo they upload. Problem is, I could have someone upload a photo with the same name as a photo that is already … | |
Allright, this is the deal, im trying to use Install Sheild to install a program I wrote in java. But I cannot make shortcuts on the desktop and/or START menu linking to the .jar file, it has to be a .exe file, so I need to make a simple .exe … | |
Can you help me with this?? The total will be displayed only when the user type -1. And it will continue looping if you will not type -1. And it will also continue to add the total(that will be displayed only if you type -1). import javax.swing.JOptionPane; import java.text.DecimalFormat; public … | |
I've been trying to convert my code from using iostream to fstream but seems the output file is always empty.. this is my original code [CODE]#include <iostream> #include <cstdlib> #include <ctime> #include <iomanip> using namespace std; struct RationalNo { int RatNo [20]; }; struct RationalInfo { RationalNo rational; int quotient; … | |
Hey, so this is killing me, I have a class category, and the equals looks like this: [code=java] public boolean equals(String s){ return s.equals(name); } [/code] this is because i have an arrayList of categories, and i want to do: [code=java] int i=catList.indexOf("some name"); [/code] but it always returns -1... … | |
I am having all kinds of problems with my assignment. I have worked on it for hours and cannot get it to work properly. I am new to programming and it gets frustrating very fast for me. Here is the code I am currently working and i have attached my … | |
Hi I want to know is it possible to connect C with VBA . And can you please give me the link of some explain or you can by your self . So my question is how to connect C and VB 6 . Thank you for your effort of … | |
i am having a problem with this snippet of code, please could somene take a look and tell me what i need to do to make it work in most browsers, so far it only seems to works in IE and Opera. thank you [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML … | |
I'm trying to use the switch function to compute the resistance of resistors. Basically, a person types in 3 letters, each representing a color; each color has a different value. Then v throws back the resistance by going through the equation. This is what I have so far. [code=c++] #include … | |
I am to make a program that finds the value of a resistor after inputting 3 letters those letters of are of the color on the resistor. i have written a program to do so but the value does not follow the equation. I am not sure if the program … | |
I've created a web browser (similar to the beginners project) with the following items: [LIST] [*]1 Text Box (for url entry, with "enter" support) [*]4 Nav buttons (Forward, Back, Go, Home) [*]1 Tabcontrol holding 2 tabbed pages[/LIST]Question: How do I get TabPage2 to navigate to the entered URL? Currently, only … | |
Hi, Please help! We have data that was input into SQL Server using activedit. This data has all kinds of inline styles, and it looks horrible. Is there a way to parse the data and get rid of all inline styles? Thank you for any help you can provide. | |
can we make any control(like edit box) as the standard output device so that the result of the process can b directly shown in that particular edit box without any interaction ..............i think it is possible when we run the procees using createProces() and pass appropriate arguements.......but i am not … | |
Hello I'm in a begginer C++ programming class. I don't understand stand my teacher. I'm looking for some help with this program. Its suppose to check if the date is valid, if the date is valid it should output the, if not then it shoud automatically loop back to the … | |
Could someone help me please? I can’t get it to work, and it wouldn’t show me salary in two significant digits for example Enter # of hours worked (-1 to end): [B][COLOR="Red"]41[/COLOR][/B] Enter hourly rate of the worker ($00.00): [COLOR="red"][B]10.00[/B][/COLOR] Salary is [COLOR="red"][B]$415.00[/B][/COLOR] Enter # of hours worked (-1 to … | |
Hi everyone This is sorta an open question. I have a message systems that allows any third party person to send messages to the administrators and is done via mysql. There is no real problem now but I was told what if someone wanted to abuse the system and bombard … | |
Hi, I'm bedeviled by the problem of wanting to write an article with an image in it. What I need to do is have a table cell with an image positioned in the upper left hand corner and then have the text wrap around it. Up to now, I've had … | |
Does anyone know how to remove the title bar from a popup window? I have a close label so I do not need any of the windows buttons in the title bar. I have read that you cannot disable the title bar for ie 5 and later and need a … | |
Hi, I'm very new to PHP. Any help is appreciated. I wrote a script that should create a flat file and store information in the flat file that was entered in a form on an earlier page. The script runs successfully and with no errors, and creates the file with … | |
hello! im trying to rotate a tbitmap image using scanlines, and cant figure out how to do it! ive go it working moving pixel by pixel but i want to be able to speed it up using scanlines. im using borland 6 C++, and doin some reasearch they (borland) gave … | |
My looped output looks like this Link 1, Link2 , link3 , link 4 .....and so on I need a way to count the RS in either words or chars to cut it if needed in this manner: Link1, Link2, Li ..... Have tied to measure the length with Len() … | |
Hello, I'm very, very new to C++ and I'm taking computer science course right now for fun. I really want to learn C++ but I'm having a lot of trouble with this new homework assignment and I'm hoping I just take it one step at a time so I completely … | |
Can any give me an example of c++ that ejects out the cd drive(where the cd/dvds are intserted). | |
I am looking for a front end/graphical user interface(GUI) in linux which supports C language as backend. | |
Hi eveyone can just a few Q (1 can someone tale me if u can stop screen shot been taken of my web pages as this is a problem for me i need to stop that from happen. (2 how can i stop the print srceen from working on my … | |
hi i have been lookin in the net but i can t found anything help me. i want to sell Vodafone Code in my website like this page [url]http://networkcodes.co.uk/getcodes.php[/url] for exemple and i email user back with code after payment done via card credit or paypal its possible to do … | |
is there any advantage in using int main() over void main()?. and when you return a value in int main(), where does the returned value go? | |
Hi guys, I need a little help in my assignment. Got it down to the last part but I don't really get recursive functions. [code=language] #include <iostream> #include <ctime> using namespace std; void constructArray (int [], int); void swapArray (int [], int); int printArray (int [], int); const int MAX … | |
Develop a program that will determine the gross pay for each of several employees. The company pays “straight time” for the first 40 hours worked by each employee and pays “time-and-a-half” for all hours worked in excess of 40 hours. You are given a list of the employees of the … | |
Hello, I'm using a askdialog box from tkinter with a form. My problem is when I use "print" or "return" to get the selected directory it prints it to the terminal (if open) and I would like it to print to an Entry textbox. For example: [code=Python] from Tkinter import … | |
Hi guys, I need some help with arrays. [ICODE] #include <iostream> #include <ctime> using namespace std; void constructArray (int [], int); void printArray (int [], int); const int MAX = 30; int sizeArray = rand() % MAX; int main() { srand(time(NULL)); int makeArray [sizeArray]; constructArray [makeArray, sizeArray]; printArray [makeArray, sizeArray]; … | |
I have a problem in my programming ....kindly help me...how to implement this problem.... Make a Java application that will create and implement the following: Global data: static int[] num1 = new int[10]; static int[] num2 = new int[10]; static int[] num3 = new int[20]; Methods: //arrNo value is either … | |
Hi, I am working on a project where I need to save data which the user inputs for future reference and manipulation. I know one can use a database or a binary file. I would like to use a database but I don't know where to begin. I know one … |
The End.