132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mikkey91

Hi! :) I've been given a task in which I have to code a C++ program where an encryption key string with a length of 26 small alphabet is asked, then the user must input a word to encrypt and then it shows the encrypted word. If the encryption key …

Software Development c++ encryption
Member Avatar for raptr_dflo
0
215
Member Avatar for fox196

Hi, I'm getting segmentation fault errors when I use quicksort with ~350 000+ numbers. This is the quick sort algorithm I'm using: [CODE]void swap(int* v, int i, int j) { int tmp = v[i]; v[i] = v[j]; v[j] = tmp; } int partition(int *v, int s, int e) { int …

Software Development algorithm c++ programming-construct
Member Avatar for raptr_dflo
0
1K
Member Avatar for diamondw

Whats wrong with my code?I want a code that shifts a word to an amount (dog to fqi)and the input in an input box.The ouput in a 20 column by n row array.And z if shifted by 2 would be b.Thanks [CODE]Function ShiftCipher(text) shiftamount = InputBox("Input how many numbers to …

Software Development visual-basic
Member Avatar for diamondw
0
144
Member Avatar for kikiritce

I have a problem with assembly task. Write a program that will write the numbers 7-15 in the data segment, starting from offset 200h, and then using a loop and compare them to read data from memory and the DX will insert the sum of numbers divisible by four Here …

Software Development assembly
Member Avatar for kikiritce
0
141
Member Avatar for SoftwareGuy

Hi. I'm sure this question has been asked before, but I can't get the text searched for. If anyone can explain them, refer me to an article, or give me the correct search query I would appreciate it. Thanks.

Software Development c++
Member Avatar for SoftwareGuy
0
247
Member Avatar for Hikari123

This program runs very smoothly, except that it doesn't print the value of i and is obviously not running the second loop to calculate the margin of error but I don't understand why. Any help? [CODE] // This program was designed to calculate the value of pi import java.util.Scanner; public …

Software Development java
Member Avatar for Hikari123
0
442
Member Avatar for moshe12007

hi im doing program that capture image and send the image for my email the only way that this code work - when i doing Button and click - and that send for my email but when i write all the code in the Form1_Load - that give me eror/ …

Software Development webcam
Member Avatar for Mitja Bonca
0
215
Member Avatar for johnnyboyslim

bool operator >(Counter & rhs) { } bool operator ==(Counter & rhs) { } bool operator !=(Counter & rhs)

Software Development c++
Member Avatar for johnnyboyslim
0
108
Member Avatar for aFg3

Ok I just need an idea or a source code to start my project. I need to read a text file with fstream or any other thing. This will be my txt file (nothing the same, just an example) [CODE]a = 6 b = 3 c = 7 a - …

Software Development c++
Member Avatar for Narue
0
192
Member Avatar for eriger777

Hello, I'm trying to compile my client, For a video game. But I get this error [CODE]c:\drsource stuff\46022362clientlatest\clientlatest\filemgr.h(18) : error C2275: 'std::iterator' : illegal use of this type as an expression [/CODE] [CODE]{ typedef map<int, T*> hash; typedef map<int, int> check; typedef map<int, T*>::iterator index;[/CODE] And here is another one …

Software Development c++ visual-studio
Member Avatar for raptr_dflo
0
367
Member Avatar for ZeroEddy

Hey, I have been studying Java for a year in college and this year we started Object Oriented Programming. We have been givin some assignments and stuff but they all include creating Objects and Classes. Does anyone know of any good resources for Creating these as I am slowing down …

Software Development java
Member Avatar for ZeroEddy
0
239
Member Avatar for Behseini

Hi Guys I am trying to make the windows Form BackColor Transparent but each time I try to set the BackColor to Transparent property I am encountering with following error message [COLOR="Orange"]Property Value is not Valid Control does not support transparent background colors.[/COLOR] I also tried to add following code …

Software Development
Member Avatar for skatamatic
0
6K
Member Avatar for skydivekrazy

I am new to programming. So new that I am in my first semester of college. Intro to programming... I have an idea for a program I would like to build in C# because it is the language I am learning first. But I don't have any idea where to …

Software Development
Member Avatar for skatamatic
0
197
Member Avatar for TylerVo

Is there a htm, html, or php code that I can add to a htm or html file on my website that runs a c# program when I visit it? I want to do this because I have a phone application that I want to run automatically when users visit …

Software Development c#
Member Avatar for skatamatic
0
99
Member Avatar for lelejau

I have already downloaded the latest DX SDK (June 2010) and still, this error remains. error C2065: 'IID_IDirect3D3' : undeclared identifier I already included the headers below but it seems not to work, what am I missing? #include <d3d9.h> #include <ddraw.h>

Software Development c++
Member Avatar for lelejau
0
210
Member Avatar for neveragn

HI, I'm writing a code for the very first time, and I'm completely stuck. Some guidance would be great. I'm writing a C program that reads integars from file "integars.dat". The program should show how many numbers you have entered, how many among them were even, and how many were …

Software Development c file-system
Member Avatar for neveragn
0
139
Member Avatar for ZedChu

Hi, I have stupid question. I have array like this. [CODE]float *numbers[] = {5; 6; 9; 10};[/CODE] I need to use for example float = 5 for arrays numbers[0], numbers[1], numbers[2], numbers[3]. Then array float = 6 for numbers[4] and numbers[5] etc. Hope you undestand. Is there some syntax like …

Software Development c
Member Avatar for WaltP
0
148
Member Avatar for cummings15

I am trying to get my code below to display what high school the students are from from the .txt file the text file below will work but i want to add school to txt file and confused on what to change in my code [QUOTE]Alphy Beta 85 83 77 …

Software Development c++
Member Avatar for raptr_dflo
0
151
Member Avatar for Robert955

Hey, I've stumbled upon a small problem with my game. I have 10 wasps that have some AI, just wandering around and whenever a wasp gets close to the queen wasp it starts chasing it. the queen just wanders around aswell. I can also move with my character and if …

Software Development
Member Avatar for Ketsuekiame
0
182
Member Avatar for mydreamgirl

Xuggle can handle many different video formats. What I am thinking about is to wrap the Xuggle into Swing component, and make a start/pause button and a progress bar on the top of it. Any suggestions? Sample codes would be great. MyDreamGirl

Software Development java java-swing
Member Avatar for mydreamgirl
0
412
Member Avatar for New4lyfe

Consider the following selection statement where X is an integer test score between 0 and 100 Declare X as an integer Write “Please enter a number between 0 and 100.” Input X If (0 <= X and X < 49) Write "You fail" Else If (50 <= X and X …

Software Development algorithm c++
Member Avatar for New4lyfe
0
188
Member Avatar for Majestics

SOrry guys to disturb you all... I just need a little help , can some one please give me a brief introduction to pointer... also i have some question, what does these mean [code] int i; cout<<i (mean to print i) cout<<*i (what does it mean) cout<<**i (what does this …

Software Development c++
Member Avatar for Narue
0
118
Member Avatar for danthevan

Hello, I'm trying to make a chatting app just for educational purposes, to improve my skills and I got a question, or maybe a problem. Look at the Code first: [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* …

Software Development java java-swing oracle
Member Avatar for danthevan
0
162
Member Avatar for Panathinaikos22

Who will spend little time to Create a guide about [code] HWND hw = CreateWindowEx( params ) [/code] in C/C++ That i want is a guide were you will have examples for all controls (Ritchtb, tb, button, tree, nodes, Listview, contextmenu, toolstrip menu, label... etc) PS: as i know CreateWindowEx …

Software Development c++ listview
Member Avatar for Ancient Dragon
0
173
Member Avatar for cypherscouter13

I am trying to create a vector of objects that can have pointers to functions. I would appreciate some help with this as I don't really know what to do [CODE]#include <stdlib.h> #include <windows.h> #include <ctime> #include <cstdlib> #include <iostream> #include <vector> #include <string> using namespace std; class Card { …

Software Development c++
Member Avatar for raptr_dflo
0
224
Member Avatar for dhija22

hi all ! i want to uninstall java java (TM)SE Developement kid 6...so i try to uninstall it but i cant i take a message like this [COLOR="Red"][B]Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. …

Software Development java
Member Avatar for stultuske
0
80
Member Avatar for dandeliondream

Hi, I would like to enquire about web crawler. I have a sch assignment whereby i need to crawl websites but it has to be specific. Display first 10 urls of websites with keyowrds such as IT products around a shopping street/district. I manage to find tutorials to crawl a …

Software Development java open-source
Member Avatar for Taywin
0
128
Member Avatar for ali11

I did it without using GUI because i am not sure how to do in GUI.I need help to put these code in GUI. [code]import java.util.Scanner; import java.util.Stack; /** This calculator uses the reverse polish notation. */ public class Calculator { public static void main(String[] args) { Scanner in = …

Software Development gui java
Member Avatar for stultuske
0
277
Member Avatar for Elmo_loves_you

Hi Guys, Surely this shouldnt be such a complex task! I have done this before for a desktop application where I typed in data on the UI clicked a button and a new text file was created on the C: drive and the data added. Ive been googling and googling …

Software Development
Member Avatar for martinopresnik
0
237
Member Avatar for Damon999

I am writing an audio program in VB.net 2005 and I am having a bit of trouble with WMP. I can get media added to the playlist and I can play it from there, but it doesn't load until I press play, which gives a slight delay while the media …

Software Development audio vb.net
Member Avatar for OwaisKhan772
0
2K
Member Avatar for effBlam

Im trying to change this modified blackjack game to where there is no computer. A choice of either two or three players is asked with three cards dealt instead. How can I i change this current code to 1) prompt user for either 2 or 3 players(no computer), 2) have …

Software Development python
Member Avatar for TrustyTony
0
216
Member Avatar for ultimo1

Hi, as part of my project, i need to write code that actually implements the tcp layer functions. Could anyone tell me where i could get some idea on how to code the functions of tcp layer (i.e. I need to manage the transfer of data between the network and …

Software Development c tcp-udp
Member Avatar for L7Sqr
0
211
Member Avatar for hhagood

Using a Single-Array, create a program that asks the user to input a day of the week, the high temperature, and the low temperature. Calculate the Average High and Low.

Software Development java
Member Avatar for Ezzaral
0
451
Member Avatar for effBlam

Im having a main function issue. My program is a text analyzer of more than several lines and then input 'END' to stop taking input. It analyzes input text based on the chosen options 1 through 2, relooping for invalid choice. Im having an issue having it properly work in …

Software Development programming-construct python
Member Avatar for Greeky
0
224
Member Avatar for dbuckle

Hey guys, I'm just trying to get to grasp with structs and I have written a small test program to print out a persons name and age. Currently I am getting nothing when the program runs. Help :( [CODE]#include <stdio.h> struct person { char *name; int age; }; struct person …

Software Development c
Member Avatar for gerard4143
0
101
Member Avatar for #blessy#

[CODE=c++]#include<iostream> #include<fstream> #include<string> #include<ctime> #include<conio.h> using namespace std; class log_on{ public: void displaylogtime(); }; void log_on::displaylogtime(){ char d [9]; char w [9]; _strdate(d); _strtime(w); cout<<"\nThe current time :"<<w; cout<<"\nThe current Date :"<<d; } class clothes_selector{ string happy; string sick; string confused; string sexy; string grumpy; string winter; string summer; string …

Software Development c++
Member Avatar for MonsieurPointer
0
114
Member Avatar for lovelyrockrchic

I'm trying to make a Tic Tac Toe game for my Java class. I am not able to use JButtons only JPanels. I'm stuck on the part where my program determines if there are 3 x's or o's in a row. [CODE] public void winner() { if(3 = tictactoe[0].turn + …

Software Development gaming java
Member Avatar for hiddepolen
0
278
Member Avatar for cgen

Can someone please help me go over these codes? There are no bugs in all except LinkedListBinary.java and I have no idea why. The lines that are causing me problems are: [CODE] /** Returns an iterator of the elements stored at the nodes */ public Iterator<E> iterator() { Iterable<Position<E>> positions …

Software Development java
Member Avatar for hiddepolen
0
490
Member Avatar for rahman86

i have done my application that uses crystal report and access database. I try to publish the application but when install on client machine, it wont work. the access database wont load and so the reports. What should i do? can anyone help me?

Software Development publishing vb.net
Member Avatar for rahman86
0
151
Member Avatar for Hardosh Kumar

Please Help me to solve that i just wana to search Data feilds from SQL Database and to show on different TExtboxes of VB.net forms..... [CODE] Dim Bio As New DataSet Dim Marks As New DataSet Dim Disp As New SqlDataAdapter Dim Dispp As New SqlDataAdapter Dim Bind As New …

Software Development dataset oop sql vb.net
Member Avatar for Hardosh Kumar
0
262
Member Avatar for ganil_22

Hi, I am new to C# and looking for the below helpful links, which contains 1. All the C# builtin classes and their description Example: string : to perform operations on string Convert : To convert from one type to another type 2. Tutorial on Visual studio development environment 2010 …

Software Development c c# c++ visual-studio
Member Avatar for Mitja Bonca
0
146
Member Avatar for Cifale

I'm querying a SQL DB and sometimes the result is Null, so I thought I would test this but my code results in an error "Data is Null. This method or property cannot be called on Null values." Here is a snipet of my code: For i = 5 To …

Software Development vb.net
Member Avatar for Cifale
0
736
Member Avatar for cgen

Assuming that the values 1 to 7 are equally likely (if chosen randomly): Draw a 7-node binary search tree containing these values that would, on average, give the fewest number of comparisons. I'm not exactly sure how to answer this question

Software Development java
Member Avatar for Taywin
0
326
Member Avatar for drogba123

Hi, Anyone know what is the math for manhattan distance vs travelling distance? and which one is faster? thanks. Regards, Anthony

Software Development java
Member Avatar for Taywin
0
102
Member Avatar for nchy13

[COLOR="Red"][B]this is what compiler shows[/B][/COLOR] tree.cpp: In member function ‘void redblacktree<T>::insert(T) [with T = int]’: tree.cpp:187:12: instantiated from here tree.cpp:103:9: error: lvalue required as left operand of assignment tree.cpp:140:9: error: lvalue required as left operand of assignment [COLOR="Red"][B]if u don't want 2 go thru' d code then kindly just tell …

Software Development c++
Member Avatar for Narue
0
577
Member Avatar for conan19870619

it's classic traveling salesman problem using dynamic programming. the peseudocode is given : Inputs: a weighted, directed graph, and n, the number of vertices in the graph. The graph is represented by a two-dimensional array W, which has both its rows and columns indexed from 1 to n, where W …

Software Development c++
Member Avatar for XDenasdc
0
688
Member Avatar for quartaela

hi there i am working on a memory game project and my main problem is when i start the game user must not see the icons of buttons, when he/she press on a button then the i con should reveal, but some methods like [CODE].setPressedIcon()[/CODE], [CODE].setRollOverIcon()[/CODE] dont work if i …

Software Development gui java java-swing
Member Avatar for mKorbel
0
292
Member Avatar for circles

Hi, I'll preface this by saying I am about as beginner as it gets (the "installed compiler on saturday, open first book saturday night" kind of beginner) Basically, I have a small program that reads the current directory for any file with ".txt" and then opens and scans those files …

Software Development c++
Member Avatar for circles
0
205
Member Avatar for Mafia_ir

[COLOR="Green"]Hi there ,[/COLOR] i created a music player with c# , but i have two problems : [LIST=1] [*]If you attention to music files they have a picture (for example : picture of its singer ) how can i access to this image in my app and how can i …

Software Development
Member Avatar for charlybones
0
215
Member Avatar for mihirpatel12

Hey guys .. i want to insert data into data base from my combobox, which parameter should i use in insert query ? example.. insert into login values ('"+ComboBox1. ?????? +"') Thank You in advance

Software Development vb.net
Member Avatar for roottybrian
0
112

The End.