132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for iamthesgt

This may be a simple fix, but I have a class for a program that contains some member functions that manipulate a vector. The vector is a private member variable, and is filled from an array using a constructor. When I try to access the member functions to manipulate the …

Software Development c++ oop
Member Avatar for iamthesgt
0
176
Member Avatar for ERadu

Hello! I am having some trouble with reading data for a list. If at the end of the file there is a new line character, this function reads the last set of data again, and then exits the loop. The addElem function works fine, I tested it separately. As there …

Software Development c++
Member Avatar for arkoenig
0
292
Member Avatar for airesh

help guys, i want to check the Open radio button if the data in the database is "Open" otherwise, the Close radio button is checked. i badly need you help..\\thanks

Software Development vb.net
Member Avatar for SARUBA
0
243
Member Avatar for begineer

hi guys. i want a help on making directories in c++.i have used the code to declare and intilliaze the path name and folder name..but the probelem is that i want it to to ask from the user for the drive and folder name..i tried but i didnt get the …

Software Development c++
Member Avatar for Ancient Dragon
0
213
Member Avatar for JannuBl22t

Hey! I have a question. I have this code: [CODE] int size = Convert.ToInt32(numericUpDown1.Value) + 1; var item_c = listView1.Items.Count; int id = 0; while (true) { if (id == item_c) { break; } for(int i = 0; i < size; i++) { if (id == item_c) { break; } …

Software Development
Member Avatar for JannuBl22t
0
133
Member Avatar for hoven

[CODE]import java.util.*; import java.text.*; public class Interest { static DecimalFormat fmt=new DecimalFormat("0.00"); //2 decimal place. static Scanner input=new Scanner(System.in).useDelimiter("\r\n"); static double[] principle = new double [10]; static double[] rate = new double [10]; static double[] interest = new double [10]; static double[] days = new double [10]; static int i; …

Software Development java
Member Avatar for hoven
0
141
Member Avatar for jaapo2k

I am new to vb.net. i need help in formating a string example: dim balance as string="balance:450005.809999" i will like to leave only two characters after the full stop. the integer will be changing but the string will always contain the 'balance' word and a full stop. will like the …

Software Development vb.net
Member Avatar for jaapo2k
0
89
Member Avatar for peggie1990

Hi all, currently I am doing an online store project using an example from one of your tutorials. In the grid view is populated with data and at the below of the grid view, there is a row of empty fields populated below. After user have enter all the necessary …

Software Development
Member Avatar for Mitja Bonca
0
139
Member Avatar for Dheerajpro

I m making registration form for teachers in which teach ID is one coloum name i want message box error if id number already exist in side the table means uniqe ID e.g if id no 1 is already exist then 1 should not be added when next time user …

Software Development mssql open-source vb.net
Member Avatar for Pgmer
0
158
Member Avatar for paulablanca

Hello! Can someone tell me how to create an entrance examination. I have already have a quiz creator. The only problem I have is how to display the created questions one by one just like a computerized entrance exam from a single table. Thank you very much! God Bless. :)

Software Development vb.net
Member Avatar for Pgmer
0
292
Member Avatar for emreozpalamutcu

I have made a program using C++ Windows Form Applications and I don't want my program to run more than once. What is the code for this?

Software Development c++
Member Avatar for Dingbats
0
111
Member Avatar for MacUsers

Hi there, I was wondering if anyone can give some advise/tips on this. My goal is to figure out the broadcast address. The way I think I should do is: [LIST] [*]get/detect the IP address and the subnet mask or CIDR [*]convert the mask to binary form [*]count the number …

Software Development python
Member Avatar for MacUsers
0
1K
Member Avatar for pacheco

Hi all, Let's say i have a tab control with a number of things like Textboxes, Buttons, etc. but I would like to have 9 more tabs which has the very same thing and functions and the only difference is the data being input. How do i go about doing …

Software Development
Member Avatar for pacheco
0
265
Member Avatar for smokin745

Hi guys, I am doing a project wherein i have to make an OpenGL animation and its a Sainsbury advertisement and it kinda sucks till now. Now i really need to add images, viewports and be more creative. Following is the code till now, (yeah laugh at it...it sucks more …

Software Development c++ opengl
Member Avatar for smokin745
0
193
Member Avatar for virusisfound

I have two problems 1. I have develop and Installed a project on my computer. that was work on my PC so many days. but now prject not work properly. It give me error message that [B]SQl connection not avaliable.[/B] Is their is any way to overcome this problem. Can …

Software Development dataset open-source
Member Avatar for virusisfound
0
243
Member Avatar for Denni_Mwebia

Hi guys! I am a newbie in VB.NET and am trying to create a cipher. In my program, before you can decrypt a string, you are prompted to enter a key. After you enter the correct c key,the string is decrypted. The problem is that the plaintext appears at the …

Software Development encryption vb.net
Member Avatar for lolafuertes
0
172
Member Avatar for makamanlol

Help guys, I am trying to make a paint program similar to Paint.net. the problem im having is like i paint on the picturebox but when i click the minimize button and maximize it, the lines i drew disappear. here is my code: [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using …

Software Development
Member Avatar for ddanbe
0
458
Member Avatar for dimasalang

Hi...Is it possible to get a list of running application in a remote pc through wireless or wired network?? i tried this code but i get an error [CODE]Dim ps As System.Diagnostics.Process For Each ps In System.Diagnostics.Process.GetProcesses(remote_pc_name) ListBox1.Items.Add(ps.ToString) Next[/CODE] error is "Can't connect to remote machine", i tried to access …

Software Development vb.net
Member Avatar for dimasalang
0
148
Member Avatar for chetanbasuray

Hello I've prepared a code which sends mail. I've a problem in trying to catch the exceptions that the code throws. 1. I need to check if the internet connection is open 2. I need to check if the password and E-mail Id entered by the user are correct In …

Software Development
Member Avatar for Momerath
0
122
Member Avatar for pacheco

Hi guys, I have 2 boxes (UsernameComboBox and PasswordTextBox) and 1 button (UpdateButton) and i would like it to update based on the info inserted above. Can someone shed some light on what's wrong with my codes below? [CODE] private void UpdateButton_Click(object sender, EventArgs e) { PC001 f1 = new …

Software Development
Member Avatar for Mitja Bonca
0
107
Member Avatar for chamnab

Hi anybody do you know how to limit string that we input in the program ? LIKE THIS: Input Name: <-we can input only 5 characters

Software Development c++
Member Avatar for jonsca
0
96
Member Avatar for Vineeth K

i got a big project really big one and they need this new solution only because of peach tree, tally are not enough for doing their work. My program should be capable of bulk, multiple data transfer and usage at same time.[B]The real problem is their main program is created …

Software Development vb.net
Member Avatar for Vineeth K
0
171
Member Avatar for Jaseem Ahmed

i have one form, with 2 picture boxes, one Vscroll, and so many textboxes in pictureboxes.. when i m clicking the VScroll, it works... now i want that when i press enter button in textbox the scroll should go down, as it goes on click.please help me.

Software Development visual-basic
Member Avatar for Vineeth K
0
227
Member Avatar for jaepi

Hello, there. I'm having trouble with the initialization of variable of type sem_t. I used this. [code=c++] sem_t example; example = NULL; if(example == NULL){ /* code here */ } [/code] I'm getting the error, "no match for operator ==". What value do you think I should place in the …

Software Development c++
Member Avatar for sfault
0
634
Member Avatar for glenn_boy13

hello there! I am new here on Daniweb. I couldn't find an article anywhere on google about moving text in C++. I have an idea but my problem is, I can't find a way to make my other output still. What I mean is: I don't know how to prevent …

Software Development c++
Member Avatar for Mouche
0
2K
Member Avatar for Asif_NSU

Hi there C /C++ experts... I have a confusion regarding the function free(void *) in C and [I]delete[/I] in C++. Suppose there is a pointer named p. In C++, we dynamically allocate memory for p to point at like this [CODE] p = new int [10]. [/CODE],then when we use …

Software Development c++
Member Avatar for ahtaniv
0
792
Member Avatar for pmark019

How can I use SQL Statements in VB 6 with DataEnvironment. I have a DataEnvironment called Table(DataEnvironment2.Dsr) and a report named rptStudMastOne(rptStudMastOne.Dsr). I am planning to use the SQL Statement " SELECT * FROM Student WHERE StdSSN = txtStdSSN " and it will show in the report the record that …

Software Development sql visual-basic
Member Avatar for abu taher
0
106
Member Avatar for bettybarnes

hi i'm having a problem regarding sql deleteCommand.. can someone please help me solve this problem coz it takes a lot of time for me to figure it out.. here's my code [CODE] Private Sub btnDeleteBC_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDeleteBC.Click If MessageBox.Show("Do you really want …

Software Development sql vb.net
Member Avatar for bettybarnes
0
5K
Member Avatar for wondernaet

I just posted this broken. Here is the code that works. I was told there is 2 ways this can be written more efficient. I can't see it, can you? #include <iostream> #include <string> using namespace std; void daysOfChristmas (int days, char switcher, string b[12]){(days > 0 && switcher == …

Software Development c++
Member Avatar for VernonDozier
0
115
Member Avatar for iamthesgt

When writing a program that uses separate compilation (I have a header file, a .cpp file that declares all the member functions of the class in thee .h file, and an application file). I used a constructor to pass the contents of a dynamic array to a vector, but it …

Software Development c++ oop
Member Avatar for iamthesgt
0
287
Member Avatar for Heartis24K

I am taking my first class (online) in Visual Basic and we are using VB 2010. The assignment is to create a football calculator(see attached). I have attached the instructions that the teacher gave us and I think that I created the user interface okay but I don't understand about …

Software Development user-interface vb.net visual-basic
Member Avatar for codeorder
0
119
Member Avatar for triumphost

Note: I program in C++ Not C#. In visual studio 2010, Where u press release or debug, next to it has a box with win32.. How can I change it to x86.. I tried pressing New and edit and stuff and configuration manager but it doesnt have the x86 choice... …

Software Development c++ visual-studio xml
Member Avatar for Ancient Dragon
0
384
Member Avatar for JudeV

Write a pseudocode... A program is to be developed that will calculate the total length of music to be stored on a CD. Assume a CD may store 76 minutes of music. The user will enter the length of musical tracks in minutes and seconds (separately) in a loop. A …

Software Development
Member Avatar for JudeV
0
88
Member Avatar for HeartBalloon

Hi, I'd like to have a for condition with two interrupting conditions: [CODE] for(temp=hl;temp!=NULL,bOver1==true; temp=temp->next){ bOver=false; int I=0; while(bOver==false){ if(cu.Chars('S')[I]>temp->custs.Chars('S')[I]){ bOver=true; prev=temp; }else if(cu.Chars('S')[I]<temp->custs.Chars('S')[I]){ //FOUND THE ONE GREATER: PREV STAYS THE ONE BEFORE AND LOOP MUST END HERE! bOver=true; bOver1=true; } i++; } } [/CODE] This is a part of …

Software Development c++
Member Avatar for HeartBalloon
0
168
Member Avatar for ndowens

I am writing a application for Arch Linux, actually I already wrote it, but I wanted to do it a little differently then the other. The origional one uses the goto statement. Here is the code: [CODE]#include <iostream> #include <string> using namespace std; int main() { cout << "\tAurDown v2.1\n" …

Software Development c++
Member Avatar for jonsca
0
181
Member Avatar for declna0872

Hi all, im am writing a program to take in and store a student's grade as an int. Can anyone tell me please how do i get the average score of the grade? This is what i have so far... Regards. [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; …

Software Development c++ mathematics
Member Avatar for Saith
0
2K
Member Avatar for Rimojenkins

Hello again... My problem is that my if statement isn't working as I believe it should. Here is a snippet of the for loop. [CODE] for(int m=0; m<num; m++) { if(begllts <= intarray[m] && intarray[m] <= endllts); { cout << setprecision(4) << showpoint << dubarray[m] << "C" << stringarray[m]<< endl; …

Software Development c++
Member Avatar for Saith
0
122
Member Avatar for coco24

Hi, I am having problems with this piece of code and maybe I am just not understanding how to do it, but can you please help me out or give me some tips. This is the description: You will implement your BoundedBag as a partially filled array. The array contents …

Software Development java
Member Avatar for VernonDozier
0
2K
Member Avatar for HeartBalloon

Class homework: cannot use strings. How do I declare a function that passes me a cstring? char[5] for example. I need it to explicit a private member of a class. [CODE] class Customers{ private: caName[kiArraySize]; //kiArraySize is 30 public: //this is what I need help for char[] passName(Customers); }; char[] …

Software Development c++
Member Avatar for gerard4143
0
93
Member Avatar for prgrmmngaccnt

I have a txfile.txt file which has the following data: 3 2716 16253 7721 35149 972 2614 I am trying to read the first integer into a variable using this code: [code=c] #include <stdio.h> #include <stdlib.h> int main() { int num_cust[1]; int result; FILE *fp; if( (fp = fopen("tsfile.txt", "r")) …

Software Development c file-system
Member Avatar for prgrmmngaccnt
0
162
Member Avatar for SVW

I would like to complete a project that requires a name as a console input, but returns an output of that name in reverse. It should only use for-loops and strings/substrings. I think it needs to use an array to get it done. I am right? Below is my attempt …

Software Development java
Member Avatar for SVW
0
133
Member Avatar for ckocina

im making a class called BigInt it will store integers in an integer array, 1 digit per array location(just ask if you need me to clearfy any more).....i have to make an addBigInt operation, subtract,setBigInt that will store an integer value into an existing BigInt, e.g. x.setBigInt(-397) replaces the value …

Software Development c++
Member Avatar for ckocina
0
99
Member Avatar for Rimojenkins

Hey again! I've asked a question here once and have been lurking ever since. I was working on a new program and have come across problem. I don't really know what's wrong so I assume I overloaded something. The problem is in this snip of code [CODE]for(int m=0; m<num+1; m++) …

Software Development c++
Member Avatar for Rimojenkins
0
11K
Member Avatar for valter

I am totally confused about forms in c#. If someone can explain the following simply please. I have a main form - called Front. under the section partial class Front : Form I have a Form newF= new Form(); More than once in the program I call the newF form …

Software Development
Member Avatar for valter
0
1K
Member Avatar for kukuruku

Hi ,I am learning Java ,and I have problem ,when I call this method form main and chose 1 it is printing enter name and enter priority without letting me enter the data how can I fixed that Thanks [CODE] public void makeChoise(){ switch(display()) { case 1:System.out.print("Enter First and Last …

Software Development java
Member Avatar for Akill10
0
284
Member Avatar for melisko

Hey guys iam new in c and iam learning on my own, I have a task in book which is well complicated(at least for me) .(it want me to create the file , insert the text then copy text without vowels into a new file). I know i have long …

Software Development c display
Member Avatar for melisko
0
140
Member Avatar for curbster

Hi all, I'm almost done with a problem for a java class I'm taking. The chapter I'm studying is on inheritance and I think I understand it ok. The parent class will compile fine, but when the child class tries to compile I get an error saying it cannot find …

Software Development java oop
Member Avatar for curbster
0
466
Member Avatar for D3BuG

Hey guys, So me and my friend are starting up a simple Text-Based-Post-Apocalyptic-Role-Playing-Game. Both of us have had 2 or so months of experience, we are no experts. So, I will appreciate any tips. I have been lurking these forums for a little while now, and decieded this is the …

Software Development python
Member Avatar for D3BuG
0
166
Member Avatar for CrankyMero

Hello Everyone, I have kind of a problem in a database well its suppose to save a date but like a string, well more like a char type, and i need it that way to do reports So there to tables Ventas and VentasDD so they have the same information …

Software Development vb.net
Member Avatar for CrankyMero
0
120
Member Avatar for lochnessmonster

im quite confused on how typedef int (__cdecl *MYPROC)(LPWSTR); works exactly? how do you typedef a function? any explanation is greatly appreciated! thx :D [CODE]// A simple program that uses LoadLibrary and // GetProcAddress to access myPuts from Myputs.dll. #include <windows.h> #include <stdio.h> typedef int (__cdecl *MYPROC)(LPWSTR); VOID main(VOID) { …

Software Development c++
Member Avatar for mike_2000_17
0
561

The End.