199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cosmos22

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 …

Member Avatar for Ancient Dragon
0
110
Member Avatar for deadrabit

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 …

Member Avatar for Ancient Dragon
0
265
Member Avatar for imnolongerhere

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 …

Member Avatar for WaltP
0
92
Member Avatar for Dr_Pepper

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++) …

Member Avatar for Dr_Pepper
0
123
Member Avatar for k2k

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

Member Avatar for deadrabit
0
341
Member Avatar for Nolwen

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, …

Member Avatar for Nolwen
0
99
Member Avatar for sagedavis

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 …

Member Avatar for sagedavis
0
105
Member Avatar for ivay14

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 …

Member Avatar for John A
0
146
Member Avatar for nikk

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 …

Member Avatar for nikk
0
111
Member Avatar for eddy556

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 …

Member Avatar for ~s.o.s~
0
81
Member Avatar for gallantmon1

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; } …

Member Avatar for Aia
0
119
Member Avatar for Theanthropical

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 …

Member Avatar for John A
0
202
Member Avatar for nikk

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 …

Member Avatar for ~s.o.s~
0
91
Member Avatar for gccriaz

can some one provide me a sample programe in vb.net which can just save, edit, search and delete records. thanks riaz

Member Avatar for Jade_me
0
92
Member Avatar for prashish_raj

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"> …

Member Avatar for nav33n
0
159
Member Avatar for edek

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 …

Member Avatar for edek
0
92
Member Avatar for Morty222

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 …

Member Avatar for coffeepot!
0
151
Member Avatar for lordsvae

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 …

Member Avatar for vijayan121
0
96
Member Avatar for delosoa

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 …

Member Avatar for javaAddict
0
110
Member Avatar for number87

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; …

Member Avatar for mitrmkar
0
169
Member Avatar for nschessnerd

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... …

Member Avatar for nschessnerd
0
225
Member Avatar for curt1203

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 …

Member Avatar for curt1203
0
250
Member Avatar for kv79

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 …

Member Avatar for kv79
0
64
Member Avatar for kunalcrazycoder

Well Can any one help me and say how to read/write a mdb file in c++:'(

Member Avatar for kunalcrazycoder
0
112
Member Avatar for emhmk1

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 …

Member Avatar for richie513
0
91
Member Avatar for sonygamer

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 …

Member Avatar for Arpy Giri
0
295
Member Avatar for Crazycfk

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 …

Member Avatar for Crazycfk
0
159
Member Avatar for ChadW

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 …

Member Avatar for r.anshul
0
130
Member Avatar for lafalot

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.

Member Avatar for MattEvans
0
119
Member Avatar for abidbhat

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 …

Member Avatar for vijayan121
0
83
Member Avatar for j_rodwilliams04

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 …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for T-Mac1

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 …

Member Avatar for Aia
0
136
Member Avatar for OmniX

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 …

Member Avatar for OmniX
0
94
Member Avatar for theskindiver

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 …

Member Avatar for MidiMagic
0
110
Member Avatar for r.scan

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 …

Member Avatar for MidiMagic
0
93
Member Avatar for johnr

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 …

Member Avatar for johnsquibb
0
125
Member Avatar for OnIIcE

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 …

Member Avatar for OnIIcE
0
413
Member Avatar for TobbeK

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() …

Member Avatar for TobbeK
0
98
Member Avatar for hyperzero4

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 …

Member Avatar for John A
0
4K
Member Avatar for kunalcrazycoder

Can any give me an example of c++ that ejects out the cd drive(where the cd/dvds are intserted).

Member Avatar for Duoas
0
98
Member Avatar for shrutijadhav

I am looking for a front end/graphical user interface(GUI) in linux which supports C language as backend.

Member Avatar for Duoas
0
154
Member Avatar for truckman

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 …

Member Avatar for sagedavis
0
82
Member Avatar for Morfeus

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 …

Member Avatar for johnsquibb
0
132
Member Avatar for mario123

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?

Member Avatar for Narue
0
404
Member Avatar for dexter1984

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 …

Member Avatar for dexter1984
0
90
Member Avatar for T-Mac1

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 …

Member Avatar for VernonDozier
0
913
Member Avatar for +--RagS--+

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 …

Member Avatar for +--RagS--+
0
108
Member Avatar for dexter1984

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]; …

Member Avatar for SpS
0
165
Member Avatar for kiwanz7

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 …

Member Avatar for masijade
0
119
Member Avatar for vishalkhialani

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 …

Member Avatar for vishalkhialani
0
164

The End.