64,152 Solved Topics
Remove Filter ![]() | |
Can anyone help me figure out why I have a segmentation fault error occurring during runtime? I'm guessing that I am accessing memory that doesn't exist or attempting to place data into a node that hasn't been allocated, but can not figure it out. FYI - It's a work in … | |
I have a scenario where i am given a file that contains info such as: (just a sample) img01.jpg|Washington DC|aquarium|puffer fish|seahorse img02.jpg|CHICAGO|AQUARIUM img03.jpg|Chicago|fish where the first section is the "image" (just a made-up name, not an actual image) and the rest of the words are keywords. ive been able to … | |
Ok what am I missing?? I have a dropdown list so that admin can select a value from and then update the database. The list IS populated but the select box isn't wide enough to see any of the option values. I even tried adding a size attribute. I know … | |
This program is suppose to grab the first letter of each name and then output the initials. #include <iostream> using namespace std; const char blank= ' '; const char newline= '\n'; void main() { //Declare character variables char firstInitial, middleInitial, lastInitial; cout<<" Please enter first, middle, and last name separated … | |
I'm a first semester student of Master degree and i need to implement a project in C# that uses a database with transactions and any kind of monitoring. I already know how to connect a database with C# and i know how to work with databases, but i don't have … | |
I need to query data from a table accourding to user level to genarate a menu list for different user levels, the code worked well with (session->username) but when I changed to (session->user_level) it does not want to work. Any help will be appreciated. Here is my code: [CODE=php] <?php … | |
Good morning all. I've run into a slight stumbling block with some code I'm writing. I'm sure you've all seen the numerous Mortgage Calculator threads so I hope you're not too sick of them yet. Basically, I need my code to first ask the user for a decision, then based … | |
if a pointer is a dangling pointer and one applies delete[] to it. is the result defined or not. i basically have the following situation [CODE] class A { private: int *p; //other data members public: //rest of class } [/CODE] i intend to initialise p in the constructors. but … | |
I'm having a little trouble returning the current date from a dll function. Here is my code [CODE]LPSTR __stdcall date() { int i; char dateStr [10]; _strdate( dateStr); LPSTR string = ""; for (i = 0; i < 10; i++) { string += dateStr[i]; } std::cout<<dateStr<<"\n"; return dateStr; }[/CODE] I … | |
Hey! I started using java this year and I finished a java project but when I try moving it somewhere else in my directory it does not execute anymore. My project directory tree goes like this (I am using eclipse)... (ignore the "-") /Root - /bin -- JavaProgram.class -- JavaProgramMain.class … | |
helo all i wanted to import .csv file to my application [CODE] private DataSet ReadExcelData(string sFilePath) { DataSet dsOutput = new DataSet(); string sConnection = string.Empty; try { if (TypeExcel == "Excel 12.0 Xml") { sConnection = "provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + sFilePath + ";Extended Properties=\"Excel 12.0 Xml;HDR=YES;IMEX=1\""; } else if (TypeExcel … | |
Hi, i have created a data structure {heap based}, capable of manipulating up to 10 million elements....I noticed that i can't go above this number because i have serious memory leaks.... The problem seems to be that i haven't written a destructor!{i a bit used to garbage collection!} if i … | |
Hello. How can i use SendMessage to "press" other program's button? I don't know other program's button's ID but there is only one button in that program. I searched MSDN and found something. I tried this piece of code: [CODE]HWND hWnd; hWnd = HWND(FindWindow(NULL, "WindowName")); SendMessageW(hWnd, BM_CLICK, NULL, NULL);[/CODE] At … | |
hiii guys.. i am trying to make an mp3 player using ADSP 21369 processor. For that i need a code which can convert mp3(mpeg2 layer3) samples to wave samples in c. thanx in advance. | |
Hi ! I have one Windows Form. On it i put 4 labels and every label it have Click event. I need to understand who of labels is Clicked ? Example: [CODE]label1.Click += new EventHandler(label_Click); label2.Click += new EventHandler(label_Click); label3.Click += new EventHandler(label_Click); label4.Click += new EventHandler(label_Click); private void label_Click(object … | |
The problem of scheduling unit-time tasks with deadlines and penalities for a single processor has following inputs S={a1,a2,...,an} of n unit-time task. A unit-time task requires exactly 1 unit of time to complete deadlines d1,d2,...,dn, 1<=di<=n penalities w1,w2,...,wn. A penality wi is incurred if task ai is not finished by … | |
My problem is to design a program that uses a mathematical model for heat loss, or Tnew = Told - m(Told - Tair). It also asks me to repeat the code for 60 minutes, generating a new answer every minute. I have completed the code, however I receive no output. … | |
![]() | Hi out of personal interest i have decided to make a space invaders games. I know all the things i need to implement and i have done a good job if i do say so myself :D. But i have one final problem. When my space ship is just staying … |
I am trying to show two hidden <div> (lines 54 & 55) depending on the value of a session variable. I know the "if" statement is working because the alert tests I have do show when the code is run. The "Viewing all whose payment has NOT been confirmed." should … | |
Is it possible to import a and import b, but have functions from both a and b under a different name? Example under a.py there is function jopen() under b.py there is function ropen() i want be able to call both of them from c: c.jopen() c.ropen() | |
So, my assignment is to take in a student ID, first and last name, and 5 test scores. I am then to average the test scores, collect all of that data into an array and output all of the information in a tabular format(which I have yet to do). I … | |
Hi! Sorry for my bad english! How to make one php file that will make a picture with some text, numbers...? How to make it if user doesn't have font that is used in this picture? How to make it with different, that one letter be largest that the second … | |
hi everyone! i've been trying to make a program regarding returning the number of characters with even ASCII codes. For example, if a user input ABCDE, the output should be 2 since B and D are of even ASCII codes. Here's what i've done so far... [CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> … | |
I have an application that, on occasion, might need to perform certain tasks on files, or other things that are "in-use" while the application in running. This is what I've tried to do, but I'm running into problems: I created an interface: [CODE] interface IShutdownCommand { void OnShutdown(); } [/CODE] … | |
Hi, I am working on querying a specific value from my xml file. Below is what I have so far. When running the entire script I get the error "Incorrect syntax near 'varchar'". Thanks -- Declarations needed to run sp_xml_preparedocument. This will create XML image. Declare @idoc int Declare @doc … | |
I need to build a program which will upload a .txt file to the server, will read it using StreamReader and the populate an existing SQL table with the concent. The first Page (profiles) does exactly that and works perfectly.. It has a text delimiter and splits the text into … | |
I'm sure this is something stupid but I cannot figure out why I am getting a syntax error with this. Thank you for taking the time to look at my code This is the code that builds the query. [CODE]$numElements = count($new_array_without_nulls); $i=1; // Don't add comma to last element … | |
Hi guys, I'm working on a program which is essentially Rock Paper Scissors Vs. the computer. Anyway I'm having a bit of difficulty with it and could use some assistance. I need to use a class method, so I decided to separate the computer's choice in the class method, I'd … | |
Im trying to create a program which acts like a fruit machine at the moment i am writing an action listener to work with the spin JButton. i have a number of IconImages constructed. could i possibly set these images as an array and then use the random int method … | |
| |
Hi, I wish to select an <a>'s alt property and use it to create a message to display help to the user. This is what I've got so far: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-language" … | |
Hi Friends ! I Need a Paging Script such as Gmail for my College Project Which is a CMS based on Windows Sky Drive with Email Facility....! Thanks in Advanced! | |
![]() | hi, Am having a problem Inserting into SQL 2008 database using stored procedure from a php webpage. My Stored Procedure is: [code=text] Create PROCEDURE [dbo].[udp_AddContact_Insert] @Contact_ID int, @Client_ID int, @STD varchar(10), @Tel varchar(20), @Mobile varchar(20), @EmailAddress varchar(100), @FirstName varchar(20), @LastName varchar(20), @Title_ID int, @Position_ID int, @User_ID int, @SourceURL varchar(1000), @PositionText … ![]() |
there are four playing cards . you choose one of them if selected card is 1 spades you win else you lose but ı want to make win card as random from 4 cards. i dont know how. [CODE] #include <cstdlib> #include <iostream> using namespace std; const int clubs=0; const … | |
hello everyone, I am using System.Timers.Timer class. its object is myTimer and am using myTimer_Elapsed event to raise the event. I have used two masked textboxes that takes start and stop time as input and one button. The timer is instantiated in button click event . The code is shown … | |
Hi, I have a rich text box and i like to skip enter key on the rich text box. i.e; If user pressed enter key the rich text box cursor should not move to next line rather than it should do some action. I have achived this to some what. … | |
Can anybody help me with permutation in c++. say if the entered string is "stop" then there must be 24 (=4*3*2*1) different words made by the letters s,t,o,p. Similarly if the entered string is "abcde" then there will be 120 (=5*4*3*2*1) different words made using the letters a,b,c,d,e. Please Help. … | |
hello guys i need help is it possible to check if the customer input his complete name is valid or not? if yes how? | |
Hi everyone, I'm having problems with the output of this coding and I would really appreciate the help. The assignment requires to show how someone's taxes are distributed by first ask the user for the amount of money (dollar[] and income) and at the same time prompt for the taxes … | |
Salaam to all viewers Dear please help me on this topics iam having a form,DatagridView,textbox datagridview contains a data when we write in textbox so the datagriview row select who matching data with textbox for example i write in textbox Nims so the datagridview row select where the nims find … | |
Really sorry if i m postin under the wrong topic. V ve to simulate a WAP-based course registration system.It can be for Nokia, Ericsson,.. V can use the simulators available online also. If this software is available, v can make use of tat itself. V ve to understand how it … | |
I am having an issue with populating values from a form into a mySql database. When the code attempts to send the insert query to the database, it returns the error, ERROR: Incorrect decimal value for column 'purchase_price' at row 1 I think I can understand what is happening here. … | |
Hey guys, I'm working on this program. It should roll 2 separate die and repeats until the computer rolls doubles. I'm having some issues with it and could use some help. [CODE]// RollDoubles.java // import java.util.Scanner; public class RollDoubles { // Dice roll repeatedly until computer rolls doubles // print … | |
This is the code I have so far. I can't even get the numbers range to print to the screen correctly. I am very new to all this stuff so go eacy on me. Can anyone help?? [code=c] #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> int main() { unsigned … | |
hi, i have a page which shows user details(div1) by default there will be an admin who enters username and pwd and then a new div(div-layer) is displayed. also ,a user can edit his data by pressing edit button on which he will be displayed div2 and div1 will be … | |
Hi. How can I get subprocess.Popen.stdout size? Before reading from Popen.stdout I want to check its size, then get bytes from it. [CODE] def execute_bash(self): wait_sec = 5 import time import subprocess wForceKill = True res = subprocess.Popen(self.command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for i in range(wait_sec): res.poll() if res.returncode != None: … | |
I am currently writing a simple program that will either allow me to add music or show all of my albums, artists, and songs. The program starts in main(); then after selecting "View Music" it goes to the viewMusic() function but runs through the function and skips the getchar() for … | |
Hi, please help me to get the URL from the address bar. Example when i write [url]www.google.com[/url] in my address bar my application in c# return the value of URL that is [url]www.google.com[/url] please help me to write this code. Thanks in Advance | |
Hi, I found a very useful app on the web. Downloaded the .class file and was just wondering if it would be possible to somehow put that app on my phone. It's a Nokia E5 and I'm certain it has java. Please advise. Thank you. | |
Hi I am learning SQL at school. I need to work with Oracle 8.0 or any other version before 9i. I have tried to do it, but just came to know that its antique. Hence I need your help to download it. Kindly give me the link. |
The End.