132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ArrogantLegend

So I have writing to a file and reading from a file. Now I need to be able to find specific data that was previously entered and saved to that certain file. Here is the code I have so far. [CODE] { ofstream myFile ("words.txt"); if (myFile.is_open()) { myFile << …

Software Development c++ file-system
Member Avatar for ArrogantLegend
0
78
Member Avatar for SEOT

I need to sort a list with a bunch of numbers in separate columns. How would you sort a linked list with a bunch of numbers in separate columns. Anyone have any good examples to share or point me in the right direction. Please help - SEOT

Software Development c++ linked-list
Member Avatar for dougy83
0
129
Member Avatar for CaffeineCoder

I've been playing (more like struggling) with a few ways to illustrate an explosion for a Fireworks display in an application. One of my reference books dealing with Game Programming had a very nice solution, where the "explosion" is a progression of images. One problem: it relies or depends on …

Software Development java
Member Avatar for CaffeineCoder
0
148
Member Avatar for RMartins

I´m a begginer in java and i would like to know how can i create graphs like: y=ax+b for example thanks

Software Development java
Member Avatar for RMartins
0
95
Member Avatar for Jennifer84

I have a program that consists of 2 Forms in C++.NET. When I open Form1 that is my "StartForm", this Form comes up in the TaskBar as all applications and Folders etc on the computer. So when I open Form2 from Form1. Both these Forms will appear in the TaskBar. …

Software Development c++
Member Avatar for Jennifer84
0
114
Member Avatar for jeffige

Following along a tutorial I entered code for a person to enter the age of five students. Then, the program is supposed to divide the five ages and display the result. It allows me to enter the ages, but as soon as I hit enter after inputting the fifth age, …

Software Development c++
Member Avatar for highspeedhook
0
175
Member Avatar for Pilate

Hello python world, this is my first post I type print "hello world" into IDLE, hit return but it returns nothing also the pull down menus were HUGE. After reading and attempting to fix them they are nothing but --- now. actually not even as clear as --- 1 more …

Software Development python visual-basic
Member Avatar for sneekula
0
188
Member Avatar for Jennifer84

I have a .txt file that contains a lot of text. I will read the whole text file and output a new textfile with one change that is this: The txt file that I will read could for example look like this: [I]Value1 Value2 Value3[] Value4 Value5[][/I] What I am …

Software Development c++
Member Avatar for Jennifer84
0
99
Member Avatar for manu1001

I've an old C function that calls a function pointed by a global function pointer. How do I get it to call a member function of a class object determined at run-time. It'll be complied in a C++ project of course. My main motive is reusability here. So I don't …

Software Development c c# c++
Member Avatar for vijayan121
0
312
Member Avatar for hawisme000

hi every1, another prob cnt solve even after googling how can i load a notepad file or txt file on VB, what i mean is loading the notepad.exe with the file inside example i click the cmdLoad then it will open the file (on notepad) the file i want to …

Software Development file-system visual-basic
Member Avatar for hawisme000
0
244
Member Avatar for dkwantee

[CODE] [LIST=1] [*]void selectionsort(int numbers[],int arraysize) [*]{ int i,indes,large,j; [*] for(i=arraysize-1;i>0;i--) [*] { large=numbers[0]; [*] index=0; [*] for(j=1;j<=1;j++) [*] { if(numbers[j]>large) [*] { large=numbers[j]; [*] index=j; [*] } [*] } [*] numbers[index]=numbers[i]; [*] numbers[i]=large; [*] } [*]} [/LIST] [/CODE] i have been able to understand upto 7 line. can someone …

Software Development algorithm c++
Member Avatar for manzoor
0
114
Member Avatar for Jennifer84

If I have a file like this and I want to copy this "File1" to "File2", how is this possible to do. So I will copy File1 so the new file with have the name "File2.txt". I know that: std::copy member exists but are not really sure how to use …

Software Development c++
Member Avatar for Jennifer84
0
73
Member Avatar for amitahlawat20

class matrix { int **p; int d1,d2; public: matrix(int x,int y); //constructor allocates block of specified size /*I am not specifying contructor code*/ void get_element(int i,int j,int value) { p[i][j]=value; } int put_element(int i,int j) { return p[i][j]; } // [U][B]return statement encountering access violation during runtime , Help!!![/B][/U] };

Software Development c++
Member Avatar for mitrmkar
0
99
Member Avatar for ccclay

I am a beginner and want to learn the method to run python script in linux system so that an application can automatically execute a job. For example, I want my ubuntu to do the cron job with a script to play a mp3 file by vlc player at 9pm …

Software Development audio python ubuntu
Member Avatar for ccclay
0
98
Member Avatar for Gerritt

My online class just started into arrays, and I am getting this nasty error "passing arg 1 of `show_costs' makes pointer with integer without cast". I have no idea what the problem is. If anyone would be so kinda, please help. BTW: sorry, I have a habit of naming my …

Software Development c
Member Avatar for mitrmkar
0
200
Member Avatar for virubudy4u

Where length is declared in java and how it works?

Software Development java
Member Avatar for bugmenot
0
101
Member Avatar for COLLIESA

I have been given a problem in which i have to write a program to find the letter frequency and the average word length of a piece of text. i've written the code to promt for and read in the text file. i'm finding it difficult however to make the …

Software Development c
Member Avatar for jephthah
0
155
Member Avatar for newport

I'm working on a matrix addition/multiplication/transpose/inverse program and after entering the values of matrix A, I don't know how to call these values. [CODE] int setMatrixA(int r1, int c1, int i, int j){ printf(" Enter the number of rows:\n"); scanf("%d", &r1); printf(" Enter the number of columns:\n"); scanf("%d", &c1); for(i=0; …

Software Development c matrix-multiplication
Member Avatar for jephthah
0
103
Member Avatar for ctor

hi, i would like to code a toypiano using SDL and c++.--a simple program which will emit a note when a graphical representation of a piano key is clicked. how do i call a particular midi note(corresponding to piano note)using SDL.(i am beginner with SDL and midi stuff,with adequate knowledge …

Software Development c++
Member Avatar for ctor
0
87
Member Avatar for wollacott

i have to create a calculator which i have but i cant get it to run yet. i keep getting "12: error: subscripted value is neither array nor pointer" i'll highlight it for you. if anyone can fix it please do thank you. [CODE=c] #include<math.h> #include<stdio.h> int main() { float …

Software Development c
Member Avatar for jephthah
0
122
Member Avatar for ckins

I'm so new to arrays, I've read, I've made boxes...and yet I'm still clueless. So my task is to make a bingo card, so far I've made one column of numbers that don't repeat...something I'm very proud of, but to do that same thing with different ranges for 4 more …

Software Development c++
Member Avatar for VernonDozier
0
291
Member Avatar for madhusamala

Actually i am doing a ssc project. The student will enter his roll no in a web page which is designed by html. HIs marks subject wise have to be displayed wth the total marks . this will be done by using servlets and my html code is [code] 1, …

Software Development java web-server xml
Member Avatar for ~s.o.s~
0
155
Member Avatar for Techboy52

I have a Calculator program below that I wrote. I need it to write an exception handler that deals with non-numeric operands. I know the exception error i need is Number Format Exception but I am having a hard time with my try and catch block so I took it …

Software Development java
Member Avatar for ~s.o.s~
0
618
Member Avatar for Dark Pallys

Hey there everyone.. I'm pretty new in this forum and also with Assembly, to be honest I haven't programmed anything in Assembly. I'm a VB Programmer and I work with some C/C++ But well that's not the reason I'm here hehe. On the forum I work at one of our …

Software Development assembly encryption
Member Avatar for Dark Pallys
0
103
Member Avatar for tayspen

If i were tto implement somthing like this :idea: cmd \k shutdown.exe -r on a button click would that saftley restart y comp. from that app. if not how would i do this :?:

Software Development
Member Avatar for peterpollen
0
222
Member Avatar for MasterDucky

Hi there! I'd like to check if a string is preceeded by another one. More precisely in this example i would like to check if there is "lion" right before "sleeps". Im using rfind() to search backwards but for some reason it starts the search from the beginning of the …

Software Development c++
Member Avatar for MasterDucky
0
140
Member Avatar for regalla

i have two forms and on each form one text box having access database behind and is connected to forms by using data bound controls. My problm is that what ever value i enter form1.text1 , it should come in form2.text1. iam using code like this in form1 lost focus …

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
93
Member Avatar for trick

I have this C program which produces a .csv [comma separated variable] file, from an uploaded .txt file. The uploading part and writing the .csv file went fine, however, my problem is that the file can't be downloaded by the user. Can you tell me what's wrong missing with my …

Software Development c
Member Avatar for peterpollen
0
144
Member Avatar for Altarium

I'm working on writing a small program that jumbles up a word an allows the user to move letters around in a string until the word us un-jumbled. For Example: If the given word is "movie" The program might jumble it to say "vmioe" In which case "v" would be …

Software Development python
Member Avatar for bgeddy
0
216
Member Avatar for vesper967

I'm working on a project that is supposed to parse through a text file (about the length of a book or small dictionary) and print out the index. The program does not need to keep track of the frequency of the word. The data structure I'm using is a binary …

Software Development c++ data-structure
Member Avatar for vijayan121
0
153
Member Avatar for nickthedivil

Hey I know i am over looking somthing small but can i get some help on line 23 [code](strcmp(chartryname, charname)==0 && (chartrypassword, charpassword) ==0){ [/code] I know this will not work its just to show what i am trying to do. I need to check two pairs of strings how …

Software Development c++
Member Avatar for amitahlawat20
0
114
Member Avatar for kemboy

[code=cplusplus] /////////interface //appication.h #ifndef APPLICATION_MAIN_H #define APPLICATION_MAIN_H #include<string> using std::string; class appliance { protected: string Manufacturer; string Type; public: appliance(string a,string b); ~appliance(); void setManufacturer(string a); string getManufacturer(); void setType(string b); string getType(); void showDetails(); }; #endif [/code] [code=cplusplus] ///////implementation//////////////////// //appication.cpp #include<iostream> using std::cout; using std::cin; using std::endl; #include<string> using …

Software Development c++
Member Avatar for kemboy
0
92
Member Avatar for digitz101

I'm having problem w/ this codes in bright red, when i'm trying to enter a name the first two letters are always not shown or when inside the inner looping, it don't show what the inner looping is containing. [code] #include <iostream> #include <iomanip> [COLOR="red"]#include <cstdio> // used for reading …

Software Development c++ objective-c
Member Avatar for Ancient Dragon
0
89
Member Avatar for curt1203

I have an assignment to do and i have a good portion of it already complete...The only thing i need is to validate that the number can only have one decimal point and the output of the number that has been validated is multiplied by two.....See the assignment question i …

Software Development c++
Member Avatar for curt1203
0
115
Member Avatar for Joatmon

Hi, after searching this forum adequately (I think) I have decided to post this thread asking for an easy to understand resource that describes how to do multithreading on C++ in windows. The current ones I am finding out there on the web either 1. Simply don't work or 2. …

Software Development c++ multithreading
Member Avatar for Ancient Dragon
0
110
Member Avatar for jalo3030

I need help work wil not compile this is what I have to do. Write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions (define these as constant variables): Federal Income Tax: 15% State Tax: 3.5% Social …

Software Development c++
Member Avatar for Ancient Dragon
0
120
Member Avatar for jalo3030

Whats am i doing wrong it is not compile Write a C++ program that creates customers’ bills for a carpet company when the following information is given: a.The length and the width of the carpet in feet. b.The carpet price per square foot. c.The percent of discount for each customer. …

Software Development c++
Member Avatar for Ancient Dragon
0
286
Member Avatar for jalo3030

What am I doing wrong with this one. I'm a beginner Write a program that takes as input any change expressed in cents. It should then compute the number of half-dollars, quarters, dimes, nickels, and pennies to be returned, returning as many half-dollars as possible, then quarters, dimes, nickels, and …

Software Development c++
Member Avatar for Ancient Dragon
0
430
Member Avatar for jesseb07

hey, been working on a program and I had a need for a password line (btw I am using linux w/ gcc compiler). while I was making it I checked the net and found there's no getch() for linux, so I frankensteined one from several sources and got it to …

Software Development c++
Member Avatar for jesseb07
0
2K
Member Avatar for The Midnighter

Hey there folks. I am trying to write a program that will take in a paragraph file, and compare it against a "Dictionary" text file, which is being inserted into a Binary Search Tree. Here's what I've got so far: [code]#include <iostream> #include <string> #include <fstream> #include <iomanip> #include <cctype> …

Software Development c++
Member Avatar for chaosatom333
0
105
Member Avatar for Crushyerbones

I'm trying to do something similar to this: [code] int output_type=1 if (output_type==1) char real_out[7]="binary"; else if (output_type==2) char real_out=[6]"octal"; else if (output_type==3) char real_out[8]="decimal"; else { char[20]real_out="This REALLY shouldn't have happened.\n";} } [/code] I know the coding is kinda messy but I basically want the variable "real_out" to contain …

Software Development c python
Member Avatar for Crushyerbones
0
113
Member Avatar for Shveetis

I am trying to write a code for sending a mail in JAVA.. And I am getting the error [code] javax.mail.MessagingException: Could not connect to SMTP host: mail.yahoo.com, port: 25; [/code] What can my mistake possibly be..?? Please help me find my mistake..

Software Development java
Member Avatar for Shveetis
0
268
Member Avatar for adnanius

hello I'm new to c++ and I'm writing a program for a college project. I'm getting an error I don't understand, if someone can help me with it I'll be thankful Oh, and by the way, the functions names are in French, hope this wont be a problem. Here is …

Software Development c++
Member Avatar for adnanius
0
705
Member Avatar for ITbull

Hi i'm getting an error CODE : ERROR: E2356 TEXTSORT.C "TYPE MISMATCH IN REDECLARATION OF 'SWAP' and i am exhausted trying to fix it...if you could help me please i would appreciate it. [code=c] void sort(char* string_array[], int length) { int i; int exchange_done; do { exchange_done = 0; for …

Software Development c
Member Avatar for mitrmkar
0
137
Member Avatar for farag

Hi I need urgent help doing this program (attached here) I must make it within hours, please help me Thanks

Software Development c++
Member Avatar for farag
0
83
Member Avatar for jeffige

I have been following a C tutorial and using DevC++. When I write this code: [CODE]#include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; }[/CODE] and try to compile and run, I get this file popping up... [*] cstddef // Copyright (C) 1997, 1998, …

Software Development c++ file-system
Member Avatar for jeffige
0
345
Member Avatar for jeffige

Is there any way to get rid of the "Press any key to continue" in the Dos window.:-/ I am using DevC++ ver. 4.9.8 It gets alittle annoying after awhile. And yes, I am new to programming.

Software Development c++
Member Avatar for jeffige
0
206
Member Avatar for bornok15

How can i make a configuration in INI and XML so that i won't hardcode the location of my database and other configurations, and i would just change it from a form within my program? Can anyone help me? thanks..

Software Development vb.net xml
Member Avatar for Ramy Mahrous
0
216
Member Avatar for lifei

hi..i know this question sounds like stupid, but there is nobody that surrounding me i can ask. i had already found the other people program at [url]http://www.ucancode.net/Visual_C_MFC_Example/Create-2d-bar-line-pie-chart-vc-example.htm[/url] however, there are a few things that i am not sure about it. can someone help me to solve it? what is it …

Software Development c++
Member Avatar for Ancient Dragon
0
171
Member Avatar for guitarrick

Hello out there!! I am trying to search a string for the proper format of a date and time...... My date will simply be: ##/##/#### and my time will simply be ##:##A.M. or P.M. I am thinking I can use something like : [CODE=C++] size_type find_first_of(CharType ch, size_type indx = …

Software Development c++
Member Avatar for Joatmon
0
160

The End.