132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for uhmyeah

hello, i would say im new to c++, my most advanced program was just a simple tic tac toe application. I am interested in learning more about c++. I have searched A LOT and cant find any good ebooks or links. I need links or ebooks to go further! please …

Software Development c++
Member Avatar for NathanOliver
0
171
Member Avatar for jaysean

Hello forum, I am wondering if it is possible to do a mark-up in free text by comparison with some string. Suppose I have a file with several sub-strings, one in each line. I have another file which contains the full text from where the sub-strings are generated. Is it …

Software Development java
Member Avatar for jaysean
0
106
Member Avatar for hisugan

need c++ source code using array and loops.... i got a little problem thiking of it...

Software Development c++
Member Avatar for mattloto
0
268
Member Avatar for moroccanplaya

i just want to knwo why no one uses C these days ?

Software Development c
Member Avatar for griswolf
0
361
Member Avatar for leone86

hello there, im new to C++ and i tried to design this code but the code is not running and i there is the code below [CODE=cpp]#include <iostream> using std::cout; using std::cin; using std::endl; #include <string> using std::string; using std::getline; class staffMember{ public : void setFirstName (string fname){ FirstName = …

Software Development c++
Member Avatar for Radical Edward
0
114
Member Avatar for wildguard

hi, im having trouble putting msgbox.. where do i put MsgBox("Passenger not found!", MsgBoxStyle.Critical, "Error") If name is not found from text file help thankz in advance VS 2010 [CODE] Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click Dim i As Integer Dim removename As String …

Software Development vb.net
Member Avatar for wildguard
0
164
Member Avatar for dansnyderECE

So, I've learned my lesson in the past. I'm not experianced enough to design a program from start to finish in an elegant way. I'm not looking for code in any way, just some code flow suggestions if anyone has any. This is what I'm trying to do: -Do a …

Software Development assembly c++ file-system
Member Avatar for Radical Edward
0
100
Member Avatar for spinachio

I have a text file that looks like Y07976.1/124-271 Y07978.1/48-201 and I want to remove everything after the forward slash such that in the end the text file will look like Y07976.1 Y07978.1 I am currently learning perl and I think regular expressions are going to be a trouble for …

Software Development perl
Member Avatar for spinachio
0
101
Member Avatar for ippomarley

[code]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; class ll{ public static void main(String[] a) { FileReader fr; try { fr = new FileReader (new File("C:\\University Study\\Component Engineering\\Assignments\\Assignment !\\yourFile.txt")); BufferedReader br = new BufferedReader (fr); String line = br.readLine(); while (line != null) { System.out.println(line); line = br.readLine(); …

Software Development engineering file-system java java-swing
Member Avatar for peter_budo
0
131
Member Avatar for valatharv

Please suggest if there is any best way around on executing jar from java code then killing parent java code. a)I have desktop based java application say "Monitor.java" which runs every 5 minutes. b) How can I [B]START external java application[/B] say "execute.jar" from Monitor.java [B]THEN EXIT/KILL[/B] Monitor.java I tried …

Software Development java
Member Avatar for valatharv
0
14K
Member Avatar for cmsc

for example I have this file named 'bst.h'. do i need to compile it so i will be able to use it? what do I need to write in the terminal to run my program? thank you very much.

Software Development c
Member Avatar for Saravanan5
0
73
Member Avatar for judithSampathwa

hi there, I need to upload files to the mdf file in visual studio 2008 standard edition. the database table which takes the file data in to varchar datatype. i convert the data to byte and then save it in a varchar type field. the code is below for uploading …

Software Development file-system open-source visual-studio
Member Avatar for nick.crane
0
166
Member Avatar for noon580

I have a problem with solving the follow question. Write a SortedMerge() function that takes two lists, each of which is sorted in increasing order, and merges the two together into one list which is in increasing order. SortedMerge() should return the new list. If there anyone could help me …

Software Development java
Member Avatar for masijade
0
118
Member Avatar for pi_lord12

So to get practice writing applets, I tried to write one that simply draws a chessboard in a 160 x 160 window. I am pretty sure I got the code right for both the html and java files, and I have the html file in the same directory as my …

Software Development image java
Member Avatar for pi_lord12
0
120
Member Avatar for Ayaat Monem

Hi all : ) I'm coding a snake game, now the problem is to get the input from the user if I used getch(); the snake will wait until she got an input from the user, so how can I let the snake run normally and expect input in any …

Software Development c++
Member Avatar for sinogoya
0
103
Member Avatar for sadhawan

Hi guys, i have about 500 folder and each folder has 2 text files.I need to insert all those files in database.Right now my program has to read each and every folder, is there any other alternative to this. Thanks

Software Development
Member Avatar for sadhawan
0
98
Member Avatar for Chosen13

Help please, I wrote a script in C++ for loading a map file, parsing it with XML, and outputting the objects in the file. The XML parser works great, but it won't open the file. I have it exiting if the file doesn't exist, and the file doesn't load, even …

Software Development c++ file-system xml
Member Avatar for thelamb
0
249
Member Avatar for Greyhelm

I have been working further on my text adventure (see thread: [url]http://www.daniweb.com/forums/thread285737.html[/url]) and have come to the part where I would like to manage the change of time (of day) and adjust the date as time passes. I have some code that does it, but was wondering if there is …

Software Development python
Member Avatar for Greyhelm
0
530
Member Avatar for ceyesuma

Hello Could someone tell me if I had a table and I have the meta data for the columns,could I somehow collect the table name,column name and the data type and save it in something so as I could have these attributes to draw from in other classes? Thanks

Software Development java
Member Avatar for NormR1
0
76
Member Avatar for angraca

I am new to python and this is my first program. The program factorize a number given by a user. It also makes a list of all the primenumbers, that it finds and stores them in a file. Is there anybody who can see a way that I can make …

Software Development python
Member Avatar for vegaseat
0
940
Member Avatar for edk.theg8

Hi, I want to be able to copy my existing code, with all highlighting & formatting preserved to a file. Is it possible? Evan D. Knight

Software Development c++
Member Avatar for Radical Edward
0
44
Member Avatar for addie20

how I am new to c# and I have a question I have to create a form, it is of 2 pages so I created 2 different forms, now based on the database table, I have to fill few textboxes in form2 in order to overcome the exception of crashing …

Software Development c#
Member Avatar for sadhawan
0
193
Member Avatar for frozie

Ok, how do i make so if ihave a form on and press a button and a new form opens on the right side of the first form and follows when i move the first form and also i cant move the second form from the side of the first …

Software Development vb.net
Member Avatar for evisi
0
143
Member Avatar for kiwimoosical

Ok, so I am having some trouble with my calculator code. The two issues I am having are: 1. I cant get my program to produce decimals, I have tried using "float" but that didn't work so i don't know how to fix that. 2. I don't know how to …

Software Development c++
Member Avatar for Taywin
0
102
Member Avatar for jakx12

How would one get the values from a wav file. Would you use a data stream or audio stream? Thanks, jakx12.

Software Development audio file-stream java
Member Avatar for jakx12
0
73
Member Avatar for Estella

Hi masters, i need codes to cut, copy and paste text from textbox. i know that i can use shortcut like Ctrl + X, Ctrl + C and Ctrl + V, but i need to do it in code. please help me Anyhelp will appreciated much Regards Ela

Software Development vb.net
Member Avatar for vamsikrishna20
0
3K
Member Avatar for chavanak

Hi, I have written a script which parses a UTF-8 text file and prints the required result. The code is below: [CODE] import os import sys import string import csv import codecs usage = "usage: Specify the directories for files and the RDOCK cut-off value" tm_append=[] if len(sys.argv) < 1: …

Software Development python
Member Avatar for Beat_Slayer
0
1K
Member Avatar for ChocoCrisp
Member Avatar for rapids79

Hi, I am trying to use strtok()..the idea is to split the text in tokens seperated by ";" as the delimiter. The text is in two parts like: apple;mango (apple being the first part and mango being the second I want to split into). The code I'm using: [CODE] #include<stdio.h> …

Software Development apple c
Member Avatar for nbaztec
0
184
Member Avatar for broli100

I want to make program in WINApi -it is simple window with one textbox - if you will press key 'A',it jumps to textbox(like when you click on it,and then you will be able to write to it). Only thing I dont know is if in WINApi is a function …

Software Development c++
Member Avatar for amart
0
401
Member Avatar for iamcreasy

if i open a file ouput using [B]ofstream[/B] it's openmode is set to [B]ios::out[/B] and [B]ios::trunc[/B]... what I have to do, if I want to have only the ios::out flag...not the ios::trunc flag.Because, it is deleting all the previous contents. How do i undo this flag?or, what to do, if …

Software Development c++ ios
Member Avatar for iamcreasy
0
184
Member Avatar for cmsc

i have this program that should print first name, middle name and last name. it almost works, but when I print strings, weird characters appear. I don't know how it's called, but instead of strings appearing, those characters appear. does anybody know why? I included parts of my program here: …

Software Development c
Member Avatar for cmsc
0
91
Member Avatar for Krefie

Ola! This is my first post so i hope its not a stupid one ^_^ ok, I have large quantities text i want to read into my jTextArea, to keep it all nice and clean i use tabs(6 chars long), the problem is that sometimes the words or strings get …

Software Development java
Member Avatar for Krefie
0
176
Member Avatar for whattever

[CODE]/* < newton.c > */ #include "smp.h" main() { void USERF(double *,double *,double); double x0,e; int n,NMAX; /*** ステップ1 データの入力 ***/ printf("\n初期値 x0 = "); scanf("%1f",&x0); printf("\n収束判別定数 p = "); scanf("%1f",&e); printf("\n最大反復回数 NMAX = "); scanf("%d",&NMAX); /*** ステップ2 ニュートン・ラプソン法の計算 ***/ S_NEWT(&n,&x0,e,NMAX,USERF); /*** ステップ3 計算結果の出力 ***/ printf("\n反復回数:N=%d 解:X(N)=%10.71e",n,x0); } /* < …

Software Development c
Member Avatar for nbaztec
0
503
Member Avatar for SCoder1

Hi I don't really know where to put this but how does one use WxWidgets with c++. I just need to know the syntax or structure of it. For example: What would wxwidgets equivalent be for the native code... [CODE] #include <iostream> int main() { int num1, num2, total; std::cout<<"Enter …

Software Development c++
Member Avatar for daviddoria
0
89
Member Avatar for DerKleineDude

Hello, I'm a Python/SPSS (DANIWEB) beginner and I'm having a hard time getting classes, functions and methods into the right order. I want to write a script for SPSS where I can read text out of an text object from the SPSS-output file. My code looks like this: [CODE=Python] import …

Software Development mathematics python
Member Avatar for DerKleineDude
0
465
Member Avatar for maney

how many ways of updating a file do we have in c++?

Software Development c++
Member Avatar for nbaztec
0
107
Member Avatar for red_evolve

Hi. I have just been introduced to string tokenizer in one of the java lessons. It can remove characters from an array of strings. So, I am wondering if it could remove a string from an array of string. For example: "the fish was eaten by the cat". I'd like …

Software Development java
Member Avatar for skylover87
0
563
Member Avatar for becon

Hi everyone, I would like to parse this text file PREVIT:nmrValidate_166w.pdb atoms "A -750 -GLU -CG " and "B -54 -GLN -CG " 3.8759 A apart atoms "A -750 -GLU -CD " and "B -54 -GLN -CG " 3.8447 A apart atoms "A -750 -GLU -C " and "B -51 …

Software Development perl
Member Avatar for becon
0
296
Member Avatar for Kingcoder210

Hi! All I need to know how can I secure my program by the serial number of local pc or WMI Code Creator? I want to secure my program by client`s hard disk`s serial number so that he cant sell it or use this program there in another pc. Please …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
99
Member Avatar for iamcreasy

I am trying to change some data indside a txt file, based on the input given by the user.The input file is [B]indata.txt[/B](The commented part is, what it holds).And the output file is [B]"outdata.txt"[/B]... The problem is with line 52 and 53.Notice that in the loop from line 55 to …

Software Development c++ ios
Member Avatar for vijayan121
0
763
Member Avatar for BestJewSinceJC

Problem: when the user prints the JTextArea, the text at the right-hand side of the "paper" is cut off, despite the fact that it is visible on the screen. Question: How can this be solved? I've tried two ways of printing the text area, and neither has worked as I'd …

Software Development java printer
Member Avatar for Krefie
0
510
Member Avatar for ibnui

Hello all, i've just found source from planet source code, and from this source i just want to make program can record the streaming voice into .wav or .mp3... is that possible?? what should i do?? Thx b4....

Software Development visual-basic
Member Avatar for jhai_salvador
0
44
Member Avatar for RanjithKumarMCA

hai guys i am new to this community and i wish do a project can you guide me with some ideas to match to the up coming trends..

Software Development visual-basic
Member Avatar for jhai_salvador
0
82
Member Avatar for pardeep3dec

Respected Seniors, I have no knowledge about creating report in Crystal Report. Kindly tell me step by step process for making crystal report and what application need for install on my system current time i have vb 6.0 and ms office 2003. Thanks in advance. Pradeep

Software Development visual-basic
Member Avatar for jhai_salvador
0
67
Member Avatar for pardeep3dec

Dear Experts, I need a process for disabling windows key of keyboard through coding. Kindly help Thanks Pardeep

Software Development vb.net
Member Avatar for Luc001
0
190
Member Avatar for buddha_lord

hello...im new in vb world.so please help me if someone can..my problem in details: 1.have created a ms access database file named Database2.mdb which has 5 columns as follows a,b,c,d and result.it has 5 row and a,b,c,d are filled with data but result column is empty. 2.have created a datagrid …

Software Development visual-basic
Member Avatar for manoshailu
0
1K
Member Avatar for KAY111

Hi guys, I have a code in C++ that was written way back in 1995.Back then,I guess even in C++,#include<iostream.h> was used unlike nowadays, #include<iostream> using namespace std;.....im rite now trying to compile that code with a g++ compiler.It gives the error at lots of places:"cout not declared in this …

Software Development c++
Member Avatar for KAY111
0
15K
Member Avatar for Nicco

Hey there! I'm new to c++ and programming in general and have a quick question to why the program below works. I had most of it completed but for hours i couldn't figure out why every time i tried to enter input for the "make" member of my dynamic structure …

Software Development c++
Member Avatar for Nicco
0
106
Member Avatar for geethanjaliprat

hi to every one!!!!!!!!!!!! i just need a help from u, i just want to assign symbols like @$* wat i hav to do please help me by giving me a sample example.

Software Development c c# c++
Member Avatar for LevyDee
0
72

The End.