43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Hazardous_Byte

Hello everyone! I am having a bit of an odd problem here. So, on my Visual Studio project, I decided to use a precompiled header. This didn't seem to cause a noticable problem up until today. I have a small segment of code that is supposed to remove one element …

Software Development c++ visual-studio
Member Avatar for Hazardous_Byte
0
734
Member Avatar for Minko

Hello, I am trying to place data from a text file into an array and then sort it by date and finally display it in a text box. The part I am stuck on is sorting the data by date. As I do not want to confuse anyone trying to …

Software Development vb.net
Member Avatar for Minko
0
6K
Member Avatar for eggsandbacon

Hey everyone, I'm working on an assignment and I'm having some trouble figuring out how to implement two operators. The program creates and implements a class to represent the Stack ADT using a singly-linked list. There is a driver program to test my implementation. I have everything implemented (except the …

Software Development c++ linked-list
Member Avatar for aranayd
1
1K
Member Avatar for guilherme.carvalho.9250

Hello to everyone, Im new to vb.net and right now I am developing a program that its like a agenda where the user sets the date and the time do be remembered of the task the he has to do. Im storing the tasks in a txt file. The part …

Software Development vb.net
Member Avatar for Pride
0
416
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> #include<string.h> void main() { char name[30],mname[40]; printf("enter the num:"); gets(name); strcat(name,123); printf("%s",name); } is it possible to concatenate num and character its not working how to concatenate numbers and character

Software Development c
Member Avatar for Ancient Dragon
0
187
Member Avatar for Ashenvale

Hi there, I wanted to get the percentage of total vote per candidate but it always result to 0.00. Can anybody tell me what's wrong with my code? public static void main(String[] args) { //Array Declaration String[] candidate = {"Estrada J.", "Drilon F.", "Enrile J.", "Lacson"}; int[] voteEs = {5, …

Software Development java
Member Avatar for Ashenvale
0
119
Member Avatar for Zeref

Hi guys. So, I'm trying to read data from a database and displaying in a GtkTreeview. I used glade to design the GUI when i click on the button (view movies) the list of movies should display as a list. def on_btnmovies_clicked(self,widget,data=None): store=self.builder.get_object('listmovies') connect=sqlite.connect('movies.db') db=connect.cursor() db.execute("SELECT * FROM movie") for …

Software Development database-design gui python sqlite
Member Avatar for Zeref
0
756
Member Avatar for themaj

I need to start my VB.NET app through a batch file and pass an argument to it. The app uses the argument (a dated directory;Ex: 20120530) to process the data files there, output a CSV and a Log file and then close the app. The app does not need any …

Software Development vb.net
Member Avatar for themaj
0
407
Member Avatar for 111100/11000

#include <iostream> #include <cmath> #include <string> #include <cstdlib> #include <cstring> using namespace std; int main() { char chouseing_alphabet[27]={'a', 'b', 'c', '\0'}; string abc[27]; cout << "This program encrypts messages using Ceaser Cipher\n"; cout << "NOTE:capital letters are not allowed in this program\n"; cout << "\n---------------------------------------------------------"; cout << "\n---------------------------------------------------------"; cout << …

Software Development c++ programming-construct
Member Avatar for Ancient Dragon
0
222
Member Avatar for sblass92

Lets say I have a class A and I also have classes B and C that inherit from class A class A { virtual void foo()=0; //stuff } class B : class A { void foo(); //more specific stuff } class C : class A { void foo(); //more specific …

Software Development c++ oop
Member Avatar for sblass92
0
349
Member Avatar for Sendy Hipo

hi guys :D! im trying to make specialized template for cstring, but it seems i stuck on it.. i tried to search how to make specialized template for cstring , but there wasnt any good explanation and im trying to figure this out my self here's my template header : …

Software Development c++
Member Avatar for Sendy Hipo
0
155
Member Avatar for sandz24

#include <iostream> #include <vector> using namespace std; template< typename T > using matrix = vector< vector<T> > ; I saw this code snippet while searching for templates. I was wondering why there's a word "using". What is it for? Thanks :)

Software Development c++
Member Avatar for sepp2k
0
167
Member Avatar for jinglylime

Hi guys, I wrote some code for finding the three longest words in a string. The code I wrote seem too complicated, is there a better way to appoarch this? public class Size { public String[] threeLongest(String word){ String[] three = new String[3]; String[] words = word.split(" "); three[0] = …

Software Development java
Member Avatar for sepp2k
0
3K
Member Avatar for romanzo

Hello, I basicaly not familiar with vb.net because I'm new to it but I need help for my assingment P.O.S System but I can't fin a way to deduct the amount that you want to remove from the list. I always have this eror and I don't know if the …

Software Development vb.net
Member Avatar for romanzo
0
329
Member Avatar for trishtren

Hey, Im trying to extract numbers from a scanner, but im having problems extracting them all. Primarily i need it to * read a text file which contains some text and numbers. * go through the file and locate all numbers * differentiate between numbers contained in bracket (3), and …

Software Development java
Member Avatar for trishtren
0
260
Member Avatar for tanu.jain.39566

<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <script> function adddate() { date=new Date(); var month = date.getMonth()+1; var day = date.getDate(); var year = date.getFullYear(); if (document.getElementById('datetext').innertext =='') { document.getElementById('datetext').innertext = month + ' ' + day + ',' + year; } } </script> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> …

Software Development
Member Avatar for ckchaudhary
0
90
Member Avatar for abhi415

**I am facing some problem in updating ms access with parameters. I succeeded to insert the data in access with parameters. My code for inserting the data is:** Dim dbPath As String = "C:\Users\Abhishek\Documents\ToolDatabase.mdb" Dim connStr As String ="Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=" & dbPath & ";Jet OLEDB:Database Password=agupt80;" Using …

Software Development microsoft-access open-source vb.net
Member Avatar for M.Waqas Aslam
0
159
Member Avatar for coroll

Hi all, I dont why my code is not detecting the matching words. Firstly Im reading the words from a text file into an array. Plz help me to make this correct. This is my code. import java.util.*; import java.io.*; public class TestRegex{ public static void main(String[] arg) { String …

Software Development java regex
Member Avatar for coroll
0
373
Member Avatar for dancks

I don't really have an explanation and whoever thought that this new posting format was the way to go... idk what to say. I really don't like it. I can only post so much lines of code before something happens to the window and I can't scroll all the way …

Software Development c++
Member Avatar for mike_2000_17
0
260
Member Avatar for javanub123

im trying to write a program that will read a line of text from a file and then print that text into whereever the cursor is in the browser. like into the address bar or something. is the possible with python? how would i go about doing it. i know …

Software Development python
Member Avatar for javanub123
0
123
Member Avatar for rithish

generally we can build a application in java and vb make it as a exe.but how do we build application using c or c++.even some operating systems like xp was written in c++.how is it possible????/

Software Development c operating-system
Member Avatar for Ancient Dragon
0
154
Member Avatar for rithish

#include <iostream.h> void main() { int d; int i=0,n,j,b[100]; cout<<"\n Press 1 for Decimal to Binary converstion"; cout<<"\n press 2 for Decimal to Octal converstion "; cout<<"\n press 3 for Decimal to Hexadecimal converstion"; cout<<"\n\nEnter your choice: "; cin>>d; switch(d) { case 1: cout<<"\nEnter decimal number: "; cin>>n; while (n>0) …

Software Development c++
Member Avatar for phorce
-2
442
Member Avatar for fafa70

hi. i have a panel in a form and a button. iwant to write a program that when i push the button,a circle be drawn in panel but problem is here. because the handler in button is eventArgs but the panel is paintEventArgs. can someone give me a suggestion for …

Software Development vb.net visual-basic
Member Avatar for Pride
0
775
Member Avatar for gizmo7008

I'm not sure what I'm doing wrong. I get a warning when I compile and an error after my program runs. This is the warning I get: myList2.cpp: In function ‘int main()’: myList2.cpp:96: warning: deleting array ‘int score [6]’ And this is what shows after my program runs: a.out(7023) malloc: …

Software Development c++
Member Avatar for gizmo7008
0
251
Member Avatar for HibaPro

I need to know if there is any diferences when i create an application that connected with sqlserver for 1 pc or for a local network ?? anyone can help ??

Software Development vb.net
Member Avatar for Reverend Jim
0
93
Member Avatar for ceck30s

Hi, I'm a beginner at python and I'm trying to extract specific columns from a text file, and then use those columns to make a line plot. The files contains the following few lines of data: # Raw SIFs at Crack Propagation Step: 0 # Vertex, X, Y, Z, K_I, …

Software Development python
Member Avatar for Gribouillis
0
772
Member Avatar for shivcena24

i having the string array,, String[] strrr=null; String[] aa ; aa=strrr[3].split("\\!"); if i debug this it shows source not found but i want to return from the string if the strrr[3] value having null or 0 ,how to do it,, use above three line of code to check it,exactly what …

Software Development java
Member Avatar for Majestics
0
163
Member Avatar for rahul pareek
Member Avatar for rahul pareek
0
191
Member Avatar for BadVinegar

I'm fairly new to visual basic. I was trying to make a program that generates code for you, based on whatever the user inputs. But whenever I click generate, I get this error "Invalid CastException was unhandled. Conversion from string "//Generated using MAYAN. Minecr" to type 'Double' is not valid." …

Software Development vb.net visual-basic
Member Avatar for BadVinegar
0
236
Member Avatar for godzab

The difference between using refrences(&var), and pointers(*var) is that using refrences is more efficent because you do not have to derefernce the object. Am I right, and if I am why use pointers then? Take this code for example: #include<iostream> //function prototype void rFunc(int &rNum); void pFunc(int *rNum); //main method …

Software Development c++
Member Avatar for deceptikon
0
98
Member Avatar for daudiam

I thought that setting up the PATH variable was a must if we wanted to use java or javac commands on linux (preferably in the bashrc file), but I am able to use these commands anywhere without setting up the PATH variable.. Similarly, without specifying '.' in the CLASSPATH variable …

Software Development java
Member Avatar for odubanjo.ismail
0
185
Member Avatar for SakuraAssassin

I am writing a program with java and i am having trouble displaying my .txt in my JTextArea. it shows it as 1 appended line and i want it to display the way it is set out in my text file. Here is my code: import java.awt.*; import java.awt.event.*; import …

Software Development display java java-swing
Member Avatar for SakuraAssassin
0
127
Member Avatar for silvercats

#include <iostream> #include<string> using namespace std; int main() { string admin_pwd="testing"; string encrypted ; string unencrypted; char key[5] = "abcd"; for (int x=0; x < admin_pwd.size(); x++){ encrypted += admin_pwd[x] ^ key[x/100%30]; } cout << "Encrypted = " << encrypted<<endl; for (int x = 0; x < admin_pwd.size(); x++){ unencrypted …

Software Development c c# c++ encryption
Member Avatar for WaltP
0
2K
Member Avatar for nstruzik

Im pretty new to coding in C++ and Im a student at devry unversity. I have to sort this class by credit hours in ascending order and Im having some trouble. If anyone could help it would be greatly appreciated. #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace …

Software Development algorithm c++
Member Avatar for Ancient Dragon
0
222
Member Avatar for triumphost

So... I'm looking into learning Assembly. I downloaded the FASM assembler and I want to know how useful is assembly? I want the opinion from Cpp programmers because assembly programmers always tell me it's the best language -__- Also quick question: How do I know which register to put stuff …

Software Development assembly c++
Member Avatar for DeanMSands3
0
167
Member Avatar for xostman

am new in java and am rtying to code a program for lotto punters which generate as many numbers of 6 as the user request

Software Development java
Member Avatar for stultuske
0
233
Member Avatar for coroll

Hi, i get an NullPointerException in this line:if (let==currentLink.aLetter) in search method. This is node class public class Letter { char aLetter; int points; Letter next; public Letter(char aLetter,int points) { this.aLetter=aLetter; this.points=points; } public Letter() { } public String printLink() { // System.out.print("{" + aLetter + ", " + …

Software Development java java-swing
Member Avatar for JamesCherrill
0
124
Member Avatar for helpneeded87

Hello, I was seeking help in why my small program/script is not performing the way I would like. Here is the question. Write a program to calculate the credit card balance after one year if a person only pays the minimum monthly payment required by the credit card company each …

Software Development python
Member Avatar for helpneeded87
0
246
Member Avatar for rithish

what is determinanat of matrix i have a code i dont understand what is the logic behind

Software Development c
Member Avatar for sepp2k
0
116
Member Avatar for deshazer.jad

My goal is to create a clone of minesweeper. I've created a custon component that extends the JButton class, for each of the minesweeper buttons. I've called this new class SweeperButton. the game board is going to be made in another class by creating a two deminsional array of SweeperButtons, …

Software Development gui java
0
173
Member Avatar for osiron

Hey guys, I created a Student class in a header file and it works just fine. The problem is I'm trying to store the Student objects into a map in main which made the compiler generate a "in file included from ..." error. I'm having trouble fixing this problem as …

Software Development c++
Member Avatar for osiron
0
181
Member Avatar for trishtren

Hey, iv been working on a fairly simple part of my program but it throws a null pointer exception. The error i recieve is : Exception in thread "main" java.lang.NullPointerException at FillStyle.<init>(FillStyle.java:12) at compiler.main(Builder.java:43 The code causing the error is : public FillStyle(int type) { if (type >= 0) { …

Software Development java
Member Avatar for trishtren
0
282
Member Avatar for MasterHacker110

In C++ you have this: std::string = "Name"; You can also read file with it, unlike reading the contents into a char[] with a limited amount of memory. So whats is C equivalent of a C++ string?

Software Development c c++
Member Avatar for MasterHacker110
0
3K
Member Avatar for techyworld

hi i have my xml code below: [CODE]<?xml-stylesheet type="text/xsl" href="book.xsl" version="1.0"?> <books xmlns:xsd = "http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation = "book.xsd"> <book id="001"> <isbn>0465044050</isbn> <title>Birth of the Mind</title> <author> <firstname>Gary</firstname> <lastname>Marcus</lastname> </author> <publisher>Basic Books</publisher> <year>2004</year> <price>17.68</price> <picture>0465044050.gif</picture> <description>write your desc.</description> </book> </books> [/CODE] and here my xsl code: [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" …

Software Development image xml
Member Avatar for ckalanam
0
2K
Member Avatar for london-G

Hello, I have my database application containing all the customer information. The application is linked to my SQL using jdbc driver. I would like to know if it is possible to send email automatically every months(like a newsletter) with netbeans? If yes, how can I do it? Thank you.

Software Development java
Member Avatar for london-G
0
109
Member Avatar for godzab

I have been trying to setup swt in eclipse Juno, but it keeps on giving me errors. Here is the error list: Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-win32-4233 in java.library.path no swt-win32 in java.library.path Can't load library: C:\Users\DeoFamily\.swt\lib\win32\x86_64\swt-win32-4233.dll Can't load library: C:\Users\DeoFamily\.swt\lib\win32\x86_64\swt-win32.dll at …

Software Development java
Member Avatar for ~s.o.s~
0
417
Member Avatar for Qonquest

I am getting this output: This is the source string╠This is a destination string╠╠╠╠╠╠╠╠╠╠╠╠╠╠5Press any k ey to continue . . . My code is: void Problem5(char strDestination [], char strSource []) { int intIndexOfStrSource = 0; int intConcatenatedStringIndex = 0; int intStringDestinationIndex = 0; int intLengthOfDestination = strlen(strDestination); int …

Software Development c
Member Avatar for deceptikon
0
1K
Member Avatar for benscomputers

In the following code I need to modify it so that the btnSave control's click event procedure determines whether the user has entered the phone number in the required format: three digits, a hyphen, three digites, a hyphen, and four digits. If not a message should display saying the format …

Software Development vb.net
Member Avatar for benscomputers
0
279
Member Avatar for JubalBarca

Okay, my problem goes as follows. I've been writing a small program in python (an adventure game) which has hitherto run via the console. I'm now working on giving it a full interface, which is requiring a lot of changes to my rather simplistic/archaic structure and generally making things something …

Software Development data-structure file-system python
Member Avatar for sepp2k
0
236
Member Avatar for 3e0jUn

I've been working on Tkinter, and setting a message box. It worked fine, but I didn't really like the fact that the text displayed was in a small position in the window. Take a look at this code and you'll know what I mean. def About(self): text = Message(self, text=''' …

Software Development python tkinter
Member Avatar for 3e0jUn
0
183

The End.