132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ezkonekgal

hello. I need some help on our implementation on lines of code program. here's the algorithm we have: 1. The LOC program will start by asking for the filename of the program to be counted. 2. Browse for the filename of the program to be used. 3. The contents of …

Software Development java storage
Member Avatar for emoon11
0
2K
Member Avatar for can-mohan

Hi, While executing below code i am getting error like "memory clobbered before allocated block" and due to this assignment is not happening. could you let me know what can be reason for the same. I do understand it is not good to use raw pointer but in current scenario …

Software Development c++
Member Avatar for can-mohan
0
446
Member Avatar for FutureDev86

For the life of me, I can't get this to work.... What am I doing wrong? Any help is greatly appreciated!! [CODE] Private Sub webBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long) On Error Resume Next If Progress = -1 Then ProgressBar1.Value = 100 lbl1.Text = "Done" ProgressBar1.Visible = False …

Software Development visual-basic web-browser
Member Avatar for Richard_16
0
605
Member Avatar for martin3885

Hi, I've a project compiled for .net 3.5. In the project there is a form with a DataGridView. In CellPainting I'am adding row numbers in row header: private void dataGridView1_CellPainting(object sender, System.Windows.Forms.DataGridViewCellPaintingEventArgs e) { if (e.ColumnIndex == -1) { e.PaintBackground(e.ClipBounds, true); using (StringFormat st = new StringFormat()) { st.Alignment = …

Software Development asp.net vb.net
Member Avatar for JOSheaIV
0
1K
Member Avatar for Emelnuel

I need the specification and implementation of a new data type that holds terms extracted from document(s). Such a data type will not allow duplication of terms in each instance. A minimum of: 1 creator method, 3 mutator methods, 3 observer methods are required. Also,a separate test program is to …

Software Development java
Member Avatar for Emelnuel
0
510
Member Avatar for Amador_1

Loading Data, load only the name in the XML file I did the save. This is the XML file : // The trainingfaces file <?xml version="1.0" encoding="utf-8"?> <Faces_For_Training> <FACE> <NAME>john</NAME> <Age>25</Age> <informations>Student in MS university</informations> <FILE>face_john 25Student in MS university_905807542.jpg</FILE> </FACE> <FACE> <NAME>mark</NAME> <Age>40</Age> <informations>engineer ....</informations> <FILE>face_mark 40engineer ....._390671740.jpg</FILE> </FACE> …

Software Development file-system xml
Member Avatar for JOSheaIV
0
259
Member Avatar for hamzabinamin

We were given a task to use lists and iterators. We were supposed to make them from scratch. I'm done with that. The problems that I'm having are as following: 1. I'm not able to access the list made of Course datatype which is present in each Student instance. Does …

Software Development c++
Member Avatar for StuXYZ
0
211
Member Avatar for daniel.benniah

I tried to enter the following code and the compiler says "[Error] expected ')' before string constant" char string[6]; strcpy(string,"HELLO\0"); can somebody please help me

Software Development c
Member Avatar for naveen1993
0
565
Member Avatar for infatuate

So I'm trying to write a program that will read a program that will be reading characters/strings in regular text and will output the information in hexadecimal format. An example of such is this "UNAME" = "55 4E 41 4D 45 28 31 29" in hexadecimal format. I just don't …

Software Development c
Member Avatar for naveen1993
0
160
Member Avatar for smdjilani

we have both malloc() and calloc(),both work as same then why they introduced two differen functions?please

Software Development c
Member Avatar for naveen1993
0
180
Member Avatar for shahzeb C

please give a simple program for learning "char*".....thanks

Software Development c
Member Avatar for naveen1993
0
120
Member Avatar for SoloMonk

I am trying to figure out how to center the labels labeled blackSection, blueSection and so on. However i am unable to get the labels to center. I have tried blackSection.setVerticalAlignment(JLabel.CENTER) also have tried blackSection.setVerticalTextProperty(JLabel.CENTER). Any help would be appreciated, it is however a homework assignment so hints as to …

Software Development java java-swing window-manager
Member Avatar for SoloMonk
0
2K
Member Avatar for inspire_all

suppose there are two strings str1 and str2. suppose i filled str1 with some characters.Now what i want to do is copying string str2 at some specified location in str1. How can i do it?

Software Development c
Member Avatar for naveen1993
0
213
Member Avatar for trade19

hi I want to know the easyest way to readline() or readlines() or read() a file so far I have this >>> file = open( 'write_total.txt', 'r' ) >>> file.readlines() ['Line 1\n', 'Line 2\n', 'Line 3\n', 'Line 1\n', 'Line 2\n', 'Line 3\n'] >>> I am not sure why this repeats …

Software Development file-system python
Member Avatar for trade19
0
278
Member Avatar for Doogledude123

Does clear use removeAll method for listViews? I have a program that reads a file and stores the data in multiple arrays. I then use that data from the arrays to display them in a ListView, TextFields, a ComboBox, and a TextArea. I am also using an ActionListener to get …

Software Development gui java listview
0
182
Member Avatar for nabilmahesaniya

hey friend i got a project for bank account which consists fo two child class(saving and current account) i had completed with saving account but in current account i need to have a method type which help me for exrtract money(credit which bank gives us ) example:- if i have …

Software Development java
Member Avatar for nabilmahesaniya
0
295
Member Avatar for xolani.ntsiba.7

Create a class called Classroom which contains the main method. This class creates an array of 5 students and calls the setName and setAverage methods. Using the console, send in a name and average for every student. Create two integer variables called a and b. a gets a random value …

Software Development java
Member Avatar for stultuske
0
119
Member Avatar for sparky58

This assignment asks to add some code from to a previous assignment I had. I have been confused about this overload operators alot and im confused on how to do it in my code any help with this will be good A) overload the >> operator to allow for reading …

Software Development c c# c++
Member Avatar for Banfa
0
401
Member Avatar for Curious Gorge

So I've begun using a library called Poco. My program doesn't do what its supposed to yet I've checked over everything. The code is: #include "stdafx.h" #include <iostream> #include <Poco/Debugger.h> #include <string.h> #ifdef POCO_ARCH_LITTLE_ENDIAN std::string endianness = "Host byte order is Little Endian.\n"; #else std::string endianness = "Host byte order …

Software Development c++
Member Avatar for Curious Gorge
0
253
Member Avatar for 21345570

Hi there, I wanted to know if there was a way you could enable a part of my site at a point in time and disable it after that time has past, is there anyway to code for that. For example I'm doing a project on online voting and I …

Software Development visual-studio
Member Avatar for BMXDad
0
108
Member Avatar for Pyler

What is the difference between `CoffeeInterface<Beverage> cup1 = new Coffee<Beverage>()` and `Coffee<Beverage> cup2 = new Coffee<Beverage>()` `Coffee` is a class that extends the `CoffeeInterface` Is `cup1` an object or can it be used as one. Are there any differences betweeen `cup1` and `cup2`?

Software Development java user-interface
Member Avatar for JamesCherrill
0
249
Member Avatar for GagaCode

hey all again in trying to add to make sure if my datagridview has some data in it or not before adding it to the database and here what i came up till now int i = POSDGV.Rows.Count; for (int j = 0; j < i; j++) { string strCol2 …

Software Development vb.net
Member Avatar for deceptikon
0
193
Member Avatar for Nebil

Hi guys, A problem came up when i tried to copy record from the temp. table to the main one.I was copying records to two main tables but one table is empty but the other works fine.Here's the code i used: projcode = TextBox4.Text projname = TextBox5.Text description = TextBox6.Text …

Software Development vb.net
Member Avatar for Nebil
0
290
Member Avatar for Doogledude123

I am trying to determine collision in a 2D Side Scroller environment using Rectangles. However, the way most people do it is to get the bounds of the Tile. I do not use Tile's in this case, I am just drawing Simple Full Colored Rectangles using Graphics2D. `g.drawRect(int x, int …

Software Development github java
Member Avatar for jwenting
0
485
Member Avatar for mellixa

I cant figure out how to check the array for AND and OR. please, help, i got stuck my code: import java.util.Scanner; public class BooleanProduct import java.util.Scanner; public class BooleanProduct { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[][] A = new int[10][10]; int[][] B = …

Software Development java matrix-multiplication
Member Avatar for JamesCherrill
0
883
Member Avatar for Doogledude123

Okay, so I have a ListView populated by an Array, which is populated by a text file. I also have 3 TextBoxes which are changed to different values in multiple Arrays using the Selected Index. My problem occurs when reloading the ListView after saving the text file. The values from …

Software Development java listview
Member Avatar for JamesCherrill
0
701
Member Avatar for Vishwanath_1

Hi, I am very new to this forum. I started learning XPath queries. Can anyone please assist me on how to get elements from an xml where it doesn't contains any root element. Thanks, Vishwanath

Software Development xml
Member Avatar for xml_looser
0
1K
Member Avatar for Start4me

I have a database with items which I want to populate to a listbox. The first image shows how its right now, and the second shows how I want the final result to look like. ![dd3aaa66fdb74cecb5cca11999b6b6dc](/attachments/small/3/dd3aaa66fdb74cecb5cca11999b6b6dc.png "align-left") ![2645978b29622fc539c0725c199c3e13](/attachments/small/3/2645978b29622fc539c0725c199c3e13.png "align-right")

Software Development vb.net
Member Avatar for arun1123
0
648
Member Avatar for michelemalta

I'm fairly new with arrays but from my understanding it is set up as so: datatype arrayname[#of elements] = {elements}; I was wondering why this code doesn't work typedef char alphabet[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', …

Software Development c++
Member Avatar for nullptr
0
295
Member Avatar for ryantroop

So... I would like to work on a program that will work on trilateration using wifi signals (as I understand it, much like Google does for indoor GPS fall-off). Sadly, I don't think I have the expertise (yet) for this, and I am looking for some input on where to …

Software Development raspberry-pi
Member Avatar for ngockhanhxxx
0
188
Member Avatar for Brittany_1

Hello everyone. I need some help on creating a slot machine. It needs to have the option of playing a three wheel & four wheel machine. I've created separate functions for those two. I think I understand the whole random generating concept, but I'm having a hard time figuring out …

Software Development c++
Member Avatar for vmanes
0
574
Member Avatar for Pyler

I have two classes A Dog class whose constructor does not accept arguments, `public class Dog<pet> extends Animal<pet>{}` whose constructor does not accept any arguments and `public class Animal<pet>{}` whose constructor accepts one argument public class Dog<pet> extends Animal<pet>{ public Dog(){ super(/*what should go here?*/); //Constructor accepts no arguments } …

Software Development java oop
Member Avatar for stultuske
0
247
Member Avatar for mellixa

import java.util.Scanner; public class BooleanProduct { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = 10; int[][] A = new int[n][n]; int[][] B = new int[n][n]; //Fill A and B int m,n2,p,q; System.out.println("Enter number of rows for matrix A : "); m = input.nextInt(); System.out.println("Enter …

Software Development java matrix-multiplication
Member Avatar for stultuske
0
303
Member Avatar for tony75

Hi Please I need your help with this script. I have an logfile.xml and I need to picks the file names of the path but not duplicate and writes them into a bat file, like copy %windiw&\system32\<filename> %1% Output example for my .bat file should look like copy %windiw&\system32\ dbghelp.dll …

Software Development file-system python xml
Member Avatar for tony75
0
1K
Member Avatar for abaddon2031

I have a very large csv file that had different values for certian fields and im wanting to split it up so that each of the different values gets put into its own csv file for example all of the fields whos value is 1110 would get read and written …

Software Development python
Member Avatar for rrashkin
0
234
Member Avatar for Jake_4

I am new to C++ and i don't understant this error message i am recieving. Could you show me the solution? ([Error] name lookup of 'n' changed for ISO 'for' scoping [-fpermissive]) line 25, col 17 (the 'n' is the problem) #include <cstdlib> #include <iostream> #include <math.h> #include "dp_lib.h" using …

Software Development audio c++
Member Avatar for Labdabeta
0
7K
Member Avatar for fakehealer

I have a 5 listview listview1 has two columns listview2 has one column listview3 has one column listview4 has one column listview5 has five column now i want this scenario in every column of listview5 in listview5 columns first column of listview5 is equal to listview1 first column the second …

Software Development listview
Member Avatar for JobPencil
0
455
Member Avatar for bignobela

**what can i do with this errors?please help me! thanks** >#ifndef WS2811_h >#define WS2811_h >#include <avr/io.h> >#include <util/delay.h> >#include <WS2811.h> **Error 1 unterminated #ifndef** >typedef struct __attribute__ ((__packed__)) { > uint8_t r; > uint8_t g; > uint8_t b; >} RGB_t; **Error 2 expected ':', ',', ';', '}' or '__attribute__' before …

Software Development c c# c++
Member Avatar for sepp2k
0
176
Member Avatar for PeterSodborg

Hi There. Im doing a beginner project here in my studie. So here is the thing. I have a txt file, where there are words in different language. The user must quess the word in his language and if he dosen´t know the word, he should search for it. I´ve …

Software Development gui java
Member Avatar for PeterSodborg
0
300
Member Avatar for daniel1977

I have a question about classes and header files. As I see the trend of reusing classes, I would like to start building the classes in their own file, and be able to call it, and use(#include "class.h") to include them. I am a little bit confused because I understood …

Software Development c++
Member Avatar for rubberman
0
161
Member Avatar for Sifiso21031085

How to connect sql database to your c# program

Software Development
Member Avatar for Mohit_5
0
215
Member Avatar for rory.starkweather.7

Just a quick question, and I should know the answer, but can't remember it. You use Ctrl-K B Ctrl-K K to block text for moving, copying, etc. How do you get rid of the highlighting when you are done?

Software Development c ide
Member Avatar for jwenting
0
383
Member Avatar for sitidahleeya

Hello, could anyone here please review this code: > the deleteEntry () function are not well working. I dunno how to solve this. #include <stdlib.h> #include <stdio.h> #include <string.h> struct Node { char firstName [15]; char lastName [15]; char Number [15]; char searchName [15]; struct Node *next; } ; struct …

Software Development c seo
Member Avatar for Banfa
0
204
Member Avatar for Pyler

I have two strings, `String one = new String("word");` `String two = new String("word");` Why does `System.out.println(one.equals(two));` Return true given that one and two are two different `String` objects.

Software Development java
Member Avatar for jwenting
0
156
Member Avatar for vickey66

Hi, I am new to VB programming. I am using Aceess 2010 database with VB 2010. I have one main table which stores information of company details. The details are broken down in seven different tables with codes to avoid data duplication and keep the main table less bulky. e.g. …

Software Development dataset open-source vb.net
Member Avatar for vickey66
0
300
Member Avatar for rory.starkweather.7

This only appears to move one character even though it does a lot of thrashing around when I step through it. It looks like it's only executing the loops once, but the topmost character in the array is corect. It just like the others aren't moved at all. #include <string.h> …

Software Development c
Member Avatar for rory.starkweather.7
0
277
Member Avatar for Sajoo

Hello I am working on Parallelization of Fractal Image Compression. I have used prof. Yuval Fisher's enc.c and dec.c fractal image compressor / decompressor. The code is working fine but my question is: How to view the RAW images lenna.dat(input image) and lenna.out(decoded image) on Windows/Sun/LINUX machine. I think there …

Software Development c image
Member Avatar for Arun_8
0
385
Member Avatar for abaddon2031

Ok so im working on a script that reads a large file then splits it up into seperate files using the field in it called PC Number. What im wanting to do is check if the file already exist if it does then it just appends the new data but …

Software Development file-system python
Member Avatar for abaddon2031
0
428
Member Avatar for Prashant_4

dear friends, I am a beginner in c programming and I have learned the c++, java as well, In C I have been asked for a question about how to convert lower case string like any name into uppercase, and i have read a program for it by pointers and …

Software Development c
Member Avatar for naveen1993
0
238
Member Avatar for COKEDUDE

Can I please have a good detailed explanation on the differences between malloc and calloc? I always have trouble understanding that.

Software Development c
Member Avatar for deceptikon
0
350

The End.