132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hsquared

when adding data into a binary tree, is it possible to add more than one field of data per node? for example say the first left child will have something like "info", would you be able to add a name and age field, then be able to display it? it …

Software Development c++
Member Avatar for mrnutty
0
103
Member Avatar for kuen

hi guys, i have some questions here Q1- i want to write programme to count the even and oss numbers example: the user input is 12345 so: even= 2 , odd = 3 this is my code [CODE]int even[5]={0,2,4,6,8}; int odd[5]={1,3,5,7,9}; int n[10]; int count_even = 0 ,count_odd = 0; …

Software Development c++
Member Avatar for kuen
0
117
Member Avatar for kiryoku

can anyone help me to figure out how to nest forms on visual basic?? example: i would like to link form1 to form2?

Software Development vb.net visual-basic
Member Avatar for mbrown686886
0
113
Member Avatar for hsquared

how would i go on about adding an item into an array. the catch here, is that instead of adding content normally, i want the added content to be added as a linked list. for example, if i add something into the first slot, and want to add another item …

Software Development c++ linked-list
Member Avatar for Fbody
0
141
Member Avatar for Jamesbch

Hello everyone, I'm developing a multi-client server on Linux and I've noticed a strange behavior: I'm using a regular [B]Makefile[/B] to compile and run my server, nothing fancy. But now I've tried to run my server [B]by hand[/B] using the command line and my server won't accept any incoming connections …

Software Development c client-server http-protocol queue
Member Avatar for Jamesbch
0
255
Member Avatar for haggard433

I'm trying to send a list of songnames to a client i built. Everything compiles fine, it even sends the first filename right. When the server begins to send the second filename it sends every filename as one. E.g: First: Like the way.mp3 Second: Pump it up.mp3Billionaire.mp3...... it just continues …

Software Development c++ client-server
Member Avatar for haggard433
0
130
Member Avatar for ryan461

Im following a perl book, and one exercise has you enter a number, sum them up until you type 999(the exit code). Their example works, but when I try using use strict, I cant figure out how to get the variable in the while loop to go global Here's what …

Software Development perl
Member Avatar for ryan461
0
756
Member Avatar for -ordi-

Best way to parse this webpage private info: [url]https://ee.ekool.eu/index_et.html?r=2#/?screenId=g.user.login&err=1[/url] I found Beautiful soap and PyKhtml. What is the better?

Software Development python
Member Avatar for -ordi-
0
533
Member Avatar for JDean89

Hi, I'm not sure what this code does. [CODE]int total(int value1, int value2) { int sum; sum = value1 + value2; return sum; }[/CODE] This method should take in 2 values and calculate the sum and return it. But I don't understand where it returns it to? In my main …

Software Development c++
Member Avatar for JDean89
0
129
Member Avatar for ToRtUgOxX

I m searching for a library for filling forms, and click buttons. in C++ , linux or windows. Thanks.

Software Development c++
Member Avatar for gashtio
0
419
Member Avatar for haggard433

Hello, I've just started with C++ and I'm creating a program where I can start and stop music on my PC with my mobile phone. Everything works fine in the program for my phone (client), but it seems that the server (PC) doesn't start to play the music. I'm using …

Software Development c++ client-server
Member Avatar for haggard433
0
134
Member Avatar for acash229

Hey guys, I have tried for 3 days now, tried so many forums but help, but still i cannot get the help. I need help from this forum, because i have heard the members are very smart. Basicaly i have a code for a game. The point is that the …

Software Development java java-swing
Member Avatar for acash229
0
308
Member Avatar for Tusike

Hi! I've been trying to create an amoeba program that is smart enough to beat me. So far I didn't really succeed. Please read how I approached the problem, and if you have other ideas of solving it or suggestions, tell me! OK, so basically in amoeba the program looks …

Software Development algorithm c++ open-source
Member Avatar for Fbody
0
284
Member Avatar for coffeewithcream

How do you perform hexadecimal addition in C++? like ACD2 + 23E1 = D0D3 5A72 + 4573 = 9FE5 ___________________________________________________ the addends will be asked by the program then the program should show the sum ___________________________________________________ the addends required are only 2

Software Development c++ mathematics
Member Avatar for mrnutty
0
3K
Member Avatar for group256

Dear all, What is wrong with my if condition, it never enters the if: [CODE] #!/bin/bash echo "Enter integers, enter -1 to stop." declare -a FOO for((i=0;;i++)); do read FOO[i] if [ "[$FOO[i]" == -1] ]; then #Never enters here echo "inside" break fi done foonum=${#FOO} for ((i=0;i<$foonum;i++)); do echo …

Software Development shell-scripting
Member Avatar for group256
0
135
Member Avatar for geno93n0

I need help converting numbers... I'm supposed to make a program that takes an input, which can be binary, hex, decimal or octal, then convert said input to the remaining bases. It's supposed to have a menu, where I can pick the base of the input. I found a code …

Software Development assembly
Member Avatar for scarlet21
0
407
Member Avatar for justinwarner

Hey, So, in our book (I'm doing them for practice, I don't know if we have to actually do them), it says to display the pattern: [CODE] J A V V A J A A V V A A J J AAAAA V V AAAAA JJ A A V A …

Software Development java
Member Avatar for justinwarner
0
3K
Member Avatar for nssltd

Hi there. I have been working on a web browser project and i have got my own history system working, but unfortunately even if the user deletes the history it is still recorded on internet explorer! I want to be able to only record history on my project and stop …

Software Development web-browser
Member Avatar for nssltd
0
166
Member Avatar for kloony

Can anyone please explain to me the following strange phenomenon? I have a code in C, and when I compile it is Windows Platform compiler (Borland 5.5), they compiling is fine and when I execute the program, everything turns out ok. However, when I use the same code and compile …

Software Development c unix
Member Avatar for creeps
0
199
Member Avatar for lucaazori

Hi, i would like to know how to refresh data base after i insert records. I explain, i have form in which user add data into database ACCESS, after that if he would like to view all data he got it but without the latest added, so i was obliged …

Software Development vb.net
Member Avatar for samuel_1991
0
3K
Member Avatar for joblanigan

hi, im new to java and am trying to create a simple paint program, what i'm having difficulty with at the moment is creating a field that will remember the current shape the user has chosen, i really don't know too much about what i'm doing more trial and error …

Software Development java java-swing user-interface
Member Avatar for coil
0
364
Member Avatar for prvnkmr449

Hi all of you, Iam creating a Inventory System on vb.net and I need some image for like new,search,delete copy cut edit etc can any Help me from I get all this Images, I try to search in google bt I did't get thanks In Advance

Software Development image vb.net
Member Avatar for prvnkmr449
0
373
Member Avatar for NicAx64

Hi, I came up with a difficulty that adding the libmapi32.a to the codelite IDE linker options. I go menu->settings->build settings->select gnu-g++ in the left tree->switch-> and change the -l to the -lmapi32, but the problem is the IDE still does not invoke the `-lmapi32`. I reboot the PC restart …

Software Development c++ ide
Member Avatar for mitrmkar
0
145
Member Avatar for pythonstudent

Hey everyone, I am just starting to learn iteration in Python. I am stuck on an assignment that my teacher gave me. I am supposed to make a code to display this: 1 -2 3 -4 5 -6 7 -8 So far my code is this: counter=8 number=9 while counter>0: …

Software Development python
Member Avatar for cghtkh
0
106
Member Avatar for harikrishna439

HI everybody, currently I'm using ubuntu linux.If I write program in c using c language.I'm getting a warning message while compiling.So if there any to avoid this, please inform me.

Software Development c ubuntu
Member Avatar for Narue
0
103
Member Avatar for kumpul101

We have an exercise and it asks to create a program that will ask the user to initialize 2 character arrays, then compare the value of the variables(or the character array). My problem is with the initialization: I will create 2 char Arrays, then. How can I have the input …

Software Development java
Member Avatar for kumpul101
0
191
Member Avatar for bojomojo

I am creating a program that will have a database of schools.. Each months the user needs to add a certain data entry for all schools, like each month the user will need to input how each school scored in a monthly competition. The number of months is not fixed, …

Software Development gui sql
Member Avatar for Ramy Mahrous
0
127
Member Avatar for drspock

Hi, I'm a novice at writing C++ code, most of my experience is in C# and Java. I have tried a bunch of things but I can't seem to figure out the correct way to structure my statements. Rather than try and explain everything I'm doing wrong I will post …

Software Development c c# c++
Member Avatar for Fbody
0
2K
Member Avatar for Akilah712

Hi, I am to write a C++ date class. I have set up the class. I am able to add and substract to the number of years. The requirements are that I have to do the same for the number of days and the number of months as well. I …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
2K
Member Avatar for Premsathishbe

hi, Currently i vame across a term "[B]POJO[/B]". I need to know somrthing about that, plz help me to know what is the purpose of using "POJO" in java?

Software Development java
Member Avatar for NormR1
0
84
Member Avatar for majeissh

Hi. Could you please guide me in performing operator overloading of Unary operator? Just explain the method with an example. Please add the explanation.

Software Development c++
Member Avatar for Fbody
0
225
Member Avatar for nix_xin

[CODE]import java.util.*; public class sSfive { public static void main ( String[] args ) { Scanner nix = new Scanner ( System.in ); System.out.print ( "Enter interest rate: " ); float inInt = nix.nextFloat; System.out.println ( "" ); System.out.print ( "Enter number of year: " ); int inYear = nix.nextInt; …

Software Development java
Member Avatar for NormR1
0
179
Member Avatar for Jiblix

Hey guys, I need some help again with this program I've been working on. Basically I'm trying to make it so that a user enters a year and then program prints if its a leap year or not. Here is what I have so far: [CODE]// LeapYear.java // Name public …

Software Development java
Member Avatar for Jiblix
0
232
Member Avatar for Romil797

[CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Mail; using System.IO; using System.Net.Mime; namespace Postcards { public partial class Form1 : Form { //String pathti; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { //String …

Software Development c# email image
Member Avatar for Ramy Mahrous
0
1K
Member Avatar for swathys

hi, If the condition = true How do i select all records stored in .txt (temporary text file) to be updated in sql table How do i do that. Please help Thank You

Software Development sql vb.net
Member Avatar for swathys
0
123
Member Avatar for guerrilla123

Hi, I am writing some code to get some data from google suggest api. I am a noob so have run into a problem as my code is retuning blank data. Here is my code [code=c#] public XmlDocument GetData(string phrase) { XmlDocument theXML = new XmlDocument(); try { HttpWebRequest request …

Software Development api c c# c++ google-api xml
Member Avatar for nick.crane
0
168
Member Avatar for DeadSoul

I have made a program in c# where the user will input some data and that program should prompt the user to specify the date to view all the appointments of that day.i have made the code but still the problem lies is i can only find that the date …

Software Development
Member Avatar for hanvyj
0
292
Member Avatar for Simran Kaur

Hi friends, I am migrating VB6 project to VB.Net. I am stuck with these warnings for which I am unable to find solutions. I would be grateful if I get solutions to atleast some of the below warnings. Warnings: ------------- Need VB.Net equivalent for the below code as they are …

Software Development vb.net visual-basic
Member Avatar for Simran Kaur
0
2K
Member Avatar for W1ND0W5

Hello Daniweb, it's me (again). I am making a web browser app and would like to have a loading bar. I'm using the default ProgressBar control but I don't know how to program it! Help! Thanks for your help, -Toby -------------------------------------------------------------------------------------- If you put in your two pence worth, then …

Software Development vb.net web-browser
Member Avatar for brijeshsonagara
0
219
Member Avatar for Nicko_FaTe_

I have written a program designed to show grades in a table form, however my first input isn't working ie, if a enter for the first input 55.5 9, the output does not match this, i really have no idea why, any assistance would be greatly appreciated [CODE]#include <iostream> #include …

Software Development c c# c++
Member Avatar for Nicko_FaTe_
0
161
Member Avatar for Kingcoder210

I have used following code to show records there in a datagridview but it doesnt work. Even it shows nothing. Please check it & tell me what did I make mistake. Please add example with your answer because I am just a beginner. [Code] Imports System.Data.SqlClient Public Class Form34 Private …

Software Development vb.net
Member Avatar for samuel_1991
0
148
Member Avatar for _neo_

How can I get results from exec()? Any suggestions appreciated!!! [CODE] #!/usr/bin/python import socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) host = socket.gethostname() port = 1234 sock.bind((host,port)) while True: cmd, addr = sock.recvfrom(1024) if len(cmd) > 0: print("Received ", cmd, " command from ", addr) exec(cmd) # here how I can get …

Software Development python socket-programming
Member Avatar for _neo_
0
5K
Member Avatar for _neo_

How can I get error message? [CODE] try: ...# some operations except: sock.sendto(err_msg,0,addr) # send client err_msg from exception [/CODE]

Software Development python
Member Avatar for _neo_
0
272
Member Avatar for LevyDee

So what is the deal with int and INT, or float and FLOAT, or unsigned int and UINT. Whats the reason for this, and is there any difference in using one or the other? Thanks

Software Development c++
Member Avatar for mrnutty
0
89
Member Avatar for MarounMaroun

Hello folks, I have this header file: [code=c]class Agent { private: struct AgentStruct { std::string agentName; double pID; double mID; AgentStruct *nextAgent; } *AgentP; public: Agent(std::string); void SetNextAgent(AgentStruct*); Agent* GetNextAgent(); void SendMessage(); void ReceiveMessage(); };[/code] and I have the implementation here: [code=c]/* * The constructor we are required to implement. …

Software Development c++
Member Avatar for mike_2000_17
0
181
Member Avatar for eduard77

Hello I passed to functions and I have the next exercise. you are expected to write a program that computes the sum of all the integers in a range specified by the user. In addition to the main function, there should be a function that accepts two parameters that specify …

Software Development c++
Member Avatar for eduard77
0
85
Member Avatar for blknmld69

Can someone work with me on this program. I will put the instructions first, then my code, then the errors [B]INSTRUCTIONS: [/B] Create a program to enter grades and calculate averages and letter grades. 1. Need a class which will contain: a. Student Name b. Student Grades (an array of …

Software Development gui java java-swing user-interface
Member Avatar for Akill10
0
1K
Member Avatar for NV43

I'm trying to write a code for class that basically takes a 4 digit input, scrambles the the places of each number so that the first digit is in the third digits place, and add 7 to each number. This is supposed to be simple encryption. I know my functions …

Software Development c++ encryption
Member Avatar for NV43
0
108
Member Avatar for aviavyne

Hello, I recently started a c++ class, and one of the assignments is that we need to create a c++ program which converts Fahrenheit to Celsius. I have succeeded into doing just that, but I need to validate user input's values, meaning that the program must reject any entries that …

Software Development c++
Member Avatar for Akill10
0
152
Member Avatar for rcanter

I am getting an error when trying to build. Error is that ReneApp.Item does not contain a definition for Item and no extension method 'Item' accepting a first argument could be found. Any assistance would be greatly appreciated. I am new to C3 and this is my first try at …

Software Development
Member Avatar for rcanter
0
2K

The End.