64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Zabzacon

Okay, so I am trying to make a game much like an old game called "Chip's Challenge". Right now I have a square that I can control with the arrow keys but I'm not sure how to make a wall that cannot be passed through, could anyone help me?

Member Avatar for Zabzacon
0
157
Member Avatar for lgonzo

am newb in c++ trying to write simple c++ program that a computer, try to guess a number i have chosen by it producing rand number and me telling me whether it is to low, high, or right and using do while loops we are suppose to produce it now …

Member Avatar for lgonzo
0
2K
Member Avatar for vandadm

Hello, I'm working on an assignment for class, in which: 1) I need to display a menu for fruit selection. 2) After selection is made, program asks for quantity (double). 3) Program should enter selection in class array (this seems fine). Where I'm having the problem is in the do …

Member Avatar for vandadm
0
114
Member Avatar for DaveTran

I'm currently using the following for counting forwards and backwards through an array depending on the current index. If the index increments past the end of the array it now decrements and vice versa. [CODE] isReversed = isReversed ? index - 1 != -1 : index + 1 == array.Length; …

Member Avatar for DaveTran
0
100
Member Avatar for CrankyMero

Hello Everyone Im having kind of trouble looking for this info, but i created a POS program that when i install it, it install under Local Settings\Apps\2.0\blabla So what i want to know if how can i make my system install like any other program, "Under Program Files/POSystem/" like so …

Member Avatar for CrankyMero
0
121
Member Avatar for guest11

hi all, I am using crystal report for displaying reports. I want to display group by customers in report that i am displaying using group by funtion but i also want subtotal of that group by customers. I want to display received amt date, received amt and balance amout between …

Member Avatar for ahmedtohamy
0
134
Member Avatar for runge_kutta

Hello, I am new to the programming game and have a question for you seasoned veterans: I have a data collection device whose API is c++ based. When I want to write a program whose first step is to initialize the system, I write "InitializeSystem(); " In a C++ IDE …

Member Avatar for runge_kutta
0
2K
Member Avatar for Archenemie

Im trying to call the two functions from the numbers class but it returns an error even tho i believe i have coded it correctly. i have played with the code but cant seem to get it working. [CODE] class main(): num1 = input("please enter a number") num2 = input("please …

Member Avatar for Archenemie
0
180
Member Avatar for becool007

Hey so my project is an Average Calculator to calculate the average of a set of numbers. Anyways, I must make it in a GUI and I have chosen Win32. My problem now resides while trying to do the following: - When there is a paint request, to paint anything. …

Member Avatar for becool007
0
182
Member Avatar for vidit_X

I'm a lot confused with multi-dimensional arrays and pointers. I tried searching, found and read some articles. But there are still some doubts. We can not use a double pointer(int **) for a two dimensional array, right? Instead we need to have an array of pointers with the length equal …

Member Avatar for vidit_X
0
178
Member Avatar for lancevo3

Hey guys I am writing my first program ever in java starting tonight and all has actually gone smooth which has been a surprise but I have run into a problem with an if else area. Basically, what I am suppose to be doing in this section is the user …

Member Avatar for lancevo3
0
144
Member Avatar for justinclev

well im trying to create a notepad in the win32 Api with C++ and at the moment im trying to set up the Open and Save As dialogs but the open Dialog works and the Save As doesn't, yet when i comment out the Open Dialog the Save Dialog works …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for ROSS679

Hi Everyone I have been hard at work on this Java program involving bicycle gears, one of the problems is the while loop, should a user enter a negative number in the inputs then i want the user to re enter it until a positive number comes up however the …

Member Avatar for ROSS679
0
195
Member Avatar for GAME

Hello, I need some help getting started with saving all the items in a listview with a savefiledailog. The items in the list look like this IP , port. The IP and port are in different columns. The IP is in the first column and the IP is in the …

Member Avatar for Mitja Bonca
0
970
Member Avatar for Mr.BunyRabit
Member Avatar for stroper

hy everyone, I have a problem, I am making a little program for a game; When I start my game the timer has to start counting and after 3 minutes the game has to stop. I need to know a way to program a very simple counter/timer in order to …

Member Avatar for mangopearapples
0
310
Member Avatar for stroper

Hye everyone, I am trying to make a 2d-char array, fill it with random letters(chars) and print it. If I do it like this I get a ArrayIndexOutOfBoundsException: 0. I am a newbee. I import my prefs(width, height) from static getters in the class preferences. Can anyone help me please? …

Member Avatar for stroper
0
472
Member Avatar for GDICommander

Hello! I need help to construct a regular expression in Python that will help me get the file name of a include directive in C++. I think that regular expressions are a good way to solve this problem, but I'm open to new ideas. Consider these following includes: [CODE] #include …

Member Avatar for GDICommander
0
315
Member Avatar for clairvoyance

Hello, I have a to make a class called fibonacci. This is what is given to us : fibonacci(0)=1 fibonacci(1)=1 fibonacci(n)= fibonacci(n-­1)+fibonacci(n–2) Below is an example of running the fibonacci class as an input of 6. The output is: fibo(0)=1 fibo(1)=1 fibo(2)=2 fibo(3)=3 fibo(4)=5 fibo(5)=8 fibo(6)=13 [B]My code is:[/B] [CODE] …

Member Avatar for -ordi-
0
192
Member Avatar for Tellalca

Hey; In my application I want to count number of seconds while the application is waiting for the user input. I think I should use another thread but I never worked with multithreading. Is there an easier way ?

Member Avatar for rohand
0
629
Member Avatar for changeco

I have the following code in my xsl file... [code]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€"> <!ENTITY amp "&"> ]> <xsl:stylesheet …

Member Avatar for changeco
0
380
Member Avatar for dos_killer

hello im new to linux programming and i am experiencing a bit of diffuclty with pthreads...basically the pthread_create() function in my code below i tend to pass an integer variable as the argument for my runner() function but i get a warning and an error..i have tried several ways of …

Member Avatar for gerard4143
0
770
Member Avatar for Ignatius88

[CODE]UPDATE movie_temp SET movie_release_year = ( substring_index(movie_title,')',1) ) WHERE movie_title IN (SELECT * FROM (SELECT movie_title FROM movie_temp) AS TEMP); [/CODE] When executing the above query (movie_temp table has more than 660,000 rows), after 600 seconds workbench throws me errors Error Code: 2013Lost connection to MySQL server during query followed …

Member Avatar for drjohn
0
174
Member Avatar for Pgmer

Hi All, I have checkedlistbox on my windows form which is binded to datasource, I do check the items in checkedlistbox based on some criteria, When user uncheck some items I want to save the records, but in Checked Items collection still I’m getting items as checked, which are unchecked. …

Member Avatar for Pgmer
0
134
Member Avatar for smd5049

Hello, I'm new to vb.net. I have successfully run a simple sql query in vb.net and basically wanted to know how I can export the results from the query to a .txt file? All I really know is that I should be using StreamWriter. Does anyone have suggestions for sending, …

Member Avatar for Satyam Kr. Jha
0
1K
Member Avatar for Acute

Hi everybody, I have a js(using jQuery lib) file where all events and following actions(functions) are written. For one of such events there is a function that prepends one more similar element from which prepending was called: $("[COLOR="Red"][B]#id1[/B][/COLOR]").click(function(){ $(...).before("<div [B][COLOR="Red"]id='id1'[/COLOR][/B]></div>"); }); so that when I will click to just prepended …

Member Avatar for Acute
0
83
Member Avatar for fugmag

[CODE]import os import fnmatch for l in os.listdir("C:\Bilder"): if fnmatch.fnmatch(l, 'IMG*'): l.replace(l, "HH") print l[/CODE] I am trying soemthing like this, but it is not working. Can anybody help me? Cheers

Member Avatar for fugmag
0
175
Member Avatar for TailsTheFox

Hello, I am wondering how you read input from a text box in microsoft visual studio Forms. I'm trying to make a program that reads text box data and tells you the readout, but I don't know what to type to return the data typed in a text box. Please …

Member Avatar for TailsTheFox
0
112
Member Avatar for Vallnerik25

I have some questions about the logical not operator in C++ and Visual C++. I have posted another question relating to the logical not operator. I just can't seem to wrap my head around the uses of this operator. From what I have read so far the logical not operator …

Member Avatar for pkunzip1234
0
233
Member Avatar for jshoot

Hi everyone! I'm triyng to develop a program whith this functions: 1 - Read data from text file 2 - Put the data from file to a variable(ignoring comments in the file) 3 - Tokenize the data e transform the variable into another variable(like float) 4 - Make the calcs …

Member Avatar for jshoot
0
610
Member Avatar for Tellalca

Hey; I want to store string, ConsoleColor pairs like [CODE]dataStructure.Add(new KeyValuePair<string, ConsoleColor>("Red", ConsoleColor.Red))[/CODE] I tried List but it did not seem to work; [CODE] List<KeyValuePair<string, ConsoleColor>> colorList; colorList.Add(new KeyValuePair<string, ConsoleColor>("Red", ConsoleColor.Red)); colorList.Add(new KeyValuePair<string, ConsoleColor>("Yellow", ConsoleColor.Yellow)); colorList.Add(new KeyValuePair<string, ConsoleColor>("Green", ConsoleColor.Green)); colorList.Add(new KeyValuePair<string, ConsoleColor>("Blue", ConsoleColor.Blue)); colorList.Add(new KeyValuePair<string, ConsoleColor>("White", ConsoleColor.White));[/CODE] with the error …

Member Avatar for Ketsuekiame
0
111
Member Avatar for Korenai

good day, im practicing databases and .net, can you help me in relating multiple tables and manipulating a listview? my scenario is about school subjects of a student, i have a database with data that has 2 tables, which is 'fnsh_table' and 'ofrd_subjects' fnsh_table Student_No nchar(4) Subj_No nvarchar(10) Title nvarchar(20) …

Member Avatar for smantscheff
0
125
Member Avatar for becool007

Hello, So I am using microsoft visual C++ 2010 and I was wondering is there a way to avoid using .NET implementations? If so, what would I need to do and what are the drawbacks. Thanks

Member Avatar for jonsca
0
117
Member Avatar for virusisfound

I want to display my table columns and data in datagridview at run time when user select table name I know that i have to set bindingsourse property . But i dont know how to do programming for that can you tell me.

Member Avatar for virusisfound
0
266
Member Avatar for stephy1
Member Avatar for masijade
0
54
Member Avatar for shakssage

Hello. I'm not really sure on how to explain the problem, but here goes. I'm creating a Traffic Simulator of a cross junction. I currently have car objects moving, with working traffic lights. I created a variable array for the car class which creates several car objects. Then the lane …

Member Avatar for shivam7
0
252
Member Avatar for loungeowl

[CODE]<?php // Using hooks is absolutely the smartest, most bulletproof way to implement things like plugins, // custom design elements, and ads. You can add your hook calls below, and they should take the // following form: // add_action('thesis_hook_name', 'function_name'); // The function you name above will run at the …

Member Avatar for loungeowl
0
291
Member Avatar for singhabsk

Good morning all, i have a text file contains following data..... sec TID ATTRIBUTE 69013 1-3039-1 REGISTER 69013 1-3039-1 100 69013 1-3039-1 401 69013 1-3039-2 REGISTER 69013 1-3039-2 100 69013 2-3039-1 REGISTER 69013 3-3039-1 REGISTER 69013 4-3039-1 REGISTER 69013 1-3039-2 200 69013 2-3039-1 100 69013 2-3039-1 401 .................. .................. 69023 …

Member Avatar for singhabsk
0
171
Member Avatar for deanus

Hi, Can private static data members of a class be accessed through non-static methods of that class? I'm asking this (dumb) question because on a C++ book I've read that a class's static data members can only be accessed through a static function, but when I tried doing it with …

Member Avatar for deanus
0
177
Member Avatar for stephy1

i have a codelike this: [CODE] do { int i; }while(i!=0); [/CODE] Shows error "Cannot find symbol i"

Member Avatar for masijade
0
110
Member Avatar for harshInITworld

I m developing module in my eclipse IDE, I have designed a web page using JSP and Hibernate concepts where in i have to enter required details and after clicking on submit button they are directly entered into database. this part is done successfully but the only problem is when …

Member Avatar for harshInITworld
0
111
Member Avatar for abu taher

A text box show current date(like 24-03-2009). I write in other textbox 3. I want when I write 3 then the textbox (24-03-2009) automatically increase month like 24-06-2009. how it possible?

Member Avatar for abu taher
0
109
Member Avatar for toocoded

Hi All, I have a problem and I dont understand what's happening, because my method usually works. I am querying a bunch of records from a database given a foreign key id. See code as follows [CODE] $castQuery = "SELECT * FROM cast WHERE production_id = '$newID' "; $cresult = …

Member Avatar for toocoded
0
160
Member Avatar for rhinocort23

ok... i know a lot of you are probably tired of me asking questions but i am trying to learn and i am asking about stuff i dont know, not just to get you to do the whole program for me. this question is if there is a list of …

Member Avatar for Jim2011
0
134
Member Avatar for Mayank23

can someone help me, each time i send my friend a program he says tht the windows goes away once he enters something. please help.

Member Avatar for Nandomo
0
145
Member Avatar for pseudorandom21

How are iterators used in C# ? suppose I have say: [code] List<int> someList = new List<int>(); /* assume some items are added here */ /* and now I wonder if C++ style iterators are available? */ for( var i = /* iterator begin of list */ ; i != …

Member Avatar for kvprajapati
0
117
Member Avatar for ThatGuy2244

I have read about how multicore processing works of the Intel. The manual that I read had left out a part that would of been useful how to actually use multiple cores. It just explained how all the different parts of the CPUs interact with each other, so could someone …

Member Avatar for GunnerInc
0
581
Member Avatar for becool007

Hey daniweb forums, Okay so my question is, what is the difference between VC++ (visual C++) and C++ with any other IDE (or none at all). I know for a fact that VC++ is an IDE but according to some people that I have met. They say, stay away from …

Member Avatar for becool007
0
271
Member Avatar for skips

I am not looking for an explicit answer to this question, and I have googled/searched this site for hours trying to find an example to work off of. What I can't figure out is how to write a nested "for loop" that will allow the user to input one number …

Member Avatar for skips
0
144
Member Avatar for jemz

Hell can you help me on this,how can i insert a new node in the binary tree and to keep track the current node example: input number: 50 Succesfully inserted! input number:40 this will print "inserted at the left of 50" input numbr: 80 this will print "inserted at the …

Member Avatar for jemz
0
284

The End.