43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for qinise4

I am currently trying to delete lines of a file in java?

Software Development java
Member Avatar for masijade
0
112
Member Avatar for gallantmon1

I have this kernel with the shell, and I'm trying to put the time and date commands in it but can't seem to make it work. It shows no error while compiling but it doesn't do anything when I test it. Can anyone tell me what I'm doing wrong here? …

Software Development assembly
Member Avatar for Evenbit
0
209
Member Avatar for Tyster

Hi Folks, Total C++ newbie here so please excuse my errors! I have been tasked with writing a small program and I can't get it to work. Here is the task description... "A restaurant has 4 lunch combos for customers to choose: Combo A : Fried chicken with slaw [price: …

Software Development c++
Member Avatar for Tyster
1
141
Member Avatar for Duki

I get error C2143: syntax error : missing ';' before '*'[/code] at the typedef line (and every other line with the word 'string'). ... //File: prob4.h #pragma once //header files + efficiency #include <string> #include <iostream> using std::cin ; using std::cout ; using std::endl ; typedef string * strPtr ; …

Software Development c++
Member Avatar for Duki
0
910
Member Avatar for sarahger9

Hi, I am writing a code that requires me to search for words within a text document. I had to build up words one character at a time in order to ignore punctuation when I search for the words. I did this without a problem. But now I am working …

Software Development c++
Member Avatar for sarahger9
0
123
Member Avatar for Fool

This is a thread containing a problem similar to my previous thread"a crazy problem(at least to me)". Yet i start it in a new thread is because the approach will surely be much more complicated and perhaps should be treated as another crazy problem. This program should read in 2 …

Software Development c++
Member Avatar for Fool
0
119
Member Avatar for SiPexTBC

I want to make a program that will check to see if a process is running. And if it is not running, the program should start it back up. Basically i made a new process. This is what is executed when the button is clicked. [CODE]System.Diagnostics.Process proc = new System.Diagnostics.Process(); …

Software Development
Member Avatar for iamthwee
0
120
Member Avatar for gallantmon1

I'm still confused with file i/o here and needs a bit of help on fixing the codes I have. Can anyone offer some help? I have two codes here that sort of work together. One is a database type of code that is supposed to get input form the user …

Software Development c c++ file-system
Member Avatar for gallantmon1
0
249
Member Avatar for newbieGirl

I don't know why I'm spacing out tonight, because I've been doing fine, but I'm stuck on one thing. I've already written the first part of my program (get integer input from the user, then calculate the product, and display), but the second part (not required, but I thought I'd …

Software Development java java-swing
Member Avatar for newbieGirl
0
134
Member Avatar for dilip_singh3

I am using an Access Database through Visual Basic 6. Is there any other way to access the database excluding the following code. Set CNN = New ADODB.Connection str = "\\SYS8\DATAX\EMP.MDB" CNN.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + str + ";Persist Security Info=False" CNN.CursorLocation = adUseClient

Member Avatar for plusplus
0
1K
Member Avatar for Koldsoul

Hey fellow programmers. I am just starting to work on C++ and languages in computer programming. So far its not bad yet, but having an issue with this program I am trying to write. The program I am writing is to compute the sum of the minutes exercised per week, …

Software Development c++
Member Avatar for Koldsoul
0
270
Member Avatar for PL.P27

Hi Everybody!! I'm new to java and am experementing with GUI and would like if someone could please help me, because I can't figure out how to fix the problem. The part in red is the part where I cannot figure out how to fix it because it says it's …

Software Development gui java
Member Avatar for PL.P27
0
3K
Member Avatar for bluanwht

Here is the code I have. I am trying to collect five scores and then print each score followed by the average score. Seems like it would be simple but I am having problems. Any suggestions? [CODE]Option Strict On Public Class frmScore Private Sub frmScore_Load(ByVal sender As Object, ByVal e …

Software Development visual-basic
0
69
Member Avatar for barbie 2

hi , i'm writing a program which calculates registration fee of student and this program opens an external txt file.It's my first time writing a program with an input file so i'm kinda confused.my program asks for the status and number of credits but does not gimme the fee. #include<iostream> …

Software Development c++
Member Avatar for iamthwee
0
170
Member Avatar for culebrin

I have this code: [CODE]Dim cb As OleDb.OleDbCommandBuilder Try cb = New OleDb.OleDbCommandBuilder(daDocuments) daDocuments.Update(CType(bdsDocuments.DataSource, DataTable)) MessageBox.Show("The data load has finished...", "DBF Load") Catch ex As Exception MessageBox.Show("1.- " + ex.Message) End Try[/CODE] but, the OleDbCommandBuilder don't create the updatecommand and hence it doesn't work... any ideas?

Software Development vb.net
Member Avatar for manal
0
306
Member Avatar for HLA91

Hi all Ive heard some chatter that it is best to compile your C# program on .NET V1.1 because it automatically comes with windows updater for xp and that the later versions are considered optional in the updates, is this true and is it safer to compile on V1.1? Many …

Software Development asp.net
Member Avatar for HLA91
0
97
Member Avatar for rwarrender

Hiya, I'm currently working on a little java program that will scan through a directory, reading php files and then dump out a list of function names for that particular file. Does any one know how I can modify my regex to exclude functions that are inside /* */ comments? …

Software Development java regex
Member Avatar for rwarrender
0
81
Member Avatar for toko

i was wondering whenever you create a file in c++ where does it go cuz i've never seen anyone specify the root..

Software Development c++
Member Avatar for toko
0
95
Member Avatar for toko

Okay, i have written a code to figure out the area of all different shapes but i can't get it past hte pasrt where the client chooses what they want to find the area of. this is my code: [CODE]#include <iostream> #include <cmath> using namespace std; int getChoice(); int circle(); …

Software Development c++
Member Avatar for toko
0
300
Member Avatar for Fool

i have to decide a program to "satisfy" my crazy private tutor .This program reads in 2 input extremely large postive integers. It will then output their sum. However , as C++ got limit in int, so i think i need to use string variables to represent the values..then use …

Software Development c++
Member Avatar for Fool
0
317
Member Avatar for Linda1

I am very new to C++ and one of my homework assignments involvemulti dimensional arrays. I was able to initialize and input and display the array (4x4) but the last step is to swap the data of the row to that of the column. Tried different ways and unable to …

Software Development c c# c++
Member Avatar for Linda1
0
128
Member Avatar for thompsongunner

I'm trying to get a grasp of inheritance in Python but am having problems. I am trying to create a derived class but want the derived class to only provide an initialized instance of the base class. Specifically I would like to inherit from [inlinecode]OrderedDict[/inlinecode] as shown in the following …

Software Development python
Member Avatar for jrcagle
0
289
Member Avatar for Llama

I want to make a code that searches a text file and finds a certain string, and then changes that string to another string. First im going to have it input the whole file, and i am couting it too, so that i can make sure it worked. But it …

Software Development c++ file-stream
Member Avatar for Llama
0
155
Member Avatar for WhitePunk

i have a code of a projectile but... can these code be shorten or not??? i need new version of this and some times if i played this one some error was done hope you could help me to fing the error Option Explicit Dim Angle, Theta, y, x, t, …

Software Development vb.net
Member Avatar for preetham.saroja
0
161
Member Avatar for Prozeen

Hi all, I would like to save my project's code in a text file when the project runs (so that I can keep track of any changes) I know how to open/print/write/close a text file, but how would I capture the code that is running? Any ideas/links/thoughts? Thanks.

Software Development visual-basic
Member Avatar for Prozeen
0
114
Member Avatar for liphoso

Can any one help..... I am relatively new to programming and I would like to learn a bit of C++. I dnt want to purchase a book as yet (mainly because i cant afford one at the moment). Can any one refere me to a site from which I will …

Software Development c++
Member Avatar for eranga262154
0
82
Member Avatar for Prozeen

Hi, I am displaying a dialogbox to the user. If the user clicks the "Cancel" button I want to show a message box, then I want to continue displaying the dialogbox. The best I can come up with is...[code]Do comdia.Filter = "*.doc" comdia.InitDir = "C:\" comdia.filename = "file01" comdia.ShowSave On …

Software Development visual-basic
Member Avatar for Prozeen
0
237
Member Avatar for zandiago

[CODE] #include <iomanip> #include <cmath> #include <fstream> #include <string> #include<string> #include<iostream> using namespace std; int main() { int num1 = 0; int num2 = 0; char again = 'y'; while (again=='y') { cout<<"Please enter two numbers to compare "<<endl; cin>>num1>>num2; cout<<"The two numbers entered in order were "<<num1<<" and "<<num2<<endl; …

Software Development c c# c++
Member Avatar for zandiago
0
7K
Member Avatar for jrcagle

I'm writing a lesson on debugging for my students. They will have already had a lesson on how to read code and do walkthroughs, either manually or using the debugger. They currently know about [B]if[/B], [B]while[/B], types, math operators, and have some experience with but no formal training in functions …

Software Development python
Member Avatar for jrcagle
0
100
Member Avatar for preetham.saroja

hai, Its very urgent.can somebody tell m,how to add two textboxes and then display the result in the third textbox ,using keypress -in javascript.... regards....

Software Development java javascript vb.net
Member Avatar for preetham.saroja
0
170
Member Avatar for MrShoot

Hi, this is my first forum message so I'll make a brief introduction. I'm from Canada and I am Computer Science student. I enjoy working with computers, specially web programming. It has come to my attention (and also a school requirement) to learn Python. So here I am with my …

Software Development python
Member Avatar for Ene Uran
0
161
Member Avatar for zandiago

Write a c++ program that will read in, from a file entitled "word.txt", an unknown number of single words (no spaces ). The program will then print out the word, move 2 tabs to the right, display the word with the first letter removed, move 2 tabs to the right, …

Software Development c c# c++ printer
Member Avatar for zandiago
0
413
Member Avatar for amorphis_gr

i hace a class in c++ bcw [code] class Student { public: private: unsigned int sIdNum; char sSurname[20]; char sFirstname[20]; char mathid[10]; };//Student [/code] i need a function that fills a Student type dynamic array from a bin file called binfile1.dta the array starts with size[30]. And then do the …

Software Development c++
Member Avatar for Ancient Dragon
0
128
Member Avatar for zandiago

Good day. I recently purchased a TI-84 calculator and realized that it has some programming commands as a c++ compiler would. Is it possible to load a c++ program on a ti-84 calculator...thx

Software Development c c# c++
Member Avatar for zandiago
0
99
Member Avatar for plusplus

I have a frame, inside it a few labels and text boxes. At some point while the program is running I want to move that frame to a different position. Is it possible to move it with all the lables and textboxes without moving each label and textbox?

Software Development visual-basic
Member Avatar for plusplus
0
121
Member Avatar for plusplus

The way I understand it, is that rowdata and coldata can be used to keep some data for some specific row or column. What if I want each cell to have some data go with it, how can I do this? I need this to identify what each cell contains.

Software Development visual-basic
Member Avatar for QVeen72
0
693
Member Avatar for parthiban

Hi all, I learned that "local static variable" with in a function is not allowed in JAVA as in C++. I guess it violates the rule of "static" as it's should not depend on objects but is there any alternative way avaiable to accomplish that ? (i.e scope is restricted …

Software Development java
Member Avatar for parthiban
0
369
Member Avatar for DeadJustice

I didn't think I'd need help again, but I'm pretty sure its not as bad as last time. I'm trying to increment the time in Time2.class, and that compiled. The problem is I can't make a class to use it as per the assignment, and that's because I used void …

Software Development java
Member Avatar for DeadJustice
0
2K
Member Avatar for Silo45

[code=assembly] mov ax,35000 mov bx,4096 div/idiv bh [/code] why is it that i get a dividle by zero error when i do this. What Ive done so far.. [b][u]DIV[/u][/b]: Please double check i might have messed up. ax = 88B8h bh = 10h [b][u]IDIV[/u][/b]: Please double check i might have …

Software Development assembly
Member Avatar for Silo45
0
309
Member Avatar for somers

I am looking for some help with the fibonacci in Mips. Yes, I am a student (part time). Yes, I have made an attempt which is below. Yes, I have tried looking for help, hence me finding this forum. I have the values for the previous value, $t3, and the …

Software Development assembly
Member Avatar for somers
0
488
Member Avatar for eddy518

I have to ge t the result using call by reference. I'm receiving 4 errors??? from my understanding, I have 'declared' total before main. Quite frankly, I'm not getting why not declared it on display_output nonetheless?? and why total is still not being recognized?? Thanks in advance for the help! …

Software Development c++
Member Avatar for ChaseVoid
0
132
Member Avatar for plusplus

what's wrong with this statement? adobau.RecordSource = "SELECT * FROM tblbau WHERE year(Bau_datum) => " & Jahr_beg & "AND year(Bau_datum)<= " & (Jahr_beg + intyears)

Software Development visual-basic
Member Avatar for plusplus
0
113
Member Avatar for nnobakht

Hey guys, i have a linkedlist called CDArtist and one called CDTitle. i have all the functions and classes written and working except one which i have no idea how to. I need to be able to delete a CD by the name of the title or artist but this …

Software Development java
Member Avatar for Ezzaral
0
186
Member Avatar for apchidara

hi every one I want to weite a pice of code that if specific condition happened I set the focus on a textbox. I prefere that have a colornotification as well. any one knows how to do that.in vb.net express

Software Development vb.net
Member Avatar for apchidara
0
175
Member Avatar for Eclipse77

Hi everyone, I'm new here and I'm looking forward to seeing how everyone codes in python. I'm a complete newbie, who has never done any programming in his whole life (except for the past 2 week). I read the guidelines about asking for help on assignments, and I wouldn't have …

Software Development python
Member Avatar for jrcagle
0
176
Member Avatar for toko

Okay i am trying to make a lock this is my code: [CODE]#include <iostream> using namespace std; int main () { char key [10]="abcd"; char answer[10]; cout<< "password:"; cin >> answer; if( key == answer) cout << "correct"; else cout << "incorrect"; return main(); }[/CODE] when ever i try to …

Software Development c++
Member Avatar for toko
0
125
Member Avatar for parthiban

Hi all, I'm a beginner in JAVA studying SWING. I learned that if we want to handle an event for a event source(say JButton) we should implement corresponding Event Listener(say ActionListener) . I also understood that we should register the Listener with that event source. With that knowledge I tried …

Software Development gui java java-swing
Member Avatar for parthiban
0
106
Member Avatar for rghai6

Hi, i've been trying to create a program for implementing high/low pass filters on images. I get the data from a 24 bit .bmp file using the old file handling techniques. The file handling portion of my program works like a breeze, it is the arrays that are giving me …

Software Development c++
Member Avatar for rghai6
0
124
Member Avatar for cowboys111

Hi i am writing a program to calculate the area of a shape using functions. I got the program to work fine when there was only one function and one shape however when i added the second one the program will still run both functions. That is even when i …

Software Development c++
Member Avatar for ChaseVoid
0
105
Member Avatar for Prozeen

Hi, this is a mathematical question, but I'm doing it in VB so I thought I'd post it here... A person is shown a total of 10 numbers. When a number appears on the screen they have to type that number into a text box and if they get it …

Software Development visual-basic
Member Avatar for zmariow
0
2K

The End.