43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tapananand

I Just wanna know what happens if we try to do the following in C++: `"abc"+'d'` i.e what happens if we concatenate a character to a C-string.

Software Development c++
Member Avatar for deceptikon
0
777
Member Avatar for Karlwakim

Hi, I've been learning c++ for a few months on a windows os. (Not using the API) And im building a new computer soon. I will install Backtrack at first, then win if I need it. My goal is to become a professional developer (I will most likely write code …

Software Development api c++ ide unix windows-api
Member Avatar for Karlwakim
0
265
Member Avatar for myadav

Hi Everyone I want to make my code run from command prompt I am using window 7 and JDK 6 Following are steps I did: 1) Created a Text file Example.txt. Changed the file extension to Example.java and placed it under C:\myWork 2) Open command prompt type 'dir' to see …

Software Development java
Member Avatar for NP-complete
0
341
Member Avatar for calder.hutchins

So i have looked in this forum and grabbed a piece of code that let me encrypt text using a cypher. I have changed it so that you can input your own text to be encrypted and a little more. I am 15 and this is my 2nd day learning …

Software Development python
Member Avatar for calder.hutchins
0
155
Member Avatar for waleed.makarem

Dear Experts, I have one simple question , and forgive me , I know it is simple , but I am very bad in regular expression. I have a text which represent time interval , eg [1-5] , ie , the start time is at 1 and ends at 5 …

Software Development regex vb.net
Member Avatar for Reverend Jim
0
719
Member Avatar for vickim360

Hello. I have been having trouble with this pygame program. I am trying to imitate a wind turbine. However, when I run the command, it returns with a blank black screen with a square. What is wrong?? Here's the program: import pygame ############################################# # Written by P****** ******* and V***** …

Software Development gui python
Member Avatar for vickim360
0
243
Member Avatar for Dili1234

Why This error is coming................... There is already an open datareader is associated with this command which must be closed Private Sub AppendItem(ByVal Productid As String, ByVal quantity As Integer) productid1 = Productid myConnection = New SqlConnection(connectionstring) myConnection.Open() Dim TempData As New DataTable Dim pid As String = ComboBox1.SelectedItem myCommand1 …

Software Development vb.net
Member Avatar for Dili1234
0
179
Member Avatar for AngelicOne

I tried [CODE]If (checkedListBox1.SelectedItem.ToString() == "Others") { //do something }[/CODE] but it's not working the way I wanted to.. Whenever the 'Others' item is checked, the code executes but if I tried to uncheck it, it still execute the code as if it runs when that item is selected checked …

Software Development
Member Avatar for 3004426279
0
5K
Member Avatar for Kareem Klas

Dear members, In a previous post I got useful tips to study C++ for game programming. I was using bloodshed Dev c++, but it had too many bugs. Now I use visual studio express 2010. But I can't get along with it. In bloodshed you had a blanco "page" and …

Software Development open-source visual-studio
Member Avatar for Kareem Klas
0
203
Member Avatar for scetian

Dear Friends, i need the code for Digital Clock using 8086 in assembly language.. please help me.. i know nothing about assembly.. Please help me somebody i have found a code but its not working properly. please let me know if you want to explain the code, i'll provide it.. …

Software Development assembly
0
256
Member Avatar for mumaga

Hi! I have a super class called character, subclass player. when i compile, i get this error: constructor Room in class Room cannot be applied to given types; from this bit of code in Character: public Character(Room room, String name) this.name=name; currentRoom = room; Room currentRoom = new Room(); // …

Software Development java oop
Member Avatar for mumaga
0
269
Member Avatar for rogerg

Hello, I'm doing some word counts in Perl and have a problem with the following one. I want to use two subroutines count and show and do a word count on two lines of an array at the same time I've got two problems with it. 1) when using print …

Software Development perl
Member Avatar for 2teez
0
458
Member Avatar for triumphost

This may be a long post but I really need to know how to Convert between the two image formats and amonst themselves as well. Here goes: I have a struct like the one below that holds all pixel information: typedef union RGB { uint32_t Color; struct { unsigned char …

Software Development c++ data-structure ios
0
339
Member Avatar for Kareem Klas

Dear members I'm wondering about what would be a good book to study C++ game programming. I have a pdf of Beginning C++ game programming by Michael Dawson. Now I want to buy one, but I don't know if there is an better one than this one. Kareem Klas

Software Development c++ pdf
Member Avatar for <M/>
0
325
Member Avatar for Eyeteeorg

I have a simple html webpage currently implemented, and my Firefox web console has the following complaint about it when loaded remotely: [13:08:03.588] The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from …

Software Development html-css web-browser
Member Avatar for Eyeteeorg
0
126
Member Avatar for mumaga

Hi, I am working on the World of Zuul. I am adding the take item command, when I envoke it, the output prints twice! The main class is Game, this is the take method. public void takeItem(Command command) ( if (!command.hasSecondWord())( // if there is no second word, we dont …

Software Development java
Member Avatar for mumaga
0
121
Member Avatar for vishalonne

Hello I can't understand why 1st cin for Enter Name is skipped out of 3 cin statements in getData function in Teachers class other 2 cin statements are accepting input- Here is code - #include <iostream.h> #include <stdio.h> #include <conio.h> #include <string.h> class Teachers { private: char staff[20]; char post[20]; …

Software Development c++
Member Avatar for vishalonne
0
147
Member Avatar for vishalonne

Hello I am trying to pass a array of object to a member function of that class but not successfull. I gone throgh lots of article and document also follow this thread in Daniweb [Click Here](http://www.daniweb.com/software-development/cpp/threads/2771/passing-arrays-of-objects-to-functions) This thread is good to understand how to pass an array of object to …

Software Development c++
Member Avatar for vishalonne
0
755
Member Avatar for Lethugs

Hi, I have done my vb.net application and ready for deployment, my database is located somewhere in my drive c:, i used this code to get connection string from app.config Public Sub main() constr = System.Configuration.ConfigurationManager.ConnectionStrings("WindowsApplication7.My.MySettings.nameConnectionString").ToString Con = New SqlConnection(constr) Try Con.Open() 'MsgBox("Server Connection is Open ! ") 'frmMain.Connection.Text = …

Software Development open-source sql vb.net
Member Avatar for john.knapp
0
480
Member Avatar for rogerg

Hello, I have a problem when trying to prompt users on two levels with Perl. The first prompt command works fine. But when doing the second command as below, I get Enter a command (count/close/quit) : Enter a command (open/quit). I don't see right away why this happens. Any idea? …

Software Development perl
Member Avatar for rogerg
0
243
Member Avatar for femaler2d2

I have started using emu8086 and since I’m new to this I got stuck with my project that I have to submit till Friday :((( I need to make a program in assembly that counts how many words in a given sentence are palindromes: For example: Dad loves mom (in …

Software Development assembly mathematics
Member Avatar for femaler2d2
0
157
Member Avatar for Baradaran

I am totally new to vb.net, still I am planning to try it for a project, in which there will be standalone machine using an access database to query and update different tables. While in VB6 I was able to define recordsets using Microsoft.jet.oledb.4.0, in VB.net I have become a …

Software Development microsoft-access mysql vb.net
Member Avatar for Baradaran
0
238
Member Avatar for 2hamed

I'm trying to write program in Python using PyOpenGL which I need to use glutMouseFunc for some mouse functionality but when I run the program I get the following error: Traceback (most recent call last): File "teapot.py", line 80, in <module> glutMouseFunc(mouseHandle) File "/usr/lib/python2.7/dist-packages/OpenGL/GLUT/special.py", line 137, in __call__ contextdata.setValue( self.CONTEXT_DATA_KEY, …

Software Development opengl python
Member Avatar for 2hamed
0
774
Member Avatar for Eyeteeorg

I'm just learning html but already have a domain, so I did a quick and dirty under construction page to replace the advertising-littered default page that the webhost was using. It's dirt-simple and not very good, but I'll make it better as time goes on. Is there any rule I'm …

Software Development advertising html-css legal web-design
Member Avatar for margaret224
0
213
Member Avatar for silversurf

Hello everyone. I am developing a inventory and pos software myself with vb 6.0 and ms-access as database. In my sales invoice I want to generate the sales invoice number serially. I mean when I load the sales invoice form the txtsinvno text box will automatically generate the sales invoice …

Member Avatar for silversurf
0
592
Member Avatar for Dili1234

I want to delete an item from list view and at the same I want delete the item from the Releavant table when I click the okay button in the ** search form** i want to delete the item from listview and as well as to update it to Sell …

Software Development listview vb.net
Member Avatar for Dili1234
0
2K
Member Avatar for acepeda

Hey guys! Im having a little problem with my datetimepicker!Im making a personal payroll system,where I want to add employee's daily hours!for example: Employee name:Marcus Veron IdPayroll:032012 Date|Hours --------------------- 19/07/2012 | 8 20/07/2012 | 8 21/07/2012 | 7 Well im having problem quering the date field...cause in my datetimepicker i …

Software Development vb.net
Member Avatar for acepeda
0
174
Member Avatar for lewashby

I'M trying to write a small program that will validate weather or not a string is valid. Assuming that the date will always be 8 digits (12/21/2012) I need a function that will count the number of digits in a string. What I've got below is only returning "'is not …

Software Development shell-scripting
Member Avatar for Watael
0
138
Member Avatar for aslam.junaid786

#include "stdafx.h" #include<iostream> #include<conio.h> #include<string> using namespace std; //--------------------------------Structures--------------------------------// struct datee { int month; int days; int years; }; struct book { string bookname; string bookpublisher; string authorName; int copies; int price; int edition; datee date; }; //---------------------------Function Prototypes----------------------------// void titleheader(); void menu(); void addbook(book b[],int i); void display(book b[],int …

Software Development c++
Member Avatar for john.w.austin.39
0
193
Member Avatar for kindofsudden

This is probably one of those that is so simple I can't see it. I have a string variable called Market. The variable is user chosen and is the exact same name as one of many tables in my dataset. Basically I am having the user choose which table they …

Software Development dataset vb.net
Member Avatar for kindofsudden
0
200
Member Avatar for Ghoztrider

Hi, I haven't done a lot of data type converting so please bear with me. I'm grabbing data from a field that's formatted for currency (2 decimal places) and assigning it a variable. I then run an if statement against it, but I'm getting a conversion error. Here is my …

Software Development vb.net
Member Avatar for Ghoztrider
0
187
Member Avatar for mattsearle

# Math.round # Hi, could someone please add the math.code function in the code below so that the resulting answer in the div is to two decimal places. <script type = <"text/javascript"> function calculate() { A = document.getElementById('input').value; outDiv = document.getElementById('output'); B =(parseInt(A) * 1.0); //alert(A); D = (parseInt(B) * …

Software Development java
Member Avatar for Taywin
0
193
Member Avatar for RockJake28

I have tons of files in this project as I am programming an ARM board. Making a tilt snake game where the snake is controlled by an accelerometer. I am using a timer interupt (handled by timer0.c) to toggle a boolean variable `extern bool toMakeFood;` stored in "includes.h" that tells …

Software Development c
Member Avatar for deceptikon
0
303
Member Avatar for ibthevivin

For each part (A) (D) below, clearly indicate whether the runtime is O(log n) or O(n). Can someone please explain how this works? public class Q9f { public static void main(String[] args) { int n = ...; int[] a = new int[n]; // (A) for (int index = 0; index …

Software Development java
Member Avatar for tux4life
0
208
Member Avatar for dshiells

Hi all, I want to create a separate class in my C++ application which creates a dialog from a resource, similar to extending CDialog in MFC, however I would like to avoid using MFC. For example, I would like to be able to run the following code in my WinMain …

Software Development c++
Member Avatar for dshiells
0
225
Member Avatar for jalpesh_007

i have one question. I understand the type conversion in java.But i dont know where to use which conversion. Below i have given one example,but i don't which is used where? String s=”27”; int i=Integer.parseInt(s); System.out.println(i); /////////////////////////////////// String s=”27”; int i=(int)s; System.out.println(i); Although both are doing the same thing,but where …

Software Development java
Member Avatar for JamesCherrill
0
113
Member Avatar for ImZick

Hello Guys.. Need help again with this code :( Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Name As String Dim Visits, Calls As Integer Dim Sales As Long Visits = 0 Calls = 0 Sales = 0 'I want to store all the lvAccountManager …

Software Development listview vb.net
Member Avatar for tinstaafl
0
160
Member Avatar for triumphost

I'm in a bit of a dilemma. I want to know what the difference is between Foo and Meh. I wrote both of them and I did not like Foo so I wrote Meh. They both work but is there an overhead to Meh? Is there anything bad about Meh? …

Software Development c++
Member Avatar for mike_2000_17
0
228
Member Avatar for padton

Hi all, I am trying to use the following python code to read data from two .csv files which have data in the following format, e.g. 1, 23.27, 23.21, 83.22 2, 34.25, 65.31, 34.75 ... etc I seem to be getting an error around during execution of the function. I …

Software Development python
Member Avatar for padton
0
282
Member Avatar for IwalkAlone

Q.Write a function to concatenate to input strings into one large string and display the result. I know how to do this using strcat but not without it. Also can't use pointers. Please help!!

Software Development c
Member Avatar for ahmedhamdy
0
2K
Member Avatar for LD Company

Hello programmers! I want small help with code. I want something to happen when text in TextBox1 is A or B or C without writing same code 3 times. I don't know how to write it. I tried with it: If TextBox1.Text = "A" or "B" or "C" Then 'Event …

Software Development vb.net
Member Avatar for AleMonteiro
0
185
Member Avatar for LD Company

How can I get sum of total values from cells in DataGridView? I want it to look like this **Column1 Column2 Column3 Column4** String ---- String ---- String ---- 10 String ---- String ---- String ---- 7 String ---- String ---- String ---- 3 String ---- String ---- String ---- …

Software Development vb.net
Member Avatar for LD Company
0
5K
Member Avatar for Lethugs

How can I specify the Server of my database when I make my project executable I have this module I call everytime i modify my database Public Sub main() constr = "Data Source=.\SQLEXPRESS;AttachDbFilename=C:"database file".mdf;" & _ "Integrated Security=True;Connect Timeout=30;User Instance=True" Con = New SqlConnection(constr) Try Con.Open() 'MsgBox("Server Connection is Open …

Software Development open-source sql vb.net
Member Avatar for john.knapp
0
831
Member Avatar for hirenpatel53

Hi all I have Placed One Custome button on Grid Withe refference of the location of rows depending on certain condition everi thing working fine but whwn rows increase and we need to scroll grid at that time button stay fix with its location for fixing this error i write …

Software Development microsoft vb.net
Member Avatar for papu.shankar
0
284
Member Avatar for myk45

Hello All, I was experimenting with creating a large number of threads and checking how fast it runs on my machine.(details provided later) This is the code i'm using: #include <iostream> #include <thread> #include <ctime> #define THREADED 1 static const int num_threads = 100; static int mult_array[100][1000000]; void multResult(int *arr) …

Software Development c++ ubuntu
Member Avatar for myk45
0
743
Member Avatar for Darshan5

Im creating a project in java using netbeans. I have to create lots of forms for every operation. So i created a menubar and add menu items in it. Instead of creating so many jframe forms i decided to create JPanel forms for evry operation. So in this way i …

Software Development java java-netbeans
Member Avatar for stultuske
0
129
Member Avatar for knd15

I know this maybe easy but I need help with creating a fibonacci sequence array from a to b. This is my code so far: def FibL(a,b): list = [] if a == 0: return 0 elif a == 1: return 1 else: return FibL(a-1) + (a-2) for i in …

Software Development python
Member Avatar for vegaseat
0
243
Member Avatar for James19142

I used `memcpy` to copy the contents of one pointer to another pointer assigned to new memory. Later in the program I get runtime errors as if I were attempting to operate on a pointer pointing to nothing. While debugging, I saw that the original and the the copied pointer …

Software Development c++
Member Avatar for James19142
0
2K
Member Avatar for satsujin

Hi folks, I'm trying to use the subsample method in the PhotoImage class to resize an image I have in a list that links to a Label widget in Tkinter but python says there is no such method. I know I could use Image.resize before calling Photoimage but since I'd …

Software Development python tkinter
Member Avatar for satsujin
0
3K
Member Avatar for singularity~

My linq query won't insert my data. What am I doing wrong? class Query { musicEntities db = new musicEntities(); public bool findArtist(string artist) { bool status = db.Artists.Any(w => w.Name.Contains(artist)); return status; } public void insertArtist(string artist) { if (findArtist(artist) == false) { Artist art = new Artist { …

Software Development asp.net
Member Avatar for singularity~
0
255

The End.