43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for 2Dcube

Hello, I have to make a small game in C++ as a school project. Now, although I've made many 2D games before I'm very new to C++, and I ran into a few problems. One: I need dynamic key input. I now use getch() and it makes the program wait …

Software Development c++
Member Avatar for WaltP
0
2K
Member Avatar for goluman

I am a beginner in openCV and C++ as well.I am stuck in a particular place while trying to implement face recognition in open cv. I have the stored training images in a folder called data the images of first person is stored like 1_john1.pgm 2nd image of first person …

Software Development algorithm c++ image
Member Avatar for goluman
0
1K
Member Avatar for Mahkoe

I've been coding in c++ for a while now, and I use string variables quite a lot. One day, I stumbled upon a char* which can also be used to "store" a string of characters, and it's been bothering me ever since that I don't really know what a string …

Software Development c++
Member Avatar for Mahkoe
0
183
Member Avatar for shibunath

set path=%path%;C:\python27 where does this code go? please explain in detail?

Software Development python
Member Avatar for Purkinje
0
2K
Member Avatar for arlir

Hi guys, A good day to you all! I am trying to bulid a simple data base but two errors at compile time apparently are holding me back from running my program. I have tried to figure them out but my efforts are are proving worthless and that's why am …

Software Development c data-structure
Member Avatar for muktigeek
0
234
Member Avatar for techlawsam

Hi Im a beginner in programming C# while watching this tutorial on C# (writing a console application) the guy skipped over a couple segments in between parts of code. Where he was doing "if" statements of " if (input3 == "n" (vertical lines here) input3 == "n"). Im wondering how …

Software Development c# visual-studio
Member Avatar for techlawsam
0
2K
Member Avatar for Xufyan

here why should we have to write [B]c=1[/B] ?? i couldn't understand the logic of writing c=1 :s... please just explain the logic [CODE]void main(void) { int a,b,c=1; a=5; for ( b=a; b>0; b--) { c*=b; } printf ("The Factorial of %d is %d\n",a,c); getch(); }[/CODE]

Software Development c c# c++
Member Avatar for muktigeek
0
652
Member Avatar for creative_m

I want to define a vector of TextBox (or any compnents) in VC++ project (windows form). I wrote : [code] std:vector <TextBox^> txt_box; // //then I push the elements back in the vector using txt_box.push_back (textbox1) // //... // for all the text_boxs in my form [/code] but this code …

Software Development c++
Member Avatar for Ancient Dragon
0
292
Member Avatar for DragonSlayerX

[CODE]from gasp import * begin_graphics() Circle((200, 200), 60) Line((100, 400), (580, 200)) Box((400, 350), 120, 100) update_when('key_pressed') end_graphics() [/CODE]

Software Development python
Member Avatar for DragonSlayerX
0
104
Member Avatar for Kerlix

I've found a simple timer program and it seems to work (for the most part). The problem is that certain cout functions aren't showing up. The timer originally didn't include milliseconds in the code, so I added them myself (which could be the problem) based on the code for the …

Software Development c++ perl
Member Avatar for Kerlix
0
291
Member Avatar for VernonDozier

As far as I can tell, this is safe. It prints "Should Get Here" and nothing else, as expected and desired. In real life, CantGetHere is a function that actually IS called and does some arithmetic. To avoid a seg fault in line 14, I have a NULL pointer check …

Software Development c
Member Avatar for VernonDozier
0
182
Member Avatar for darkelflemurian

Hello everyone: The problems is the following. I'm creating an specific program to upload to FTP on C#. That works perfectly. My problem is that i want to give the user the ability to change folders but so far I don't seem to find anything over the internet. Can someone …

Software Development
Member Avatar for Momerath
0
127
Member Avatar for MareoRaft

1. In a for or while loop, if the condition is breached in the middle of the brackets {}, will the code immediately stop the loop, or wait until it gets to the bottom of the brackets {} ? 2. If a function is called in my code, does the …

Software Development c++
Member Avatar for svilla
0
98
Member Avatar for zachattack05

So I'm plugging away at my database design and get to a point where I need to work on the UX (or UI for you old[er] peeps). I have a guide from Microsoft that I refer to very often called the UX Guide. I have all of my forms setup …

Software Development database-design ui-ux
Member Avatar for zachattack05
0
312
Member Avatar for ericfrank

I am trying to write a sample program that can call use the main method of "SequenceFilesFromDirectory", which aims to convert a set of files into sequence file format. [CODE]public class TestSequenceFileConverter { public static void main(String args[]){ String inputDir = "inputDir"; String outputDir = "outoutDir"; SequenceFilesFromDirectory.main(new String[] {"--input", inputDir.toString(), …

Software Development apache api java
Member Avatar for NormR1
0
197
Member Avatar for C#Jonathan

I'm working on some C# code. It's not as readable as it could be because of the formatting used. Is anyone aware of any good code beautifiers that work well and adheres to industry standards? Interested in free ones too - if available

Software Development c c# c++
Member Avatar for ddanbe
0
193
Member Avatar for aman rathi

Hello everyone first of all thanks to daniweb and all users to help me lots of time. now come to problem i am learning java from last one month today i wrote a program to swap two objects it is running but not performing desired task. all instance fields are …

Software Development java
Member Avatar for aman rathi
0
242
Member Avatar for Netcode

Hi Everyone I want every single operation carried out on my application from signing in to signing out written to a text file and the operations would have a timestamp for each corresponding operation. How do i go about this, i have no single idea at all. Thanks

Software Development vb.net
Member Avatar for Reverend Jim
-1
105
Member Avatar for Aviras

Hello everyone. I just started on 'converting' my multiplayer text RPG into a graphical form. What I am trying to do is this: Create a title window, basicly just a JPanel with one image filling the space. To this JPanel I add a MouseListener. When a user clicks the window …

Software Development image java java-swing
Member Avatar for Aviras
0
424
Member Avatar for wouterkind

I have a similar issue (somewhat) -- VB6 and Access97 My code in Option Explicit is [CODE]Dim dbs2 As Database[/CODE] In the Private Sub Form_Load(), I have [CODE]Set dbs2 = OpenDatabase("C:\Program Files\members\members.mdb",True,False)[/CODE] The Run Time Error I get is: Couldn't find file 'C:\Program Files\Members\Members.mdb'. In the Debug: When the cursor …

Software Development visual-basic
Member Avatar for wouterkind
-1
136
Member Avatar for Prankmore

[code = c][/code] I am trying to write a program that takes a 10 digit phone number and inserts hyphens between the 3rd and 4th digit and the 6th and 7th digit eg. Enter phone number: 5553459875 Your number is 555-345-9876 I've decided that reading the number as an integer …

Software Development c
Member Avatar for Prankmore
0
354
Member Avatar for deliezer

Hi I am trying to write something that compiles and runs correctly on both Linux and Windows. I am running bash in Ubuntu on Linux, and I try to set environment variables in the makefile just before the compile lines. I then write something in the code like [CODE] int …

Software Development c++ ubuntu
Member Avatar for deliezer
0
2K
Member Avatar for JoshuaBurleson

I am having issues finding a way to have the below program search for any given string of "query" in the keys of the dictionary AB and return the value, or the key and value. Thus far I just done what I have preset in the dictionary; Ashley and Joshua, …

Software Development python seo
Member Avatar for JoshuaBurleson
0
300
Member Avatar for bluehangook629

I need help with managing my forms. below is a sample code for one of my button that opens a new form on button click. But today while I was testing the application, I found out that everytime I have button click, I get a new instance of the same …

Software Development vb.net
Member Avatar for bluehangook629
0
138
Member Avatar for fonzali

hi guys , I rented a gps from the airport and it had no problem giving me the directions , while using it , I kept wondering how it picks the routes , and can python be used to program these devices and how ? a short code would be …

Software Development python
Member Avatar for fonzali
0
94
Member Avatar for Muralidharan.E

Hi friends If we will override nonstatic methods or if we will overload non static methods means shall we say it is the run time polymorphism? Is that so how to give example for compile time polymorphism in java? If i will override static method means, friends are saying it …

Software Development java
Member Avatar for Zetlin
0
271
Member Avatar for rotten69

Hey everyone, my if-statements are working as expected. Actually, they are not working at all. The syntax is right but they are never run. The program terminates before it runs them. [code] public static void main (String args[]){ Scanner input = new Scanner(System.in); Display fName = new Display(); // creating …

Software Development java
Member Avatar for aman rathi
0
133
Member Avatar for exicar

Hello, I´m currently developing an application which sends data to my Windows server. I already wrote the following code (server-side) [CODE]namespace server { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); Server s = new Server(3000); s.ExceptionReceived += new Server.ExceptionReceivedHandler(s_ExceptionReceived); } void s_ExceptionReceived(exception e) { MessageBox.Show(string.Format("DateTime: {0} …

Software Development client-server tcp-udp windows-server
Member Avatar for exicar
0
358
Member Avatar for coroll

Hi all, I want to understand the purpose of .resx file. i konw that Designer.cs is the class for the form. i read that .resx stores resources. 1. But what kind of resorces? 2. where is it used in the form? 3 when i opend it shows only "String1". Why? …

Software Development
Member Avatar for darkagn
0
137
Member Avatar for lrh9

I'm working on a project where I would like to compare collections of words, but I have additional constraints I need to account for. The collections are like a set in that order doesn't matter for the comparison. However, in my problem equal elements are significant. E.g. the collection of …

Software Development python
Member Avatar for TrustyTony
0
141
Member Avatar for Oneryavuz

[CODE] Public Sub imageload(ByVal index As Integer, ByRef imagedescription() As String) Dim da As New OleDbDataAdapter("Select Foto From Images where Photoindex = " & index & ";", Form1.baglanti) Dim dt As New DataTable Dim ms As New MemoryStream da.Fill(dt) If dt.Rows.Count > 0 Then Dim arrimage() As Byte = dt.Rows(0).Item(0) …

Software Development image vb.net
Member Avatar for Netcode
0
2K
Member Avatar for coroll

Hi all, when i execute it gives me this exception. I am trying but i coudnt slove. Plz help me. InvalidOperationException ExecuteNonQuery requires an open and available Connection. The connection's current state is closed. it points to this line -> "int executed = com.ExecuteNonQuery();" this is my code: [CODE] try …

Software Development
Member Avatar for coroll
0
162
Member Avatar for Angle90

Hello everyone, I need help here, using C# 2008 Express i created a mini internet browser that runs perfectly, but i want the mini browser when launched to load a local .html file "welcome.html", so far no joy, can anyone put me through please, I just want a mini browser …

Software Development c c# c++
Member Avatar for Angle90
0
111
Member Avatar for mrbungle

I'm having a hard time understanding this. I get what multithreading is- allowing a program to run more than one thread to improve performance, by splitting up some of it's resources. So I'm at the point in my app where I need to use it. I need to upload some …

Software Development multithreading vb.net
Member Avatar for codeorder
0
159
Member Avatar for MareoRaft

when I... [CODE]double a = 0.00000001; cout<< a <<endl;[/CODE] The computer outputs 1e-07. I want to force the computer to write it as 0.00000001 thanks! ;)

Software Development c++
Member Avatar for MareoRaft
0
201
Member Avatar for rooneey10

Hi I'm trying to read a text file by use a array for an interactive map. In the text file I stored shop names such as: Label2.Tag = "test" Label3.Tag = "House" When I hover over a label it will display the name in another label such as "lblShowName". So …

Software Development file-system vb.net
Member Avatar for codeorder
0
105
Member Avatar for mikefromchitown

Hi, I'm trying to use a variable to import a text file. Is it possible to change the path and filename below to a variable? I would like to change "L:\GEAM Data.txt" to a variable "fname", which a user previously entered using Application.GetOpenFilename. [CODE]With ActiveSheet.QueryTables.Add _ (Connection:="TEXT;L:\GEAM Data.txt", _ Destination:=Range("A1"))[/CODE] …

Software Development visual-basic
Member Avatar for ibancracker74
0
126
Member Avatar for pro_learner

Guys,i have to develop a simulator for Merge sort algo in java.I'm familiar with Java.But i have no idea how to do that.Java applet is easy? or it can be done as a Desktop app.My idea is to do as a desktop application.The programme should allow user to input a …

Software Development algorithm java
Member Avatar for pro_learner
0
167
Member Avatar for james6754

Hello, I am looking for some information about how high level languages communicate with the lower levels of the computer. Hope this makes sense thanks.

Software Development
Member Avatar for james6754
0
238
Member Avatar for sathya88

hi... am develop simulator project...using java (java run time environment) for that can use applet method or java gui frame method.. suggest me..

Software Development gui java
Member Avatar for sathya88
0
217
Member Avatar for zachattack05

When I need to serialize things to a byte array I usually write the array to a MemoryStream first then use the binary formatter to serialize it to whatever (file, another byte array whatever). The question I had was, can I just serialize a byte array instead of converting it …

Software Development file-stream
Member Avatar for zachattack05
0
108
Member Avatar for Man1919

hi, i'm starting to learn vb.net, and i trying to make some special translating program, its need to translate hebrew text into special letter sequence. for example: the text input are: [ICODE]בניית ביניינים מתקדמים[/ICODE] (which its means [ICODE]Construction of advanced buildings[/ICODE]) And the text output are: [ICODE]BPJJZ_BJPJJPJM_NZWDNJM[/ICODE] according to the …

Software Development vb.net
Member Avatar for Man1919
0
438
Member Avatar for Na'Vi

Hi, I'm having trouble understanding pointers and arrays. [CODE] course[] = "Numerical Methods"; printf("%c %s\n", course[6], course); printf("%c %s\n", course[6], &course[0]); [/CODE] I don't understand how the second print statement prints the same thing as the first. How does &course[0] print out the entire array? I thought it was just …

Software Development c
Member Avatar for Narue
0
81
Member Avatar for unaiseek

[code=sql] select accno.tbaccession,classno.tbaccession,bookno.tbaccession,title.tbaccession,author1.tbaccession,status.tb_issue from tbaccession cross join tb_issue where title.tbaccession = '" & Trim(ListBox1.Text) & "';[/code] this code does not work, pls help

Software Development vb.net
Member Avatar for debasisdas
0
101
Member Avatar for nji2rhyme

Hi, I have a code which runs a check. User inputs values into textboxes in inputform, then runs the check, and the msgbox is displayed. if msg is yes then program continues, else I want it to return to the input for to change values in textboxes. How can I …

Software Development vb.net
Member Avatar for Netcode
0
94
Member Avatar for miac09

Hi, I have posted an example code to report overlaps between segments in two lists based on their start and end coordinates. The problem is that the while loop is breaking after 'True' and won't iterate through the lists. So, in the example lists it will only return (True, 0, …

Software Development python
Member Avatar for TrustyTony
-1
228
Member Avatar for aldeene
Member Avatar for aldeene
0
238
Member Avatar for Purkinje

I have a question about function-based decorators. When I make the first call to sqrt(), I enter the decorator function, which I understand. However, every subsequent call to sqrt() only calls the temp_func, not the actual decorator again. I thought decorators were called every time the method is called, but …

Software Development python
Member Avatar for Purkinje
0
195
Member Avatar for suraj_p

When i run this program it takes more values and prints less values.... this runs on Dev C++([url]www.bloodshed.net[/url]) [CODE]#include<iostream> using namespace std; #include<conio.h> int main() { int arr[5][5],i,j,k,l; cout<<"Enter matrix row wise"; for(i=0;i<=3;i++) { for(j=0;j<3;j++) { cin>>arr[i][j]; } } for(k=0;k<3;k++) { for(l=0;l<3;l++) { cout<<" "<<arr[k][l]; } printf("\n"); } getch(); } …

Software Development c++ matrix-multiplication
Member Avatar for suraj_p
0
179
Member Avatar for ramjeev
Member Avatar for kk sharma
0
276

The End.