43,549 Solved Topics
Remove Filter ![]() | |
I am currently trying to delete lines of a file in java? Software Development java | |
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 | |
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++ | |
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++ | |
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++ | |
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++ | |
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 ![]() | |
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 | |
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 | |
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 Software Development microsoft-access open-source visual-basic | |
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++ | |
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 … | |
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 | |
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++ ![]() | |
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 | |
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 | |
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? … | |
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++ | |
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++ | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
[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; … | |
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 | |
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 | |
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 | |
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, … | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
[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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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++ | |
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 |
The End.