132,726 Archived Topics
Remove Filter ![]() | |
Hi guys (and gals) I'm pretty new to c++ and programming, but I am keen as hell I bought a boot to start learning by Bjarne Stroustrup - Programming - Principles and Practice using C++ I am up to Chapter 3 and doing the 'exercises', only I am stuck on … Software Development c++ | |
I have a problem where I need to display a seating assignment for an airplane. It will have 13 rows and 6 columns. If the seats are empty, it should display * and if the seat is taken it should show an X. There will eventually be 3 different types … Software Development c++ | |
because when I debug the code step by step, the report couldn't be loaded at all.. what do you think is the problem? Software Development | |
![]() | I am having a problem with my backtracking function it loops with certain data I can't write here the whole program code but can put here my function. [CODE]bool shareMoney(int quantity, int *values, int index, int moneyA, int half, bool *ifChosen) { if(moneyA == half) return true; else if(index >= … Software Development c++ ![]() |
Hello! How can I make this code (converting seconds to hours, minutes and seconds) that the program will have a [B]subroutine function[/B]? Subroutine needs to return a full-time. The code is: [CODE]class Program { static void Main(string[] args) { Console.Write("Enter the number of seconds: "); int seconds = int.Parse(Console.ReadLine()); TimeSpan … Software Development | |
Hello, I am trying to write a program that will reverse the numbers inputted by the user. It doesn't seem to be having the desired outcome and I don't know why. Here is the code I am using, [CODE] #include <iostream> #include <conio.h> #include <string> #include <sstream> using namespace std; … Software Development c++ | |
Hello, I am new in web technologies. Please, help! I've created xsd file, using Visual Studio to do validation for xml data xsd: <?xml version="1.0" encoding="UTF-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="stations"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="station-entry"> <xs:complexType> <xs:sequence> <xs:element name="station-id" type="xs:unsignedByte" /> <xs:sequence> <xs:element name="entry" type="xs:string" /> </xs:sequence> </xs:sequence> … Software Development visual-studio xml | |
I need help with this program. I do not know how I would calculate to find out the gallons as well as the cost as pictured in my output. How would you do this? Here is my output: For each student, you will get the gallon of paint Input the … | |
Hi Need help reading data from a file after a specific point. I need to read the data from this file into a richtextbox after the [HRData] header. This is the contents of the file I'm reading from. [CODE][Params] Version=106 Monitor=34 SMode=111111100 Date=20100926 StartTime=08:45:59.0 Length=00:33:36.6 Interval=1 Upper1=0 Lower1=0 Upper2=0 Lower2=0 … Software Development file-system | |
Right now, with the manifest file, I am able to create my runnable jar to work with: folder structure: [CODE]libs/thirdpartylib1.jar libs/thirdpartylib2.jar myJar.jar[/CODE] using this manifest: [CODE]Class-Path: libs/thirdpartylib1.jar libs/thirdpartylib2.jar Main-Class: myPackage.myClass[/CODE] Is there any way I can package these jar files into my runnable jar so that I do not need … Software Development java | |
This is the function in question... What happens is the user opens notepad, if notepad is open then they are required to type a password.. If its invalid, notepad is closed.. if the password is valid, it continues.. else if the user hasn't entered a password within 10 seconds, timeout.. … Software Development c++ | |
Hi all, i have been given an assignment asking me to: "The CashRegister class has an unfortunate limitation: It is closely tied to the coin system in the United States and Canada. Research the system used in most of Europe. Your goal is to produce a cash register that works … Software Development java | |
Hello, I'm curious as to what the "key" for a DataTable Row collection is. And if there is a better way of executing what I'm trying to do. My situation is this. I have a DataTable populated with different data from multiple databases, for the sake of this thread let's … Software Development vb.net | |
I tried to make a simple program, draw a 4 sided polygon with 4 mouse clicks. This is the code: [CODE]import acm.graphics.*; import acm.program.*; import java.awt.event.*; public class Pravougaonik extends GraphicsProgram { public void run() { addMouseListeners(); } public void mouseClicked(MouseEvent e) { GPolygon cetvorougao = new GPolygon(); cetvorougao.addVertex(e.getX(),e.getY()); cetvorougao.addVertex(e.getX(),e.getY()); … Software Development java | |
the code display 2 colunms in one combo box from a table. i have table with 2 columns account_type and account_name. the account_type is an abbreviation(codes) which would be stored in a new table when selected. I want the code when the combo is click, would display the code-account_type and … Software Development vb.net | |
Hello World! I am new to C and would like to write a C program to accomplish the following: I have an external 600GB USB disk device, Padlock Pro. The device, which can be seeing at: [url]http://www.amazon.com/Apricorn-Encrypted-Portable-External-A25-PLe256-640/dp/B003EYVJTU/ref=sr_1_1?ie=UTF8&qid=1298479333&sr=8-1[/url] has a number pad on it. It uses a maximum key of 16-digit, … Software Development c | |
I am doing some code challenges from a book and am stumped on this particular challenge. I am supposed to pass an array to a function, use the function to determine the minimum, pass that value back to main and print a response varied by the returned value. The problem … Software Development c++ visual-studio | |
How can I change the image on the picture box when the mouse is over the picture box I know how to end the application when the mouse is over the picture box but what is the code for changing the picture C++ (I need to use mouse enter class) … | |
Hello! I am trying to write a program using recursive functions to identify the path to a given maze. The thing that I am confused about is how to move to the next direction in order to check which way the path goes. For example: 000000 011100 010100 010110 0S00F0 … Software Development c++ | |
Dim substr As String = dr.Item(4) if substr is {System.DBNull} substr = "" if substr is "" then do not do substr = substr.Substring(0, 2) else substr = substr.Substring(0, 2) I need this in vb.net Software Development vb.net | |
Hello all, So I am having trouble figuring out a runtime error I am getting in my code. Essentially I read in data and push it into two lists (using the STL list). Then I use the .sort() function to sort the data by average. However I am having a … Software Development c++ ios linked-list open-source | |
I have just started learning Gtkmm basics, and I the box widget is doing my headache, and here is the problem: [CODE] #ifndef NEWFILE_HPP #define NEWFILE_HPP #include "gtkmm/window.h" #include "gtkmm/scrollbar.h" #include "gtkmm/adjustment.h" #include "gtkmm/box.h" #include "gtkmm/label.h" #include "gtkmm/scale.h" #include "gtkmm/togglebutton.h" class window:public Gtk::Window{ public: window(); ~window(); private: Gtk::VScrollbar bar; Gtk::Adjustment … Software Development c++ | |
Hey guys! So I recently started exploring the InetAddress object, and came across 2 methods which confused me: [ICODE]getHostName()[/ICODE] and [ICODE]getCanonicalHostName()[/ICODE]. I don't fully understand the difference between a canonical host name (fqdn) and a general host name, so if someone could explain the distinction to me in detail that … Software Development java | |
Hi, Was wondering if anybody could give me his/her opinion about what i am doing. This program i am writing is basically a way to record orders. So i got a bunch of possible components required, which got their textfield(1 for product info, 1 for product price). Those are controlled … Software Development vb.net | |
I have written the following code which works fine But the problem is in the database only 3rows from csv file is reflected and rest is not Following is my code Can anyone help me for the same [code] namespace Test1 { public partial class Form1 : Form { public … Software Development | |
So I converting a decimal value into hex, but I need to print it out from an array. I'm not sure where to go from here. [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> int hexa = 16, deci, quotient, p; void dec2hex(unsigned int x, char hex[]) { for (p = … Software Development c | |
Hey people, I have a database that is stored on a remote machine. In my application i have used connection string with IP address of that remote machine. Now, the problem is every time the remote machine is turned on it has a new IP address. Is there any way … Software Development | |
Hello ppl, I have recently started C# and while going through initial pages of bitwise operators 1 doubt came into mind. v know dat int is of 32 bits in C#. Suppose i take a number and assign some value to it and then after left shifting it by 32,the … Software Development c# | |
Dear Sir/Madam, I have two types of procedure for one/same result. No. 1 procedure is very long without loop and no. 2 procedure is sort with many loops. So I want to check those procedure, which one is taking less time than another. Please guide me. Software Development visual-basic | |
For example i have the following fields in the database name, student number, course then i have multiple data in the database e.g. 25rows = 25 students when i try to edit them, you need to first click the row in the datagrid that you want to edit then ive … Software Development visual-basic | |
i allocate memory for b_edge in function bark_edge and give value to only b_edge[1][1] and try to return b_edge from function. segmentation fault comes? can you please check why? [CODE]//function bark_edge+main program #include<stdio.h> #include<math.h> #include<stdlib.h> double **bark_edge(); main() { double **b_edge; b_edge=bark_edge(); printf("%f",b_edge[1][1]); } //FUNCTION-bark_edge double **bark_edge() { int i=0; … Software Development c | |
Hello there, I'm trying on Gui exercises. One of them requires a simple GUI class for Vehicle. The GUI should have buttons for creating new SportsCar and new Van objects. and then should display the values of the instance variables of these variables. The GUI should also calculate and display … Software Development gui java java-swing | |
segmentation fault comes in the program? please help? is there any way i can check in which part of the program is the mistake? Thanks daniweb and members... [ICODE] //function bark_edge+main program #include<stdio.h> #include<math.h> #include<stdlib.h> double **bark_edge(int f_size,int samp_freq); double **transpose(double **x,int M,int N); main() { int f_size=1024; float samp_freq=44100,fcmax=samp_freq/2; … Software Development c | |
hi, is there a way to convert from string to long? for eg: i want to concatenate all the arrays into data and make it same type (long) as data1. [CODE] a='0x' array0 = '00000018000004000000000000000000' array1 = '00000000000000000000000000000000' array2 = 'fe000000000000000000000000000000' array3 = '00000000000000000000000000ffffff' data = a+array0+array1+array2+array3 print data print … Software Development python | |
Hi there, this is my first post here and i hope that im in the right place. as the thread's title explains (at least i hope it does) im trying to analyze a string and filter out valuable data from a Cardrooms Client logfile - to get precise: say i'm … Software Development | |
Hi Everybody, I want to send Free sms in java without using any modem please help me out,i have been doing this since one week. Any help will be deeply appreciated. Thanks in advance Arpita :) Software Development java | |
I need some help with checking a process or if a certain window name is open on my project. Right now what I have is: FSXCheck = Timer fsx.exe = Flight Simulator X [CODE]Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load FSXCheck.Enabled = True End Sub … Software Development vb.net | |
hi, i have a script that converts hex to bin and bin to hex back. however, when converting back to hex the leading 0s are truncated. how to maintain the leading 0s? i'm using Python 2.5 and Win XP. tq [CODE] import binascii import string def byte_to_binary(n): return ''.join(str((n & … Software Development python | |
Hi, i have this datagridview containing column: {product, price, quantity, Total price}, and a 'calculate' button. I need to enter the quantity column and when I press 'calculate' button, it will calculate total price by price*quantity what i am struggling now is how to grab the 'text' in "quantity" column, … Software Development vb.net | |
I have develop an utility for my company in which there is two file format If i browse file which is eg->ACE.T004 It gives following error [B]Error:Index and Length must refer to the location within the string Parameter name : Length[/B] Following is my code [code] using System; using System.Collections.Generic; … Software Development file-system | |
Button is disabled until a radio button is selected. Software Development vb.net | |
Hello, I'm not new to C++ but I usually program in Linux. I'm currently programming in Microsoft Visual Studio 2010. I just installed the Magick++ x64 binary library. I've read the "detailed" installation instructions on what to do next but honestly I am completely lost. In the .pdf it says: … Software Development c++ open-source pdf visual-studio | |
I'm writing a program that inputs the amount of money and outputs it preceded by dollar sign and divided by commas into groups of three digits I'll enter the money as string and call function called mstold()and returns an equivalent number as long double so my problem is how can … Software Development c++ | |
Hey, im just wondering how to say the source of a webpage that is in your WebBrowser Control. I've tried loads of methods but i am failing horribly (google isnt my friend today). Just wondering if someone could share some insight :). Software Development | |
Hello. Im very new to assembly. Like, 2 weeks new. Im an IT student and I want to practice assembly in my very own laptop. I want to download assembly resources but Im not sure what. I know this exists in the assembly resources thread but Im really clueless. It … Software Development assembly windows-virus | |
hey all, i'm trying to get all content of a webpage using python and trying to put them all into a file. Here is my code: [CODE]import urllib data = urllib.urlopen('http://www.site.net/index.html').read() #print data //if i ignore the rest part of this code the code is just working awesome...its printing the … Software Development python | |
Hello, this is an odd problem, I have a method that goes through a list (in a foreach cycle) and writes every string found in the list to a text file, each string in a new line (then a blank line) then the next string. The list contains 106 strings, … Software Development | |
i have to make a screen output final with variable which will set the height of atree.a the while loop has to be used.im kinda stuck to figuring this all out. the tree has to look like this * *** ***** ******* ********* *** so far all i have is … Software Development java ![]() |
The End.