199,114 Archived Topics
Remove Filter ![]() | |
the "addsong" function working, i just dont know how to tell the compiler to [B]skip over[/B] elements in the vectors with empty strings, when writing the new data to the music_library file. this is because i have to write a remove song function where, after the song is removed, the … | |
1. Achilles and the Turtle (10 Points) Write a program that simulates a race between Achilles and the turtle. Here is an example run (the user input is underlined): Where does Achilles start? 0 How many feet is the turtle ahead? 100 How many feet does Achilles run per second? … | |
so this function is working correctly (as far as i know) but the only thing that i haven't quite figured out yet is how to send the new input, and completely overwrite the existing "in_stream" file. this program opens a file (containing song titles, artists, and their genres) when the … | |
Can anyone please help on how to create log file in Visual C++ using MFC???? | |
hey Iwant to convert from interger to character char num[1000]; num[i]=rem; strrev(num); what is wrorng whith this form?? warning : warning C4996: 'strrev' was declared deprecated I can't understand this warning Hope Help me | |
ok short and sweet hopefully. suppose you have a struct like so [CODE] struct SomeName { string id; } [/CODE] and you read data from a file into the id then you want to search for a specific id that has a relationship to a name [CODE] long findStudent (StudentList … | |
hi, i am basically adding files to my listview through this code [code] For each n as string in my.computer.filesystem.getdirectories("C:\Testing\") Listview1.items.add(n,Imagelist1.images.count - 1) Next [/code] so all the files inside testing folder show up on the listview the problem is that they all show up but they show up with … | |
Can someone help me figure this out. What do I need to do to set permissions in MySQL? Thanks in advance. | |
OK, here is a litting script I wrote (admittedly with some help from [URL="http://www.pythonware.com/library/tkinter/introduction/hello-again.htm"]http://www.pythonware.com/library/tkinter/introduction/hello-again.htm[/URL])that will allow me to cloak in with ease here at work. Only.... since I sometimes log into the computer multiple times in the day, I wanted to use Tkinter to give me a yes/no button. But.... … | |
First, write a class called TFQuestion that represents a true/false question. This class should have exactly two instance variables: a String variable that holds the statement of a true/false question, and a boolean variable that holds the correct answer. This class should provide the following public methods: A constructor that … | |
I am new to awk, so please excuse any mistakes. I was hoping someone would be able to tell me if it's possible to include variables in a regular expression, and if so, how. The code I currently have is the find the beginning of link (<a) and image (<img) … | |
hello, im using a delete function but some how i want to use an if statement; for example if the current server date matches the date from a row from a database table and if the date is 2days from the current date it can't be delete. [CODE] Delete from … ![]() | |
Hey, I am currently having some problems with VB.net and MSSQL. I'm trying to create an application to learn more about VB.net, I decided to create a simple login system for the application (like the ones they used in distributed applications which have a centeral SQL server). I have come … | |
Hi everyone. Sorry if this question is in the wrong area..I posted it on the VB forum and they advised me to post here also. I have created a visual basic system that is connected to an oracle database. (I connected through data>Add New Data source>New Connection>Oracle Database etc etc) … | |
Hi, I am hoping someone can explain to me a better way of coding than I currently do right now. It concerns accessing the results of a SQL query stored in an array. OK so right now I do somthing similar to this: [code=php] $rows = @mysql_query("select count(*) from debate_queue") … | |
Hi, I have list of items on a PHP page, and a <div> for each which i wish to populate with an AJAX request. Each <div> has a unique ID. The code that i am using falls over due to the apparent static nature of this line: [CODE] document.getElementById("full-details").innerHTML=xmlHttp.responseText [/CODE] … | |
Hi all, [COLOR="green"][/COLOR]Please reply me soon !!![COLOR="Red"][ICODE][/ICODE][/COLOR] i have made my database in Ms-access and using vb.net for front end. My system is working fine with database stored in same pc of client(by giving path c:/.....). But i have to show my project using seperte server pc n client pc. … | |
Hi. I'm trying to search multiple DB fields with a Select Menu and I don't know where to start. for example, from the code below I would like the value ='strAuthorname' to actually search the fields 'AuthorFirstName' AND 'AuthorLastName'. [code] <form method='post' action='{$_SERVER["PHP_SELF"]}'> <!--select tag --> <select name='metode' size='1' > … | |
I was wondering how I would go about doing this. What is the coding for this? Trying to do something extra that wasn't taught in the class. If anyone knows and could help, that'd be great. Thanks! Anthony | |
[code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using System.Data.OleDb; using System.Data.Common; namespace subok { public partial class Form1 : Form { public OleDbConnection connect; static string strconnect = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""C:\Documents and Settings\avupdate\My Documents\db3.mdb"; public OleDbDataAdapter adapter; public DataSet … | |
Hi, I am trying to create a program that stores employee records in an array, and also has the option to delete records and view various details. I am trying to create a menu so that when you choose an option the request will be carried out, the problem I … | |
Hi All I was discussing halting halting problem with one of my friend yesterday. He asked me a good question. Here is the question: "Let P be the class of all Pascal programs that don't use go to ,while and repeat statements, nor recursive procedure calls.Is Halting Problem Valid for … | |
Hi guys, I'm writing binary data to a file using fwrite. I can't get rid of '0x0D' whenever it writes '0x0A'. I use hex-viewer to check data. For example, if data is '0x01 0xFF 0x0A 0x0E', it writes '0x01 0xFF 0x0D 0x0A 0x0E' Is this because fwrite writes by byte, … | |
hey friends i am in dilemma of which compiler to use.. i have been working on windows OS. also the C++ concepts that we are taught in our college are practically taught on Borland Turbo C++ compiler (dunno how aged it it :P) :( i mean we people write the … | |
i have a text file <start>welcome!30 is my class roll number<end><start>A is the first alphabet<start>12345678919<start>c++ is a good language and <start> and <end> are strings. I have to create a c++ function that will delete only those text ocurring between <start>and<end>,including <start> and <end>.Text that starts with <start> and does … | |
[COLOR="Red"]Today I have some question and their solution ,but I have problem with some.[/COLOR] [COLOR="red"][COLOR="Green"]Q1: Write a program that checks if a sequence of positive numbers is in increasing order or not.[/COLOR][/COLOR] [COLOR="Red"]I don't know what is missing her?![/COLOR] Solution: [CODE]#include<iostream> using namespace std; int main(){ int value,check=1; cout<<"Enter a … | |
Hi, i need a program which formats the floppy. Can you help me about this problem? | |
Help! Hi, everbody! I have this problem: There is a “textbox” and a “submit” button. “Submit button” is disabled until something is written within “text box”. I am not able to do this switch. Could anybody help me? Here you are the code: [code=html]<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" … | |
Hi everyone, I am pretty new to C++ Programming... but am currently working on a project where I need to try and get an old fortrans program working again... I have the executable which can start up and run through initialization, but once I try to run the simulation it … | |
Basically, I'm building a aspx calculator page for a client. What the visitor has to do is fill out the textboxes with a number. it takes the sum of all the text boxes, multiplies the sum by one number to get the minimum value and then another to get the … | |
How do I prevent the user from entering characters when a float is required? I'm using a bool for valid entry so if they enter text it sends my loop running | |
Hi... I'm currently doing a ludo game in C, I'm stuck with the pawn positions on the board. How do I manage the position of the pawns of each player, if I have maximum of two players and 4 pawns? Here is my code for the pawn position but it … | |
as we know that memory is very important in embedded systems which one is more effective either to use single linked list or Double linked list..even though DLL is more convenient it will consume more memory.. | |
Hello all together, I've a JS-script that forces the mouse pointer to become a hand. It does work perfectly on IE, Opera, Safari and Konquerer (that's what I've tested so far). Just FireFox doesn't want to change the icon. What's the matter? Here is the script: [CODE]document.getElementById(wid+'0a').style.backgroundColor="#E0E0E0"; document.getElementById(wid+'0b').style.backgroundColor="#E0E0E0"; document.getElementById(wid+'1').style.backgroundColor="#E0E0E0"; document.getElementById(wid+'1').style.cursor="hand"; … | |
the java teacher wants us to write a program project. he says we can do whatever we wanna do as long as it is not too easy and must be interesting. do u think it's hard to write a game program using java in graphic user interface (GUI)? By the … | |
i have done little bit of research on this but all the information i could find was about unlinking text file i need to unlink an image. i have a variable which store the path to an image stored in file on the server which is what i am trying … | |
Hi, I have this issue with a J# project I need to complete for uni. [CODE=java]public class Sprite { private Image m_image; public Sprite(Image image) { m_image = image; } public int getWidth() { return m_image.get_Width(); } public int getHeight() { return m_image.get_Height(); } public void draw(Graphics g, int x, … | |
I have a program that has a connection to an Oracle database and is supposed to execute an Insert statement. It runs with no problem until the [I]connection.Execute SQLString[/I] command. This causes a crash. The code compiles error free, and I've checked the syntax of the Insert statement and it … | |
Hi. I have created a visual basic system that is connected to an oracle database. (I connected through data>Add New Data source>New Connection>Oracle Database etc etc) I am using the system to create new oracle users with passwords etc. I have a form called frmAdd and text boxes txtUser and … | |
hi,can anyone help me with a code that can change form color after 10 seconds ,for example from yellow to red continiously.please help. | |
[code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using System.Data.OleDb; using System.Data.Common; namespace subok { public partial class Form1 : Form { public OleDbConnection connect; static string strconnect = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""C:\Documents and Settings\avupdate\My Documents\db3.mdb"; public OleDbDataAdapter adapter; public DataSet … | |
How do i pass variables to data environment's sql? | |
hey frnds tell me one thing,Graphics is used in Projects or not. Because I think so its a waste material given in all the books & it is used not in any projects. Any Suggestions. | |
Hi, When i insert data into any table last number of sequnce get increased in all sequences that are listed below. These are for auto incremented numbers. All tables have their own autoincremented coloumns. Can anyone see mistake? Thanks [code] CREATE SEQUENCE FRANC_AUTOINC_SEQ START WITH 1 INCREMENT BY 1 NOMAXVALUE; … | |
I want to make a server authentication login. First I logged in with windows authentication, changed the server authentication from windows authentication mode to sql server and windows authentication mode. Then I created a login, named it jihad and changed the password for that login. Then I gave that login … | |
Can anyone please help me to find the sum in the linked list. I have written codes to insert and remove numbers from lists but I have no idea how to calculate the sum. [CODE]void List::insert( const double &value ) { ListNode *newPtr = getNewNode( value ); if ( isEmpty() … | |
I am trying to use swap imagesto swap two separate images on the same page but I can't get it to work. Here is the code for one image, rotator. I also have a second image,rotatorB that I want to swap different images with. I think I need two separate … | |
Need help with this code. Anyone with knowledge on java please help. i found some on this forum, but that is also wrong. can anyone give me some help what is want is to smooth the values in an integer array. If its totally wrong please dont yell [code] import … |
The End.