132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pete_g

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++
Member Avatar for pete_g
0
173
Member Avatar for landercat

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++
Member Avatar for malakago
0
308
Member Avatar for xxxtian

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
Member Avatar for xxxtian
0
80
Member Avatar for rancosster

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++
Member Avatar for rancosster
0
131
Member Avatar for trume

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
Member Avatar for trume
0
125
Member Avatar for Tursup

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++
Member Avatar for Tursup
0
139
Member Avatar for AngelaGadre

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
Member Avatar for iceandrews
0
2K
Member Avatar for plang007

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 …

Software Development c c# c++
Member Avatar for Ezzaral
0
242
Member Avatar for moose333

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
Member Avatar for Mitja Bonca
0
167
Member Avatar for TheWhite

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
Member Avatar for Ezzaral
0
121
Member Avatar for triumphost

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++
Member Avatar for Narue
0
337
Member Avatar for J-Viv

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
Member Avatar for DragonMa
0
399
Member Avatar for GH23

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
Member Avatar for GH23
0
572
Member Avatar for andrasitc

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
Member Avatar for andrasitc
0
174
Member Avatar for jmensah

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
Member Avatar for prvnkmr194
0
117
Member Avatar for thecstudent

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
Member Avatar for thecstudent
0
203
Member Avatar for yozzie

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
Member Avatar for yozzie
0
174
Member Avatar for emreozpalamutcu

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) …

Software Development c++ image
Member Avatar for emreozpalamutcu
0
635
Member Avatar for ac20734

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++
Member Avatar for gerard4143
0
236
Member Avatar for Progr4mmer

I wanted to know if its possible to change the text of a JTextArea or JTextPanel from another method and if so how?

Software Development java
Member Avatar for Progr4mmer
0
206
Member Avatar for mcupryk

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
Member Avatar for Andyc75
0
348
Member Avatar for atticusr5

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
Member Avatar for atticusr5
0
182
Member Avatar for cppgangster

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++
Member Avatar for musiord
0
224
Member Avatar for kvass

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
Member Avatar for kvass
0
1K
Member Avatar for CrashanBurn

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
Member Avatar for CrashanBurn
0
204
Member Avatar for Arjun_Sarankulu

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
Member Avatar for Arjun_Sarankulu
0
196
Member Avatar for Protoroll

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
Member Avatar for Ancient Dragon
0
125
Member Avatar for ajinkya112

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
Member Avatar for ajinkya112
0
583
Member Avatar for sonuja

how to connected data base(sql) with c language......? with exampal...?

Software Development c
Member Avatar for Ancient Dragon
0
131
Member Avatar for ashish101

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#
Member Avatar for ashish101
0
204
Member Avatar for P.manidas

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
Member Avatar for AndreRet
0
342
Member Avatar for xtianenikkian

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
Member Avatar for AndreRet
0
1K
Member Avatar for vineeshvs

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
Member Avatar for vineeshvs
0
181
Member Avatar for whateverme

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
Member Avatar for mKorbel
0
423
Member Avatar for vineeshvs

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
Member Avatar for vineeshvs
0
408
Member Avatar for tcl76

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
Member Avatar for Gribouillis
0
5K
Member Avatar for danisahne

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
Member Avatar for danisahne
0
118
Member Avatar for AppB

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
Member Avatar for masijade
0
119
Member Avatar for Joshua Kidd

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
Member Avatar for G_Waddell
0
121
Member Avatar for tcl76

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
Member Avatar for TrustyTony
0
3K
Member Avatar for wewehalim

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
Member Avatar for hansys
0
265
Member Avatar for Arjun_Sarankulu

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
Member Avatar for Momerath
0
106
Member Avatar for AnooooPower
Member Avatar for AnooooPower
0
2K
Member Avatar for drumboy354

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
Member Avatar for tamoghnaroy
0
146
Member Avatar for reemhatim

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++
Member Avatar for Ancient Dragon
0
389
Member Avatar for FTProtocol

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
Member Avatar for saad749
0
567
Member Avatar for Whilliam

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
Member Avatar for Goalatio
0
272
Member Avatar for debasishgang7

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
Member Avatar for richieking
0
141
Member Avatar for MrCapuchino

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
Member Avatar for MrCapuchino
0
1K
Member Avatar for Clandestinexxx

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
Member Avatar for ztini
0
192

The End.