64,152 Solved Topics
Remove Filter ![]() | |
why cant it work properly??? [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main(){ ofstream out;//create output stream int acc_num[10]; for(int x=0;x<10;x++) acc_num[x] = rand()%10; //generate account number char acc_file[600]; for(int x=0;x<10;x++) acc_file[x] = acc_num[x] + '0'; out.open(acc_file, ios::out);//create & open output file out << "PACKAGE ID: "; … | |
Hello everyone, I'm working on a project which I should read from a text file. Text file contains two lines of sequational numbers, something like this: [TEX] 4 5 2 1 10 8 3 4 6 1 [/TEX] In the program, I need to find out where exactly a new … | |
[B]FIRST EXAMPLE--[/B]CREATE FUNCTION dbo.myFunction() RETURNS INT AS BEGIN DECLARE @myInt INT SET @myInt = 1 RETURN @myInt END select dbo.myFunction() as 'Simple Number' This Function is not returning any value,Error is coming [B]Cannot find either column "dbo" or the user-defined function or aggregate "dbo.myFunction", or the name is ambiguous.[/B] [B][COLOR="Red"] … | |
I am trying to write a "censor" program. here are the instructions: Write a program that reads a file of text and replaces each `target' word with its first letter followed by a string of asterisks that indicate its length. Have it read the list of target words from a … | |
EDIT: Apologies... user error strikes. Tis the way of the newb. Nothing to see here, move along. I have a dict with the following pairs: [code]object = {'v1': 1, 'e5': 6}[/code] If I set a variable using this data and print it: [code] var = object['v1'] print var [/code] I … | |
Wow, I am having huge problems passing values between functions and wrapping my head around pointers. For some reason when I tried to return values from functions they would not pass and when I tried putting pointers in the place, passing them kept giving me compiler errors. Now I have … | |
I am new to programming and after a month or so of googling, I have decided to learn Python. Is this a good time to learn the language or people will soon jump ship since JAVA is now open source? By open source software, I understand that the code developed … | |
I can't figure out why it is saying (Vehicle.java:174: cannot find symbol) but there is a symbol, what is going on? [code]import java.util.Scanner; public class Vehicle{ protected int hp; protected int mileage; protected int year; public String make; public String model; Vehicle(){ hp = 0; mileage = 0; year = … | |
Hello: I'm almost killing myself to figure out the problem with the attached code. It seems that passing a text array to a function is impossible. Anyone is so kind to help me, please. | |
Hi guyz, I''ve done a bank's savings account program in java but can't compile, I keep on gettin the errors. 1. overrides `java.lang.Object.toString` 2. This methode must return a result of type String. both of the errors are on the method public `String toString () {...` public class SavingsAccount { … | |
Hello all, I have been working with the playsound() function in Visual Studio 2005, and find myself coming up short in getting it to work. I have recieved many compile errors, and never successfully have gotten it to function. I am using VC++ console application, WITHOUT a precompiled header. My … | |
Hi, I need help with importing database into form. The problem that I am having is, when a user inputs their firstname into textbox1, it should search for their name in the database (MS Access) , if found, it should populate the information into each textbox such as lastname, address … | |
when i'm passing value through $_SESSION in frames first time i'm not getting value.when i execute second time i'm getting value.why the values are not passing first time. | |
Hi All, I am just curious to find out...is there anyone out there who've encountered the same problem or similar...please help me... I got a working .js file, and I tried to edit the code, when I tested my edit, it doesn't work, since the system is already up and … | |
Hello All, I have been trying to convert a long long to a char buff and having problems. I have tried spintf, and some casting but still can not get the conversion right. Any help would be great! Steve | |
Hey there, I've got a script in another language and I've set a writer from the script to python. Now I'm trying to send data back the other way... ie python -> to my script. However I've got nothing to reference in python, and i'm clueless. Can anyone provide assistance? … | |
hi everyone...... am designing an interface for security purposes where a user is allowed to enter a password to gain access... i want when password is entered its ********** that appear on the text box instead of password secret itself so that if someone is looking at the screen he … | |
yeah, I'm just keeping this thread open because I have another wrinkle. In my code [code=python]def prompt_house(): global gold prompt_hou = raw_input('>') if prompt_hou == 'examine table': print '''There are a lot of car magazines here. You flip through them and find 5 gold.''' gold = gold+5 prompt_house() [/code] (or … | |
Hi I’m new to PHP and MySQL and I’m trying to return a MySQL query using a PHP variable that has been passed to it. I currently get this error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\moodle\logicquiz\quiz.php on line 57 Error performing query: You … | |
Hey people, I'm not sure what is wrong with this code and any help would be greatly appreciated: [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer = DGVShops.CurrentRow.Index Dim c As Integer = DGVShops.Item(0, i).Value ' gets value from selected rows first … | |
in the database i have certain date as 01/01/1900.now while displaying this in the data grid along with the other columns i would like to display all the dates having value 01/01/1900 as blank.is it possible to do so?if yes then how? | |
I have this data..but something error..my data is like this... Exam TExam 1 25 2 20 3 46 4 56 5 12 but it only appear like this 1: -853617 [code=C++] #include <iostream> // std::cout #include <fstream> #include <iomanip> #include <string> // std::string #include <vector> // std::vector<> #include <algorithm> //std::for … | |
i did save image to mysql by creating a field type longblob and saving it by converting the image into byte(). my problem is the image cannot be to big else it fails. can anybody help me in this. i can send the sample code if requieres. thanks | |
Hello Everybody!!i am confused to do the database design for diving reservation. Please helpp me!! Thank you. | |
I am to create a form with 2 text boxes to receive numbers as input and 1 command button that displays a message box containing the larger of the two numbers. To do so, I need to write code in the Click event of the command to call a user-defined … | |
Hi i got a jsp page which uses an external .js file and also some internal javascript too... the problem is that none of the functions that inside the external .js file are recognized inside the jsp. But... if i copy the source code of the jsp into an html … | |
Hi I want to be able to find out the int (or float) value of a variable whoose name is in another string variable [QUOTE]int x = 10; String var = "x"; System.out.println(Integer.valueOf(var).intValue());[/QUOTE] I want 10 to be printed but all I get is : [QUOTE]Exception in thread "main" java.lang.NumberFormatException: … | |
I need to make a method that receives the matrix values as a string as [code=c#]"[ 1/4 1/3 1/2 ; 2/3 1/5 2/5 ; 1/6 1/5 7/8 ] "[/code] and initializes the matrix ( ex. “[ 1/4 1/3 1/2 ; 2/3 1/5 2/5 ; 1/6 1/5 7/8 ] “) I … | |
I wonder, I have a CheckedListBox and on the properties you can choose "MultiColumn" and set this to True or False. What I wonder is if it is true that CheckedListBox can have for example 5 columns because when I set this to true you can´t see that any columns … | |
well, my assignment is to create a program that will compute a square root of a number without using the sqrt() function in the cmath lib. here is the direct assignment guideline. [url]http://community.tncc.edu/faculty/lewis/csc201/pdf/lab4b.pdf[/url] and my program is about 95% written out (minus the comments)... but it keeps getting stuck in … | |
Hi guys, i need help extracting e-mail id from the text file can anybody please tell me how can i extract e-mail id and store it in a vaiable using perl regex. (e-mail id is not always bound to end with .com) here is my text file: ****************************************** IQXpert 27(ID) … | |
Hello i want to select a row from this search and paste it to the next page do i need anymore code in each row, cus all it shows is a textbox next to each row. Ive got all connections, the search all works and its in a form i … | |
HI, I have made a menu with two menu Items Colors Size. Colors will further have the submenu Items--> FillColor Exit FillColor will further have-->Red,Green,Blue Size --> Small , Large If i write the foll. code--> [B]Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) … | |
Is there a difference in handling between Session.Add("SOMETHING","somevalue") and Context.Items.Add("SOMETHING","somevalue")? | |
I currently have a program using keyboard input from the user, but am trying to replace keyboard input with onscreen buttons. Does anyone have any information on the best way to do this? I've pasted the code file involved with this (there are other files in the program). I'm not … | |
im building a telephone directory. and the code is given below. i am using file system to store the record which i get from the user. and then i should be able to do searching, deleting, sorting and other default telephone dir functions. so far i have been able to … | |
i want my program able to change cursor at runtime. give a hand pleasee.... thanks all... | |
Hey I'm building a application and using JTree to navigate between the functions. This is working but can't figure out how to set up the JTree to have different icons for each node. I can have one default icon that gets rendered to each node or set up an icon … | |
My Friend tell me to using GetSystemInfo api function to get a couple information : - Number of procesor - ProcessorType - Low memory address -> MinimumApplicationAddress - High memory address -> MaximumApplicationAddress but i didn't know how to use this function. anyone know how to do this??? please help … | |
Hello All : I tried to write a simple program in C++ for encrypt a word using a keyword and a key depending on an alphabet ,for example keyword:HELO Key : D I want to genrate the cipher alphabet by puts the positions of letters of the keyword(HELO) in the … | |
how i can get all drive in my computer? does anyone know how to get it?? Thanks. | |
I am filling a char array 2 bytes at a time. I want to now add an integer that can be up to 4 bytes. Is there an easy way to split this integer into 2, 2 byte chars? For example 2200 into 0x08 and 0x98? Thanks. | |
Hello Everyone , I am writing a code in which i search a char array and look at what is missing in the array i mean what letters are missing in the array. I worked out a small code but i seem to have some error in the answer though … | |
please u said u did now i want to do same but actually i dont have time because our final year submission is goin on and also exams are there so plz can u help me for that | |
In vb.net no form is MDI,any form can ve made MDI by setting IsmdiContainer property to true. But in Vb we add the MDI Form. In Vb.net Form1_click dim obj as new form1 obj.show() obj.mdiparent =me But in VB,i write dim obj as new form1 obj.show obj. but there is … | |
Hi, I'm trying to make a makefile but after i enter the command make makefile it says nothing to be made in the makefile, can someone please help me? Nd.c depends on Pd.h Pd.c depends on Pd.h Md.c depends on md.h md.h depends on Rd.h # Makefile CC = gcc … | |
I've written a program to produce a random sentence. I'm having trouble converting the first letter of the first word into uppercase. Don't know where to go from here. Can anyone help? [CODE=cplusplus] #include <stdio.h> #include <string.h> #include <time.h> #include <stdlib.h> #include <ctype.h> void firstword( char *article[5], char *sentence[6]); void … | |
hi, could some one help me to make a calculator connected to a DSP? This is for my real time systems project. the software used to complile is Code Composer Studio. DSP used in TI TMS320C6711. keypad is 4x4 Matrix X,Y type. I could not understand how to make the … | |
[code] Hello, In one of my C codes, I have written a function for logging into a files. When the size of the file exceeds 10 MB, I close that file and open a new file. But at run time my Code is crashing at times during file closing. This … | |
Hi there I have a form that I'm trying to submit but it just doesn't want to play nice. The form i have has 2 submit buttons. One processes php code that updates info in a DB and the other deletes the info in the DB. The problem is that … |
The End.