132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Learner010

hello everybody, i started learning vb.net around 3-4 days ago. And now i playing with operators . There i have one doubt : is it possible to treat string value like a operator ? for example : let suppose , there are 2 variable named `a ,b` of integer type …

Software Development vb.net
Member Avatar for Learner010
0
118
Member Avatar for chubbyy.putto

When I try to add the two array together it show me 0? ` #include <iostream> using namespace std; int add_arrays(int a[], int b[], int n); int main () { int numbers[5]={1,2,3,4,5}; int numb [5] = {6,7,8,9,10}; int total= add_arrays(numbers, numb, 5); cout << total << endl; } int add_arrays(int …

Software Development c++
Member Avatar for Learner010
0
107
Member Avatar for james.lu.75491856

class Timerange{ public: Start_time start; End_time end; Timerange(string initstring){ //initstring xx:xx X, x:x //X->weekday string current=""; unsigned short mode=0; string timeA; string weekday; string timeB; for(unsigned short i = 0; i<initstring.length(); i++) { char c = initstring[i]; if (c==' '){ if (mode==0) timeA = current; else if (mode==1) weekday = …

Software Development c c# c++ programming-construct
Member Avatar for gerard4143
0
268
Member Avatar for jonathan710

#include <iostream> using namespace std; template<class T> class MyClass { private: T data; public: MyClass(T data) { this->data = data; } }; template<class T> bool operator< (const MyClass<T> & a, const MyClass<T> & b) { return (a.data < b.data); } int main() { MyClass<int> x(1); MyClass<int> y(2); if(x < y) …

Software Development c++
Member Avatar for richieking
0
423
Member Avatar for asif49

http://www.apache.org/licenses/LICENSE-2.0.html This licence is referred to along with several paragraph of comments in a Java API based project I'm using for research. I'm having difficulty understanding some of the law-speak in the license. Especially this part: > You must retain, in the Source form of any Derivative Works that You …

Software Development apache api java
Member Avatar for JamesCherrill
0
156
Member Avatar for extemer

guys i wanna known that can we do chip programming in java.

Software Development java
Member Avatar for NicAx64
0
165
Member Avatar for furalise

Hi all. I want to take a set number of characters from a stringstream at a time and display them to the console as per my code below. Because of when the first blank space is reached the process terminates due to teh eofbit flag. Is there any way around …

Software Development c++
Member Avatar for furalise
0
440
Member Avatar for Jade87

Hello, I've created a script that parses and downloads images from a website however now what I want to do is create a script that matches the files I've downloaded against common image file type signatures and then tells me how many of the files aren't those types. I'm still …

Software Development python
Member Avatar for Jade87
0
375
Member Avatar for Start4me

I have the folowing code, but there is a compiling error of: MathProblemRevised.java:25: error: cannot find symbol if (inputCharacter.equals("Y")) { ^ symbol: variable inputCharacter location: class MathProblemRevised 1 error With the code: import static java.lang.System.*; import java.util.Scanner; class MathProblemRevised { public static void main(String args[]) { Scanner keybardInput = new …

Software Development java
Member Avatar for Start4me
0
289
Member Avatar for tukky

Hi guys, Im currently working on a java project but ive come across a small minor problem. I have 4 main classes that im working with. TextReader, WordCount, WordCollecter and DisplayWords. The **TextReader** class reads an input file and a method called *readNextWord* will return the next word from the …

Software Development java
Member Avatar for tukky
0
592
Member Avatar for ashu.dasgupta

frequent utility of inline function

Software Development c++
0
154
Member Avatar for Warren_1

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> // free- A lot of extra marks //Avoid global variables. struct packet { //struct for the packets int source; int destination; int type; int port; char data[49];//starts at 0 }; int add(); //to add a packet void view(); // view a created …

Software Development c data-structure open-source
Member Avatar for deceptikon
0
384
Member Avatar for CodingCabbage

How would I be able to have a button that's command is to return it's text in the button to a variable

Software Development gui python tkinter
Member Avatar for vegaseat
0
996
Member Avatar for pjrey

i am very, very very new to all of this.. seem to have got what i wanted for the most part.. i am putting a little weather widget on our business website... and have everthing working fine except sunset, sunrise... i think because it has subcatagories.. how do i pull …

Software Development xml
Member Avatar for pjrey
0
316
Member Avatar for castajiz_2

int main(int argc, char** argv) { FILE *f; char string[100]; int counter=0; f=fopen("New Text Document.txt","r"); if (f==NULL) { printf("error"); } while(!feof(f)) { fscanf(f,"%c",&string); } fclose(f); for(int i=0;i<100;i++) { if (string[i]=='a') /*doesnt work, why?*/ { counter++; } } printf("\n the number of vowels a is : %d",counter); getch(); return 0; } …

Software Development c
Member Avatar for deceptikon
0
151
Member Avatar for Quân

I'm coding in visual studio. i have a problem in ConfigureSerialPort function. #include <windows.h> #include <stdio.h> #include <string.h> HANDLE hPort; BOOL WriteByte(BYTE bybyte) { DWORD iBytesWritten=0; DWORD iBytesToRead = 1; if(WriteFile(hPort,(LPCVOID) &bybyte,iBytesToRead,&iBytesWritten,NULL)==0) return FALSE; else return TRUE; } BOOL WriteString(const void *instring, int length) { int index; BYTE *inbyte = …

Software Development c++ data-structure visual-studio
Member Avatar for Ancient Dragon
0
523
Member Avatar for chubbyy.putto

here is what i have to do: take 2 double array of lenght 10 call a and b and return ture if they are equal and flase otherwise; and write a function that take a and b and return and array which store the sum of correspond elemets. can someone …

Software Development c++
Member Avatar for chubbyy.putto
0
210
Member Avatar for sushilsth

Private Sub btnsave_Click(sender As Object, e As EventArgs) Handles btnsave.Click Dim com As New OleDbCommand() ' Try Dim fs As New FileStream(str, FileMode.Open) Dim data() As Byte = New [Byte](fs.Length) {} fs.Read(data, 0, fs.Length) fs.Close() 'readed image Dim name As New OleDbParameter("namee", OleDbType.VarChar, 50) name.Value = TextBox7.Text Dim address As …

Software Development vb.net
Member Avatar for deceptikon
0
175
Member Avatar for harisybsy

how can i multiple barcode image in print preview and print it? here is the code of mine: Public Class Form1 Dim PrintDoc As Printing.PrintDocument = New Printing.PrintDocument() Dim pd_PrintDialog As New PrintDialog Private Sub TextBox1_TextChanged_1(sender As Object, e As EventArgs) Handles txtBarcode.TextChanged picBarcode.BackgroundImage = Code128(txtBarcode.Text, "A") End Sub Private …

Software Development image vb.net
Member Avatar for deceptikon
0
454
Member Avatar for Capi

I have been working on this program i am stuck on and need somw help i am placing the entry into from the main into a pointer array in the Stock class and then assigning the values to the Vehicle class. the thing i am having problems with is accessing …

Software Development c++
Member Avatar for gerard4143
0
154
Member Avatar for Pyler

would you just do @Override public boolean contains(T param){ return hashTable[function(param)]!=null; }

Software Development algorithm java
Member Avatar for JamesCherrill
0
220
Member Avatar for Sanjay_6

I am looking for a case study explaining cmmi? The case study could be of any level from 2-5 and for any process development, services and acquistion? For example a case study explaining PMC (project monitoring and control) in level 2 development? Maturity Level 2 - Development CM - Configuration …

Software Development
Member Avatar for sebastianedu
0
226
Member Avatar for Rosalyn_1

I want to filter the values in the listview using the date range selected in two datetime picker. Here is my code: Dim reportstring As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Fe\Desktop\SADsystem\SADsystem\stockroom.accdb;Jet OLEDB:Database Password=stockroom" Dim reportconn As New OleDbConnection Dim date1 As Date Dim date2 As Date date1 = Convert.ToDateTime(DateTimePicker1.Value) date2 = Convert.ToDateTime(DateTimePicker2.Value) …

Software Development listview open-source vb.net
Member Avatar for G_Waddell
0
845
Member Avatar for rahulkrishnanr

Hi, . Could you please provide me a code sample showing how to load a treelistview from database​ with hardcoded root nodes on treelistview. I have shared the link below of a sample preview of the tree I am in need of. Rootnodes are hardcoded and I want the child …

Software Development sql
Member Avatar for sebastianedu
0
109
Member Avatar for Derek_4

I know I am probably over thinking this but I cannot seem to figure this out. I am trying to check if the value is null and if not to continue. /** * */ public Item getItem(String theItem) { Iterator iter = myItems.iterator(); while(iter.hasNext()) { Item anItem = (Item) iter.next(); …

Software Development java programming-construct
Member Avatar for sebastianedu
0
298
Member Avatar for Gà_1

My program doesn't have compile-error but it sometime struck in 201 runtime-error. I don't know why, please someone help me. Here is my program: program TestNumber; uses crt; const fi='D:\program\text\ipTestNumber.txt'; fo='D:\program\text\opTestNumber.txt'; type proint=record len:word; //length of proint. val:array[1..256] of byte; //value of proint. sign:boolean; //is smaller than zero? end; dummy=string; …

Software Development pascal
Member Avatar for pritaeas
0
155
Member Avatar for nathan.pay.9

Hi everyone, I've been taking a Intro to Java class this year and been enjoying it, I recently had a assignment which was a simple dice game, however I was wondering if a few tweeks could be made. 1. Could we ask the user how many dice they want to …

Software Development java
Member Avatar for nathan.pay.9
0
473
Member Avatar for sarah.mathieson.7

I am trying to replace a bunch of substrings with another bunch of substrings. I've got that working great, but now my code is a mess. This is what I have : void parseChartData(string chartDataString){ if(!chartDataString.empty()){ chartData.clear(); //replaceAll("T44" , "4/4", chartDataString); string s = "*A"; string t = "[A]\n"; string::size_type …

Software Development c++
Member Avatar for sarah.mathieson.7
0
166
Member Avatar for VIPER5646

Hi all I Currently have a MDI Form that contains a DataGridView. When I open a dialog form as a MDi MdiChildren the dialog form partionly hides behing the Datagridview. (I also tried with a windows form same thing happens). Can any one help me solve this with out having …

Software Development vb.net
Member Avatar for VIPER5646
0
351
Member Avatar for zortar

xhi, my task is to make a script, which displays the string read from console input in the form of 1 letters / line only. my code looks like this so far read string hossz=`expr length "$string"` for i in `seq 1 $hossz` do echo `expr substr $string $i 1` …

Software Development shell-scripting
Member Avatar for zortar
0
301
Member Avatar for dean.n.harris

okay ive been trying to do this for some time i want my program to randomly select 3 strings from my text file and display them randomly so each time i press 9 on my menu it will display 3 different ones each time and i've already made the array …

Software Development java
Member Avatar for ObSys
0
227
Member Avatar for Ms.toumi

1-Write a program that prompts the user to input two positive integers (firstNum and secon Num) where the first number should be less than the second (validate your input). The program should output all the numbers and their squares between firstNum and secondNum (inclusive). 2-Write a C++ program which reads …

Software Development c++
Member Avatar for ObSys
0
155
Member Avatar for Derek_4

For some reason this is only returning the description of a single item in the HashSet even when there are several items. I am not sure if the (Item)iter.next() is only getting the description of the first item in the list and that is why. /** * */ public String …

Software Development java
Member Avatar for JamesCherrill
0
228
Member Avatar for jackslv

This is just a piece of code I've found over the Internet, and I'm trying to understand why the output is 3 1 1 2 1 1 2 3. Could anyone explain using a stack representation or something else, I am really stuck on this one. #include <iostream> using namespace …

Software Development c++
Member Avatar for jackslv
0
235
Member Avatar for Derek_4

I am having trouble adding an item that will increase a player's energy in my BlueJ game. At the bottom of the createRooms() method in my game class I have added several items to rooms. At that point I tried setting boolean newEnergy equal to true. If the player types …

Software Development java
Member Avatar for Derek_4
0
328
Member Avatar for manel1989

hi all i use gecode solver to solve my model ; but i get this error Access Violation when reading of the location 0x0000001c and i don't konw how to fix it here is my code : #include <gecode/driver.hh> #include <gecode/int.hh> #include <gecode/minimodel.hh> #include <iostream> #include <vector> using namespace Gecode; …

Software Development c++ matrix-multiplication
Member Avatar for Ancient Dragon
0
627
Member Avatar for fsrgio

hello, I'm trying to resolve an issue that is requested to create a game with the same kind of Flow Free. Where I have to create a NxN matrix, which must be greater than or equal to 2 and less than or equal to 7. The size is selected by …

Software Development python
Member Avatar for fsrgio
0
155
Member Avatar for cambalinho

can i create 1 template that i use inside the class and not when i create the class object?

Software Development c++
Member Avatar for mike_2000_17
0
157
Member Avatar for krystosan

How do I display images in QListView of size of standard thumbnail size like 250 x 200 , and file nametext should wrap to next line , right now the images displayed are very small and are not positioned under each other in proper row column order. import sys import …

Software Development os-x python qt
Member Avatar for krystosan
0
2K
Member Avatar for krystosan

I am trying yo create symbolic link on my mac, but when i try to run i get error saying original item searchMethod cannot be found `$ ln -s '/usr/bin/env python ~/Development/python/searchMethod/python/searchMethod.py' searchMethod`

Software Development python shell-scripting
Member Avatar for rojomoke
0
474
Member Avatar for laila_2

I want help in my code ,, the program should search for all words in a string For example , if the string is welcome to pointers world come and see the magic it should print welcome come . Any One can help me to find a way to solve …

Software Development c c# c++
Member Avatar for laila_2
0
843
Member Avatar for tensity

I am creating a doubly linked list in fortran. Pretty much everything is working correctly. Although, I am having one issue... I build the list properly, but when printed to the screen, I get jumble for the first and last lines. Here is my code DO WHILE (.NOT. quit .AND. …

Software Development linked-list
Member Avatar for tensity
0
471
Member Avatar for AquaNut

Hi All, I am trying to copy specific files from a share to a local temp folder on a specified date (not yet implemented) The trouble I am seeing is that I am trying to use a wildcard within the files as they have random numbers after set characters to …

Software Development regex
Member Avatar for tinstaafl
0
2K
Member Avatar for Craig_2

Hey all, I have the following code that is working fine; basically it finds all files on my desktop and then prints the specific ones that I am looking of. I save all files to my desktop and the files contain the clients name so I figure once a week …

Software Development file-system operating-system python
Member Avatar for Craig_2
0
409
Member Avatar for hobaa414

iwant to implement an elevator simulator which will emulate the behavior of a system with two working elevators.

Software Development c++
Member Avatar for abdul.mudaser
0
1K
Member Avatar for Mr.M

Hi Dw I was working with VB.NET but then the problem occurred so I decided to change this project to VB 5.0 because that where I can make this program a stand alone executable file, this program will be embedded on a Disc (CD/DVD) so now what I want is …

Software Development vb.net
Member Avatar for Begginnerdev
0
295
Member Avatar for Kanshika

I am creating crystal report in ASP.NET and C#.I am creating a crystal report.All are going fine if I give textbox for search parameter but when I give combobox for search parameter then it does not generate report.Data does not come into DATATABLE.Where I am doing wrong? sql = "select …

Software Development
Member Avatar for Rahul47
0
707
Member Avatar for Sara_5

my visual basic showing error on spacesplit and sslstream... how to handle?

Software Development visual-basic
Member Avatar for Ketsuekiame
0
185
Member Avatar for chdboy

I'm not able to see content on JFrame ,when JFrame shows up. import java.awt.*; import javax.swing.*; import java.awt.event.*; public class GraphicUse extends JPanel { public void PaintComponent(Graphics gr) { super.paintComponents(gr); this.setBackground(Color.BLUE); gr.setColor(Color.WHITE); gr.fillRect(50, 50, 100, 100); gr.setColor(new Color(139,38,190)); gr.fillRect(50, 70, 100, 100); gr.setColor(Color.RED); gr.drawString("This is a new String", 50, 90); …

Software Development java java-swing
Member Avatar for JamesCherrill
0
229
Member Avatar for thrisha

I want to encrypt and decrypt an excel file via RC4 algorithm Obtained a code in c. I want for encryption and decryption of excel file in c#.

Software Development algorithm encryption
0
126

The End.