43,549 Solved Topics
Remove Filter ![]() | |
Hello. Can anyone please explain why the following code is not producing any runtime error? [CODE]int a[] = {1, 0}; printf("%d", a[-1]); [/CODE] PS:im using VC++ 2008. Thanks. Software Development c++ | |
My friend said me a document that contains a large no. of spaces for eg- Where is the CeBit computer show held annually Hannover, Germany What is Error 403 ? Site Access Forbidden/Password Protected What is Error 404 ? Page/Site not found -in HTTP What is HotJava First web browser … Software Development c++ web-browser | |
I made a quick program as my first venture into c++ but it seems to be buggy. As far as i can see my code seems logical, but the endl; above firaddress seems to be interfeering. Can anyone help please? [CODE]#include <iostream> #include <string> using namespace std; int main() { … Software Development c++ | |
Can anyone help me in join the 3 combo boxes with filters The main idea is there are 3 combo boxes when we select an item in the first combo box the related items should apper on the remaining 3 combo boxes and when we select an item on the … Software Development java | |
Hi guys, Please help me when i install my application on clients it only connect with one user like Naveed/Password on domain but when i login on domain by using other user it gives me connection error what should i modify in my connecting string. [CODE]"PMS.My.MySettings.ConnectionString" connectionString="Provider=SQLOLEDB;Data Source=ITS;Integrated Security=SSPI;Initial Catalog=Payment"[/CODE] … Software Development vb.net | |
hi all can u pls help me regarding iterating through an integer variable within a subprocess call here is what i exactly want to do for n in range(1,16): subprocess.call(['snmpset', '-v2c', '-c arct1c', '192.168.5.157', '.1.3.6.1.4.1.18489.1.2.1.5.1.2.0', 'i ','n']) i.e., i want to iterate through snmpwalk..but its not working:( it shows 'bad … Software Development python | |
Hi i am using C# to connect to Access database. The problem i am facing is not with database though. I have used a statement like [CODE]string.Format("UPDATE TABLENAME SET FIELDNAME = '{0}' ", txtMembers.Text);[/CODE] the problem i am facing is if the user enters 'hello', the whole text along with … Software Development | |
I haven't noticed this until I tried it today and boom! Compiler complained: [COLOR="Red"] error: constructors cannot be declared virtual[/COLOR] Why then Constructor is not okay while destructor is, in such as class as this? Thanks [CODE=C++]class MyAbstractClass{ public: virtual MyAbstractClass(std::string username, std::string password)=0; virtual ~MyAbstractClass(std::string username, std::string password)=0; virtual … Software Development c++ | |
Can someone tell me what wrong with this code i am supposed to create an array of struct of cars and then add 1 to the car sold then find the inventory value comprising of all car values this is my infile lexus IS 35000 10 bmw 740 90000 5 … Software Development c++ | |
the following are my utility.h which i got from my professor there is error 2332 on line 5 & 6 after doing a bit of searching i do understand what does the error means but i just not quite sure how to fix it! can someone explain it to me?? … Software Development c++ | |
Hello I was wondering how can I set a char limitation in my code when I am asking for an int? When you input a char my program goes crazy. Let's put the following simple program as an example: [CODE]#include <iostream> #include <iomanip> using namespace std; int main() { int … Software Development c++ | |
I am taking an algorithm class and haven't coded in c in around 5 years and realized I have forgotten alot. I tried to use atoi, i know there is a better function but for what I'm using it for and my lack of knowledge now it is simpler, for … | |
I had just started learning C++ for couple months n this program is involved with pointer there is a bug in my "doInsert" function however, I dont seem to be able to figure out what is wrong with it every time after I enter the "position" the program crashed can … | |
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 … Software Development c++ | |
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 … Software Development java linked-list | |
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 … Software Development c++ | |
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 … Software Development c c# c++ monitoring-software | |
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 … Software Development gui java java-swing | |
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 … Software Development c++ | |
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 … Software Development c++ | |
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 … Software Development file-system ide java | |
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 … Software Development c# dataset open-source xml | |
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 … Software Development c++ data-structure | |
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 … Software Development c++ | |
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. Software Development c | |
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 … Software Development | |
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. … Software Development java | |
![]() | 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 … Software Development |
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() Software Development python | |
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 … Software Development c++ | |
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> … Software Development c | |
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] … Software Development queue | |
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 … | |
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 … Software Development java | |
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 … | |
| |
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 … Software Development c++ | |
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 … Software Development | |
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. … Software Development | |
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. … Software Development c++ | |
hello guys i need help is it possible to check if the customer input his complete name is valid or not? if yes how? Software Development vb.net visual-basic | |
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 … Software Development c++ | |
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 … Software Development vb.net | |
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 … Software Development java | |
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 … Software Development c | |
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: … Software Development python | |
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 … Software Development c | |
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 Software Development | |
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. Software Development java | |
Hi, I have to make a program that takes an input text file and reverses the contents of that file, and outputs that into another text file. I am new to stacks, but what I have so far nothing happens, it just outputs a blank text file. I just wanted … Software Development c++ |
The End.