132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bernardz26

Good Day!. I have a big problem. I have here a combobox1 in form1, combobox1 has a value of Mr.A and Mr.B. and the form2 has a evaluation question with 5 radiobuttons. I want that if i choose from that combobox1. The form2 will know who i choose, and when …

Software Development vb.net
Member Avatar for chewmp
0
114
Member Avatar for khaos64

I am very new to VB.NET, I want to create a Forms Application to load a text file that has lets say 50 lines, some of the lines are identical and those are grouped together and some same format but different make up. Have it loads it into a text …

Software Development vb.net
Member Avatar for khaos64
0
715
Member Avatar for kuramahiei

[CODE] case 'f': case 'F': do { cout << "Enter Finish Time (Max Start + 24h, 0-23:59): "; cin >> FinishTime; if (FinishTime > 2359) { do { cout << "Error! Invalid Finish Time Input." << endl << "Enter Finish Time (Max Start + 24h, 0-23:59): "; cin >> FinishTime; …

Software Development c++
Member Avatar for WaltP
0
185
Member Avatar for mjacqu4

Hey, I am writing a program that reads in text files that were generated from another program. Some of the files are able to open with no problem but others will not open unless I rename them. For example: 4_UncommonHints_10-07-2008_Ideas.txt opens fine but 5_CommonHints_10-30-2008_Ideas.txt will NOT open unless I rename …

Software Development c++
Member Avatar for mjacqu4
0
136
Member Avatar for Suzie999

From what I have read, command line arguments are only char* separated by space. However feel compelled to ask if anyone knows of a way to get a pointer across to an executable in any fashion? The goal is to pass int *pointers for reasons of inter process communication across …

Software Development c++
Member Avatar for Suzie999
0
903
Member Avatar for akaicewolf

Ok so I am working on a hash map but I ran into trouble with reading in the input. I need to be able to read in the input from a file if specified if not from the console. Thats not a problem but when it comes to reading it …

Software Development c
Member Avatar for VernonDozier
0
558
Member Avatar for xushi

Hi, I'm supposed to write a code of finding the shortest path of VRP... Assume that shortest path = shortest time. "Given a set of locations and a set of homogenous vehicles, find the minimum time of tour that visits each city exactly once by any of the given vehicle. …

Software Development c
Member Avatar for xushi
0
156
Member Avatar for hughesadam_87

Hey guys, In prepping for a job interview, I'm trying to eliminate some bad habits and this trivial problem has me realizing how hard that is :'(. The problem: Print a 12 x 12 multiplication table. This is easy.... [CODE]outstring='' for i in range(1,13): for j in range(1,13): outstring +='\t'+str(i*j) …

Software Development python
Member Avatar for hughesadam_87
0
121
Member Avatar for linkingeek

Could you please tell pictorially difference bw these 2 codes(o/p is same) and suggest any source where i can once in for all resolve doubts in pointer to pointer problems except "K&R in ANSI C" [CODE]#include <stdio.h> #include <string.h> void pointer(char**); void main() { char *p[]={"name","fame","claim"}; pointer(p); } void pointer(char …

Software Development c
Member Avatar for versan
0
166
Member Avatar for dariaveltman

hello good people I am doing indexsort of name and surename. i have some error with index in my sort2 fuction. I can not figure outwhat is wrong. can somebody give me a hint about what to do to fix it. I was also wondering if I can add a …

Software Development c++
Member Avatar for Labdabeta
0
131
Member Avatar for jakeevans

Hello Everyone, I hope this is the right place i'm posting this, basically I need some help with Visual Basic 2008. We've been set a task to build a really basic web browser with one advanced function. I've done the web browser with the basic functionality, but this advanced feature …

Software Development vb.net visual-basic web-browser
Member Avatar for jakeevans
0
240
Member Avatar for Labdabeta

I am trying to find a bug in my new and (theoretically) improved syntax highlighter program. I have made 3 versions now and have been able to debug them all with ease. Unfortunately my debugger does not do well with std containers as it shows ALL the information they contain …

Software Development c++ html-amp
Member Avatar for Labdabeta
0
351
Member Avatar for floatingshed

I have a list: [CODE][a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p][/CODE] I would like 4 lists: [CODE][a, e, i, m] [b, f, j, n] [c, g, k, o] [d, h, l, p][/CODE] How would I go about this? Thanks.

Software Development python
Member Avatar for hughesadam_87
0
158
Member Avatar for ThomsonGB

Ancient Dragon was helpful in a way to parse argv(). It brought to mind a method that suggested to me a way to look at the prefix after finding the expected string. For example (as I interpret it) if you are looking for a prefixed command it could be a …

Software Development c++
Member Avatar for ThomsonGB
0
139
Member Avatar for ahp@aol.in

Hi folks, I need a solution for following scenario. 1. Suppose two processes running simulteneously. 2. Process (P1) has already locked a mutex (M1). 3. Process (P2) is trying to lock same mutex (M1) but as it is already locked by (P1), P2 is waiting for unlocking (M1). 4. Now …

Software Development c
Member Avatar for ahp@aol.in
0
188
Member Avatar for nizbit

I wrote a function that will search a string with a substring. When the substring is found, it is replaced with another substring. The problem I have with my code is that it wont replace the substring unless it is in the beginning of the string. Here's the code and …

Software Development c++
Member Avatar for WytCZ
0
1K
Member Avatar for cali_kid

i am trying to write a program that will prompt the user to enter test scores terminated by a negative number. and then find the min max and average of the scores inputted. i have gotten everything to work except the average. the assignment says i can only use variables …

Software Development c
Member Avatar for cali_kid
0
151
Member Avatar for yamatoC

Hi, I'm having some very hard time with my header files when working with linked lists. I'm not too sure what I need to define in them except for the prototype functions. The way to create strucs within the header files confuse me. This first file is the header for …

Software Development c
Member Avatar for yamatoC
0
639
Member Avatar for razamughal67

Hello everybody please tell me How to select costum index in a list in vb6 i have a listbox & a command botton & textbox example: we add some items in a listbox list1.additem = "google.com" list1.additem = "Gmail.com" list1.additem = "myspace.com" list1.additem = "youtube.com" list1.additem = "facebook.com" list1.additem = …

Software Development visual-basic
Member Avatar for razamughal67
0
1K
Member Avatar for wallet123

Me and my group members are planning to add something different to our program, we intend to put JTextField, but we have no idea on how to start it because some of the tutorials are so hard to understand. this is our program: it is a payroll system: [CODE] public …

Software Development java
Member Avatar for wallet123
0
1K
Member Avatar for hughesadam_87

I've followed a tutorial where a Person class was used to illustrate the difference between class and instance variables. Something like: [CODE] class Person(object): population=0 def __init__(self, name): self.name=name Person.population += 1 print 'current population', Person.population Sally=Person('sally') Joe=Person('joe') [/CODE] This example really illustrated the difference between class and instance variables …

Software Development oop python
Member Avatar for hughesadam_87
0
147
Member Avatar for raheel88

Hi all, How can I make the items in a standard values collection identical to the items contained in a previously defined (dynamic) array of strings? Here's a snippet; [CODE] Public Class ElementList : Inherits StringConverter Public Overloads Overrides Function GetStandardValuesSupported(ByVal context As ITypeDescriptorContext) As Boolean Return True End Function …

Software Development vb.net visual-studio
0
91
Member Avatar for FraidaL

I wrote this code for an assignment that asked to create a program that calculates and displays the average of any amount of real numbers. The program is supposed to ask the user how many numbers they want to enter and then use a loop to ask the user to …

Software Development c++ mathematics programming-construct
Member Avatar for FraidaL
0
3K
Member Avatar for dorelbaiu

My code is: [CODE]System.Data.OleDb Public Class Form1 Dim cn As OleDbConnection Dim cmd As OleDbCommand Dim dr As OleDbDataReader Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data …

Software Development open-source vb.net
Member Avatar for dorelbaiu
0
152
Member Avatar for SeniorAlexandro

Alright, I have a Webbrowser which has a page opened. I want it to select a specific Option from the Combobox. How can I do that in VB ? HTML Code: [CODE]<select name="Protected"> <option value="NC"></option> <option value="ON">ON (protected)</option> <option value="OFF">OFF (unprotected)</option> </select>[/CODE] VB Code: [CODE]For Each element As HtmlElement In …

Software Development visual-basic web-browser
Member Avatar for AndreRet
0
287
Member Avatar for Vasthor

what's the problem? E:\Tools\Programming\C++ Programming\CodeBlocks\Project\Knowledge_Based_Project\Exercise_Temporary_Compiler\Exercise_Temporary_3\main.cpp||In function 'int main()':| E:\Tools\Programming\C++ Programming\CodeBlocks\Project\Knowledge_Based_Project\Exercise_Temporary_Compiler\Exercise_Temporary_3\main.cpp|36|error: invalid use of member (did you forget the '&' ?)| ||=== Build finished: 1 errors, 0 warnings ===| [CODE] #include <algorithm> #include <iomanip> #include <iostream> #include <string> #include <vector> using namespace std; int main() { // informed user cout << …

Software Development algorithm c++
Member Avatar for histrungalot
0
1K
Member Avatar for magnus-110

I'm using this encrypting function psoted by a member: [CODE]Public Function SimpleCrypt(ByVal Text As String) Dim strTempChar As String = "" Dim i As Integer For i = 1 To Text.Length If Asc(Mid$(Text, i, 1)) < 128 Then strTempChar = _ CType(Asc(Mid$(Text, i, 1)) + 128, String) ElseIf Asc(Mid$(Text, i, …

Software Development encryption oracle vb.net
Member Avatar for sprogrammer
0
101
Member Avatar for khizer03

Hello everybody I Have a doubt i have created an application in VS2010 for windows application i have used form1 in form1 i used a button, onclicking on to the button it will load a second form ie.. form2 in which image is added the overall situation is when i …

Software Development display
Member Avatar for codeorder
0
127
Member Avatar for iraj.jelo

hi friends . i have a sqlite program. i need get stuff data from QLineEdit and add to model & tableView . but i dont know what should I do :( plz help me

Software Development python sqlite
Member Avatar for TrustyTony
0
182
Member Avatar for Adnan671

Ok so, this IS a homework assignment. I'm not asking for the answer. I need help on how to get started. Any help would be greatly appreciated. The assignment is to revise some code from a previous assignment, but I'm having trouble with figuring it out. The instructions are: You …

Software Development c++ programming-construct
Member Avatar for Adnan671
0
134
Member Avatar for hust921

I am trying to make an encrypter, but as you can see, it's not working. str[] have an undeclared array size, i know that theres an option to make it with a pointer array, but i really want to make it a fixed size, also, so i can skip the …

Software Development c
Member Avatar for hust921
0
300
Member Avatar for TIM_M_91

Hi guys can anyone tell me if it is possible to sort integer values for smallest to biggest which has been stored in my database as Strings. What I want to do is list my items in an textarea that sorts the numbers from smallest to biggest. Also note if …

Software Development java
Member Avatar for stultuske
0
115
Member Avatar for smoothe19

Here is the instructions given: Use a loop with indirect or indexed addressing to reverse the elements of an integer array in place. Do not copy the elements to any other array. Use the SIZEOF, TYPE, and LENGTHOF operators to make the program as flexible as possible if the array …

Software Development assembly
Member Avatar for NotNull
0
4K
Member Avatar for dariaveltman

dear all!!! here is my code. when I run it "enter name and enter city "appears together. I dont understand why. please help me figure it out. thank you. #include <iostream> #include <string> using namespace std; void prompt(string name[7], char city[7]); void init(int index[7]); void sort(string name[7], int index[7]); void …

Software Development c++
Member Avatar for tungnk1993
0
138
Member Avatar for 4hotkiss

[I]is any book [U]which explains what each code means and why it does[/U] that in c++, i am starting in progamming field from beginning. [/I]

Software Development c++
Member Avatar for tungnk1993
0
96
Member Avatar for shywolf91

Here is my code: [CODE] #include <iostream> #include <string> #include <cstring> using namespace std; //() char openedP='('; //open ( char closedP=')'; //close ) //end () //dash char dash='-'; //end dash class PhoneNumber { int countryCode; int areaCode; int number; char type; int year; public: PhoneNumber() { countryCode = 43; areaCode …

Software Development c++ oop
Member Avatar for Topi Ojala
0
179
Member Avatar for Gnawk

Hi i need to make a method that does the example below if the array contains these number -12 3 -12 4 1 1 -12 1 -1 1 2 3 4 2 3 -12 The output should be: N Count 4 2 3 3 2 2 1 4 -1 1 …

Software Development display java
Member Avatar for NormR1
0
118
Member Avatar for tiredoy

I just wrote a simple code.Since it have no warnings or error attentions from the VC compiler,it TOTALLY doesn't work! What I wonder is whether the problem is due to the sequence of complying as well as how to figure it out. ------------------ Here is the code [CODE]#include<iostream> using namespace …

Software Development c++
Member Avatar for tiredoy
0
171
Member Avatar for PIXXAR

IM HAVING PROBLEM WITH THIS PROGRAM, GOING BACK TO THE MAIN PAGE AND SELECTED PAGE, IF THE USER ANSWER NO, THE PROGRAM WILL GO BACK TO MAIN MENU IF THE USER ANSWER YES, THE PROGRAM WILL COMPUTE THE SAME PROBLEM. help PLS... THE PROGRAM BELOW WONT GO BACK TO COMPUTE …

Software Development c c++
Member Avatar for PIXXAR
0
1K
Member Avatar for shankhs

can anybody suggest me whats wrong with the code?? [code] #include<iostream> #include<string> using namespace std; void rev_str(string str,int n) { while(str[n]!='\0') rev_str(str,++n); cout<<str[n-1]; } int main() { string str="shankhs"; rev_str(str,0); return 0; } [/code] thanks

Software Development c++
Member Avatar for venugopal.somu
0
504
Member Avatar for jayadan

Whats the best and easy way to learn JAVA and anyone can suggest a very good and simple website to learn and workout JAVA codes.

Software Development java
Member Avatar for dymatic
0
159
Member Avatar for nezhad

Hello; I have 2 questions: 1- I know you can allocate memory to an array dinamically in C and C++. But, can this be done if the array is part of a structure? 2- Can the size of a dynamic array automatically grow up to a maximum or do you …

Software Development c
Member Avatar for nataraja833
0
573
Member Avatar for shivya jain

Hello experts, I never used [B]"Dataset"[/B] in my project. But I know this is used for the set of tables. Can I use this to authenticate from more than one table? Tables in my Database are: Login, Student, Student Details, Fee, Teacher, Teacher Details. I want to use dataset in …

Software Development dataset vb.net
Member Avatar for Pgmer
0
97
Member Avatar for BlackRocker

write a Java program that performs the following task on an input text file. 1. Determine the number of characters 2. Count the number new-lines 3. Identify the number of empty lines. I have been working on this problem that I saw on the book and the part where I'm …

Software Development file-system java
Member Avatar for stultuske
0
2K
Member Avatar for ShaRp codeR

Hello, I am stuck on this issue since like a week now and i have been trying to find out how to do this. I am trying to copy the ArrayList elements into another class. I have 4 classes: registration class (MAIN CLASS) address class (DONE) student class (DONE (kinda)) …

Software Development data-science java
Member Avatar for stultuske
0
162
Member Avatar for sfurlow72

Alright, this isn't actually homework. I'm going back to school so I figured I would brush up on some programming before I go. I'll be taking the second course in a three course C++ programming sequence (starts with classes, recursion, etc.), so nothing too advanced yet. I wrote this program …

Software Development c++ data-science engineering ios
Member Avatar for ravenous
0
315
Member Avatar for sp85202

I need this program to take user entered information, check and see if the object exists and add it if it doesn't. I keep getting a nullpointer exception when trying to add an owner to an Arraylist. I've included the relevant part of the driver class, the OwnerParser class that …

Software Development java
Member Avatar for stultuske
0
237
Member Avatar for while(!success)

Hey guys, I need help recognizing multiple digit numbers that are read so that I may push said number into a stack for future evaluation For example: 22 3 + should evaluate to 25 When I input 22 3 +, my output is evaluated to 5 Any help/criticism is welcome …

Software Development c++
Member Avatar for WaltP
0
2K
Member Avatar for javanoob7697

I'm trying to build a program that has a user guess 4 random pegs in order. it needs to use arrays and methods and i'm struggling mightly... here are some parameters The structures must be declared as variables in the main() method. You must write your program so that the …

Software Development java
Member Avatar for javanoob7697
0
157
Member Avatar for Envious1

Hello, I am new to java and I was wondering if you guys could help me solve this problem: Your history instructor gives three tests worth 50 points each. you can drop one of the first two grades. your final grade is the sum of the best of the first …

Software Development java
Member Avatar for zeroliken
0
132

The End.