64,152 Solved Topics
Remove Filter ![]() | |
Here I am again with my next sql problem. I'm not sure if I can use insert into for what I need. What I want to do is the following. My tables I have tblreminder with userid workid workdate I have tbluser with userid and username My textbox I have … | |
I f I enter the name of a any person in an InputBox and I want that name to appear in a MessageBox, who do I do this? Exmaple: If I enter Bill, I want to see in the MessageBox: Bill, but if I enter Lucy I want to see … | |
I have a file that is representing an image, here's the puddle.img file: 10 22 2222888222882222228882 2222888222882222228882 3333333333333333333333 1111111111111111111111 1111144444111111111111 1111444444411551111111 1114643434345551111111 1111333333311551111111 1111133333111111115114 1111111111111111115543 The first two numbers are the size of the image, rows and then columns. Then I have to pull in the image, and before the … | |
Our group has been banging our head against the wall in this one and cannot seem to figure it out. Our program is to be able to set up menus (done), allow user(s) to input 'student names' and save them to a data (*.dat) file and add names to the … | |
Hello, I would like to be able to declare a filename as a global constant (so I can change the input file easily), which seems to be a simple thing to do, but I can't seem to get it to work. I declared this globally: [code] const string RES_FILENAME = … | |
// accept numbers from 0.1 to 99.9 then count the number of tens, ones, and tenths import java.io.*; public class accept99_9 { public static void main(String[] args)throws IOException { BufferedReader abc=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter a value: "); String input=abc.readLine(); float v=Float.parseFloat(input); float tens=v %100; float ones=v %10; float tenths=v %10; … | |
I have an executable that contains java components. From the java code, I need the access the executable's modified timestamp (so I can use the year). Any ideas? | |
Hi, I Have tried to make average calculator but I cant make few things happen and I would really appreciate some help with this. This is the code I came up with. Questions are below. [CODE]#include <iostream> using namespace std; int main () { int a, b; float result; cout … | |
I hope I phrased the question properly... I'm just curious if there is a way to determine what programming language was used for a particular .exe application. I'm a programming newbie starting to study VB and, like many others, I wonder if this is the best language to learn. My … | |
Hi all I am totally new to C++ and I am using the Dev C++ compiler and getting the tutorial off [URL]http://www.cplusplus.com/doc/tutorial/program_structure.html[/URL] I ran the first program (code below) and it compiled fine but when I run it a box appears then dissappears so quickly I dont have time to … | |
i've seen various threads about this same problem (at least i'm not the only one:D), but the most recent post is from 2006, so i wouldn't like to revive a long dead thread... :P i've installed Apache 2.2.4, and PHP 5.2.3 for Windows 32 i'm working on Windows XP... my … | |
Why can't I have two different link objects? I create _link and _link2 as empty objects. When I do this: _link2 = _link, it just creates alias _link2 to link object. Same object have 2 aliases _link2 and _link. Is there a way to copy the content of _link to … | |
Hello there, I recently need to use c++ to do a project, and I occur some problems, hoping can get some advices from here, many thanks! My project allow a user to input a number and i need to retrieve the data from a text file. My text file's data … | |
Hi community members, This is an S.O.S going out to all and any in the group that can offer me help. I am still an amateur programmer using VB6. My computer has been acting up lately and I was forced to restore it to its original settings. I did back … | |
Hello im using masm to divide two numbers and get a divide overflow error once I execute the file. I don't see why I am getting that output when the quotient is not larger then 16 digits. Why am i getting a overflow error? Here is the code [code] title … | |
I need help with the following page: [url]http://www.nemesisproject.com/sisemenproject/index_dev.html[/url] When the splash image loads and a user clicks on it it should fade out. I want the file folders that then appear to appear in the center of the page and stay there. However, currently they appear where they are supposed … | |
Can anyone help me debug this, I am getting a lot of errors. :( here's the example case: [I]User inputs.. Enter Row: 3 Enter Column: 3 Output 1 2 3 2 4 6 3 6 9 [/I] Here's my code: [CODE]import java.io.*; public class Test2 { public static InputStreamReader reader=new … | |
hello, i wrote a header file the file got deleted while i was compiling it that header file includes a class definition and nothing else what might be the problem? tnvkrishna | |
I have a left join in my select statement which works printing all the info from tbl1 with matching info from tbl2 I also want to print true or false depending on if there is any match for each record of tbl1 in tbl2. How would I do this? | |
I tried to write this code out, I dont want the answer I just want someone to explain to me what I am missing and doing wrong. Suppose the population of a certain country was 125,000 at the beginning of the year 1995. The population is growing at a rate … | |
I have the following select statement which works, I need help to adapt it adobau.RecordSource = "SELECT * FROM Liegenschaften INNER JOIN tblbau ON Liegenschaften.Rimo_Liegnr = tblbau.Liegenschaft" my adobau.recordset loops through Liegenschaften and gives me all the info of Liegenschaften that has match in tblbau, but I want some info … | |
this is suppose to be a binary search to return the number of times a number is found in the array.............but for some reason it isnt calculating the correct number of times the number is found....already had my paper and pen out trying to find the error but it aint … | |
Hi, I wrote a program that reads a file, by building up text one character at a time, looks for keywords, and replaces them if they are found. I am working on building up my output. The words come out right, and I added the punctuation back in ok. The … | |
Currently my program fires out error messages when the user enters information outwith the boundaries. However for every valid entry these will be stored in the array and the entry outwith the boundaries will be listed as blank which I dont want. Id like the program to only store an … | |
[CODE] #include <iomanip> #include <cmath> #include <fstream> #include <string> #include<string> #include<iostream> #include<iomanip> using namespace std; int main() { ifstream infile; ofstream outfile; int num;//number of grades int Hi;//highest test grade int Low;//lowest test grade sting stat;//status of grade, whether higher or lower than avverage infile.open ("grades.txt"); outfile.open ("gradeOutput"); double number;//the … | |
Im writing a program to calulate the distance between two points unsing structures and functions. I have everthing working perfectly except that I cant get it to repeat for a second set of points. My input file has 10 points in it bit it stops after it reads the first … | |
hi, I am finishing up a program and in the program I need to add numbers after a certain number example for every ten numbers 30, 40, 50 i need to add .125 i have this so far if ( age > 30 % 10 == 0 ) // Formula … | |
This is a very simple app I am trying to do. How else would sum up the total of the number the user entered? Example if the user enters 10, the loop will find the sum of 1,2,3,4,5.....10. Here is my code and I spent few hours on to come … | |
I am trying to add the integer elements of two Linked Lists. How do I add the contents of two elements of a linked list. For example: public void main { ........ LinkList newList = new LinkList(); ......... Link link1, link2, linkAns; ...... ...... link2 = newList.deleteFirst(); link1 = newList.deleteFirst(); … | |
Write a c++ program that will read in an unknown number of employee records from a text file call “PAYDATA3.TXT”. Each employees record is a string of 47 characters (with spaces), set up as follows: Positions Data Description 0 – 14 Last Name (15 characters) 15 -24 First name (10 … | |
I am writing this program to use user defined functions, must be return value functions as well. It is a modification to a program already written, and am having a couple errors that I just cannot figure out. Here is the code, the errors I am getting when I compile … | |
I am currently trying to delete lines of a file in 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? … | |
Howdy all, I'm making an authentication script using sessions variables, but the varible seems to disappear when trying to access it from another page. A simple form on the home page takes a user name and password, it then goes to an authentication page. The authenticate page is making a … | |
[COLOR=red]Hello everybody;[/COLOR] [COLOR=red]I want to color a text gradually by PHP[/COLOR] [COLOR=red][/COLOR] [COLOR=red]Explain: I want to color each letter with a color, like:[/COLOR] [COLOR=red][/COLOR] [COLOR=red]Hello: H=green e=red l=blue (And repeat) l=green o=red[/COLOR] | |
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: … | |
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 ; … | |
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 … | |
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 … | |
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(); … ![]() | |
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 … | |
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 … | |
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 | |
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, … | |
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 … | |
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> … ![]() | |
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? | |
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 … | |
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? … |
The End.