132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mamy.Dad

i want to build a mechanism in c++ can any1 help even for just links :(

Software Development c++
Member Avatar for shayan_doust
0
101
Member Avatar for maria.javed.3990
Member Avatar for shayan_doust
0
152
Member Avatar for Trle94

Hello everyone, I need small help with arrays, been smashing head whole night getting it work, so if anyone know solution for this please let me know here or post example snippet. So i have example code: Dim housing() As String = {"House", "Flat"} Dim people() As String = {"01", …

Software Development vb.net
Member Avatar for hericles
0
113
Member Avatar for Simon180

Am trying to look the code below so it will loop the current items already in the list and display them all plus any new onces added but am having a bit of trouble doing this what am I missing or doing wrong? Gallery.Duplicates := dupIgnore; Gallery.Sorted := True; // …

Software Development html-css pascal
Member Avatar for SalmiSoft
0
132
Member Avatar for Lacrecen

Good day!~ May i know the difference between creating database using Visual Data Manager and using MS Access. which is better?

Software Development visual-basic
Member Avatar for Lacrecen
0
257
Member Avatar for ali11

import java.util.ArrayList; import javax.swing.JOptionPane; public class ClientList { private ArrayList<Client> clientData; private final String NEW_LINE = "\n"; private int cursor; //manager mode public ClientList ( ) { clientData = new ArrayList<Client> ( ); buildClientList ( ); if (clientData.size ( ) != 0) cursor = 0; //not empty, place cursor at …

Software Development file-stream java java-swing
Member Avatar for Slavi
0
182
Member Avatar for theashman88

Hi I got a quick question. Is there any way i can change the background color and the text color within my compiler of dev-c++. I'm not trying to change the color of the output when I run the program, I'm talking about the actual code itself and its compiler. …

Software Development c++ html-css
Member Avatar for nullptr
0
7K
Member Avatar for chubbyy.putto

I try to it. it still have junk char on it. The thing I try to do is decrypt byte key that w/o using the key. When i test is show me a junk when this code is detele any char that over the 0 to 127 but it not …

Software Development java
Member Avatar for Slavi
0
292
Member Avatar for COKEDUDE

I am having issue with jmenu popup in netbeans. It only sometimes works. Sometimes I don't get a java popup at all. Sometimes my File and Edit options are completely missing. This is what my code looks like. import javax.swing.*; public class menu { /** * @param args the command …

Software Development java java-netbeans java-swing
Member Avatar for Slavi
0
125
Member Avatar for arashe

I need an algorithm that check some arrays and if the condition was true * all of them at -1 // Otello.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using namespace std; static int bazi[8][8] = { 0 }; int turn = 1; …

Software Development algorithm c++
Member Avatar for arashe
0
151
Member Avatar for raliot

I need a help , to make this code to sort data from text file.Any help is appreciated! file: 50 72 10 30 90 4 23 #include<iostream> #include<conio.h> void mergesort(int[],int,int); void merge(int[],int,int,int); void main() { int a[20],p,q,r,i,n; cout<<"Enter the number of elements"; cin>>n; p=0; r=n-1; cout<<"Enter the array"; for(i=0;i<n;i++) { …

Software Development c c# c++
Member Avatar for Maritimo
0
331
Member Avatar for marlyana

Write a program that has an array of integers as below: -12, 3, -12, 4, 1, 1, -12, 1, -1, 1, 2, 3, 4, 2, 3, -12 The program should counts the number of occurrences of each array element. Output a two-column list where the first column is a list …

Software Development c++
Member Avatar for shayan_doust
0
149
Member Avatar for Khan2014

Hi All, I was wondering if anyone could tell me a better doing this. I have a thousand image in each folder going from 0 to 999 and i want to be able to select an image in any folder and load it. Thanks in advance for the reply. if …

Software Development
Member Avatar for Khan2014
0
157
Member Avatar for gedas

hey, i am creating a web service but the problem is when i try to deploy that web service it gives me error below: [ICODE]init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: Building jar: D:\Documents\NetBeansProjects\EmployeeWebService\dist\EmployeeWebService.war D:\Documents\NetBeansProjects\EmployeeWebService\nbproject\build-impl.xml:684: Deployment error: Starting of server GlassFish Server 3 is not supported. Please, start the …

Software Development java
Member Avatar for ajithoop
0
158
Member Avatar for goha1414

Write a program in object code that will convert a 3-bit binary number to a decimal number,For example, if input is 101, output should be 5; if input is 011, output should be 3. that is what I have to do,this is what I have so far but its not …

Software Development assembly
Member Avatar for saifali110
0
1K
Member Avatar for punna.udaykumar

A series of different parts of sentences will be randomly put together to come up with new interesting sentences. using with Random, Integers, Print, Strings, Breaks, Functions, For, Range

Software Development python
Member Avatar for sneekula
0
487
Member Avatar for ao_py

I am trying to write a program that graphically presents three doors and ask the user to choose the “special” door (randomly selected by the program). If the user correctly chooses the special door, it’s a win. If either of the other two non-special doors is selected, it’s a loss. …

Software Development python user-interface
Member Avatar for sneekula
0
892
Member Avatar for OMER AHMED

hi all ... i am designing a software where i am using login and password. the user and password is store in notepad which is connected with listview . now i dont know i mean i need something when user enter user and password it should search and if details …

Software Development listview vb.net
Member Avatar for OMER AHMED
0
820
Member Avatar for dancks

I was testing this in prompt mode: import re def checkurl(url): check = re.match(r'^(:?https?://)?[^\/#?&]+\.[^\/#?&]+.*$',url) if check == None: print “NNOOOOOO!!!!” else: print “YESSSS!!!!!” checkurl("javascript:void(0);") checkurl("/account/general?ru=https%3a%2f%2fwww.bing.com%3a443%2fsearch%3fq%3dukraine%2bcrisis&FORM=SEFD") checkurl("/?FORM=Z9FD1") checkurl("http://choice.microsoft.com") I have no idea why this won't work. Ignore the regex its only supposed to weed out relative paths and fragments of strings. …

Software Development python regex
Member Avatar for Gribouillis
0
995
Member Avatar for shahera.arafat

(node.h) This is the code and it gives me these errors >>which confused me alot >>what are these errors ?!! and what is the problem ?!! Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 12 graph.h Error 4 error C2660: 'graph::create' : …

Software Development c++
Member Avatar for tinstaafl
0
211
Member Avatar for lewashby

[Linux] Mint I wrote the following code from an SDL book I have and it seems to be building just fine but when I go to run the program I get this error -> "Launch failed, Binary not found." I used Eclipse as my IDE and the setting are adjusted …

Software Development c++ ide
Member Avatar for tinstaafl
0
272
Member Avatar for akuma_reen

hello i had trouble in finding out whats wrong with my code I want to sort the data's from my text file and it somehow did but some of the words did not appear. word.txt hello apple hi banana mango the output I get is : hello hello hi hi …

Software Development apple c file-system
Member Avatar for akuma_reen
0
2K
Member Avatar for chumli

I have finally got the game running but it ends too early. I need to make the game continue until there are 4 in a row but it ends after the first turn and no disk is dropped. do { cout << "Drop a " << (player == 'R' ? …

Software Development c++
Member Avatar for chumli
0
159
Member Avatar for MasterHacker110

I recently read about the Ackerman Function and thought I would do my own implementation of it: #include <stdio.h> long long int ackermann(long long int m, long long int n) { if (m == 0) return n + 1; if (n == 0) return ackermann(m - 1, 1); return ackermann(m …

Software Development c
Member Avatar for Moschops
0
268
Member Avatar for senait.kifle.127

I am running into problems reading in a csv file. I have an inventory.csv file with three columns and around 10,000 rows. The last column is supposed to be ignored. The csv format looks like this Shelf number; item name; item number. (So here item number shall be ignored). After …

Software Development c++ display ios
Member Avatar for Moschops
0
2K
Member Avatar for Johnny Blaz
Member Avatar for usmanjani

please help me identify the objects,their relations (Association, aggregation and Composition) of a university ?

Software Development c++
Member Avatar for usmanjani
0
161
Member Avatar for chumli

Ok so I completed my hangman code but now I have to read the words from a .txt. I have looked at numerous codes and examples but cant get it to work at all. Any help I would be grateful. #include <iostream> #include <string> #include <vector> #include <algorithm> #include <ctime> …

Software Development algorithm c++
Member Avatar for chumli
0
147
Member Avatar for N S K

help me to solve this . how to compare virus signature with file to detect virus in java? whether file content or file signature is compared for virus scanning?

Software Development java
Member Avatar for stultuske
0
209
Member Avatar for Florian_2

Hey, guys! Newbie here. =) I try to reverse an image but an error came and i don't know why :/ This is the error: Traceback (most recent call last): File "C:/Users/Florian/Documents/ISN/S10/défi11.py", line 10, in <module> im.putpixel((x,600-y),(p[0],p[1],p[2])) File "C:\Python27\lib\site-packages\PIL\Image.py", line 1267, in putpixel return self.im.putpixel(xy, value) IndexError: image index out …

Software Development python
Member Avatar for vegaseat
0
785
Member Avatar for bonzo2008

Hi the line with image4.picture don't work the rest of the code is printing out as it shall do. The image4.picture is in hidden position and the path is Okej.( can see it when the image4 is vissible=true) How or where is the problem ?? Help is use full with …

Software Development visual-basic
Member Avatar for bonzo2008
0
1K
Member Avatar for shahera.arafat
Member Avatar for deceptikon
0
154
Member Avatar for aluhnev

//This is my code,how do i find & print max value namespace StartCSharp { class Program { static void Main(string[] args) { int [, ] a = new int [4,4] {{2,3,4,5}, {34,56,25,67}, {22,44,55,77},{45,80,22,13}}; foreach (int x in a) Console.WriteLine(x); } } } ///Thank you.

Software Development
Member Avatar for ZER09
0
239
Member Avatar for Akhila_1

HI, VB.net i drew a circle and an arc in the form (resolution to my laptop screen size) I want timer one to be switched on when the mouse hoves in that particular circle and turn off when it moves off the circle.And Second timer will be switched on when …

Software Development vb.net
Member Avatar for Akhila_1
0
449
Member Avatar for aluhnev

//HI All what is wrong with this code,i try to declare 4 dim. array int [, , ,] a = new int [3,4] = {{2,3,4,5}, {34,56,25,67}, {22,44,55,77}}; //how do i declare it an assign values to it?Thanks.

Software Development
Member Avatar for aluhnev
0
162
Member Avatar for juanpa_2510

Is it valid to use an integer variable as a condition? I mean: int var = 20; if (var) { //code here } I know that when var == 0 it's equivalent to false and true if 1, but otherwise could it be a valid question?

Software Development c++
Member Avatar for deceptikon
0
175
Member Avatar for James_41

I have to complete a project which have an text file and finds path between 2 actors(kevin bacin game) that you input by going through the movies in the text file. For example if the text file is: Apollo13 Kevin Bacon Tom Hanks Gary sinise HollowMan Elisabeth Shue Kevin Bacon …

Software Development python
Member Avatar for juanpa_2510
0
3K
Member Avatar for Dudestreet

Hi Team, I was wondering if I am the only one who is not able to do it or what. Well, as the title suggests, I would like to OPen Excel in vb.net. I was able to find end number of articles online on this but none would help. It …

Software Development microsoft-office vb.net
Member Avatar for Dudestreet
0
5K
Member Avatar for Xiao_1

Why done work is it some thing worng i only wan edit one or delete one of it? Private Sub btnedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnedit.Click If String.IsNullOrWhiteSpace(txtadmin.Text) Or String.IsNullOrWhiteSpace(txtname.Text) Or String.IsNullOrWhiteSpace(txtcourse.Text) Or String.IsNullOrWhiteSpace(txtic.Text) Or String.IsNullOrWhiteSpace(txtgender.Text) Or String.IsNullOrWhiteSpace(txtaddress.Text) Or String.IsNullOrWhiteSpace(DateTimePicker1.Value) Or String.IsNullOrWhiteSpace(txttel.Text) Or String.IsNullOrWhiteSpace(txtemail.Text) Or String.IsNullOrWhiteSpace(txttype.Text) …

Software Development open-source visual-basic
Member Avatar for Santanu.Das
0
172
Member Avatar for glenak

I went to the official JAVA forum, but either those guys there have no clue how to solve this or there's no solution to it, in which case, Java applets are useless and java should stop pimping it. I have to say, this is the most frustrated I've been at …

Software Development display ide java open-source
Member Avatar for lilly13
0
1K
Member Avatar for blankspace

public void pencil1() { k1=2; setDoubleBuffered(false); cursorchange(); addMouseListener(new MouseAdapter(){ public void mousePressed(MouseEvent e){ oldX = e.getX(); oldY = e.getY(); } }); //if the mouse is pressed it sets the oldX & oldY //coordinates as the mouses x & y coordinates addMouseMotionListener(new MouseMotionAdapter(){ public void mouseDragged(MouseEvent e){ currentX = e.getX(); currentY …

Software Development java
Member Avatar for stultuske
0
188
Member Avatar for yaya1234

hey, I need to read from a file but withput using string... I tried this... // reading a text file // reading a text file #include <iostream> #include <fstream> #include <string> using namespace std; int main () { char line[120]; ifstream myfile ("example.txt"); if (myfile.is_open()) { while ( getline (myfile,line) …

Software Development c++ file-system
Member Avatar for yaya1234
0
2K
Member Avatar for prasanna.k

Hi Guys, I need python script to assign 100 IP addresses to VMs present in the same ESX host. can anyone help me with this.

Software Development python
Member Avatar for Gribouillis
0
905
Member Avatar for omar.elbakly.95

how to draw an inverted triangle after asking the user for the number of rows in c++ usin reursion not for loop as this code #include<stdio.h> #include <conio.h> int main() { int rows,i,j,space; printf("Enter number of rows: "); scanf("%d",&rows); for(i=rows;i>=1;--i) { for(space=0;space<rows-i;++space) printf(" "); for(j=i;j<=2*i-1;++j) printf("* "); for(j=0;j<i-1;++j) printf("* "); …

Software Development c++
Member Avatar for Maritimo
0
1K
Member Avatar for N S K

in the signature based scanning I couldn't understand how to find virus when it is in the body of the file..do i need to compare file content with virus signature for detecting virus ? if so how to compare in java? or else how can i compare file with virus …

Software Development java
Member Avatar for N S K
0
126
Member Avatar for JJHT7439

I have to complete a lab which basically takes a text file and finds path between 2 actors that you input by going through the movies in the text file. (For the labs purposes we are only doing 3 degrees of separation) For example if the text file is: [QUOTE]Apollo13 …

Software Development python
Member Avatar for James_41
0
3K
Member Avatar for cyaeger

i am very new to Java (1st semester). The assignment is to return the location of the largest element in a 2-diamensional array by using this method <public static int[] locatelargest(double[][] a). I have worked on this program for almost a week and have eliminated all but the following two …

Software Development java
Member Avatar for cyaeger
0
884
Member Avatar for ozzan93

Hey everyone, I have an assignment for tomorrow and I don't have any clue about this last question. "Q5- Consider a waiting queue in a bank with customers who are issued direction slips. They are asked to move to following service terminals depending on their customer numbers being divided by …

Software Development c++ queue
Member Avatar for L7Sqr
0
420
Member Avatar for bilal qadri

how to create dynamic object array with over loaded constructor call plz help and tell me the syntax ...

Software Development c++
Member Avatar for Maritimo
0
95
Member Avatar for justinlake888

hello... I am trying to convert 2 digit numbers to words: example 11= eleven. I saw some other entries on this but they dont include case or switch so far I have: [code=cplusplus] #include <iostream> using namespace std; cout<<"Enter a two-digit number: "; cin>>number; if(number>99) { cout<<"Number out of range"; …

Software Development c c# c++
Member Avatar for hermel
0
2K

The End.