132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vikuseth

double & val = 66.6; //illegal const double & val = 66.6; //legal I was just doing some demo programs and came through the above concept but not able to identify what exactly the need of the above concept . what magic exactly const is doing in the second case …

Software Development c++ legal
Member Avatar for Gonbe
0
232
Member Avatar for sirlink99

I am attempting to write a very simple chat program to test out ServerSockets and Sockets, the code should work, but when the client make a connection to the server it does not move past the accept method. I know they connected because as soon as I close the client …

Software Development client-server java java-swing
Member Avatar for JamesCherrill
0
474
Member Avatar for daudiam

Both DataOutputStream and PrintStream do basically the same thing - convert primitive types and Strings to bytes before writing them (writeUTF() is an exception). Why different classes ?

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for myk45

Hello All, I was doing some multi-threaded programming using the new C++11. This thought came across my mind: Is there any problem if some shared data is accessed by multiple cores on a CPU? Even if it is just a read. Does this lead to some problem? Could anyone please …

Software Development c c# c++
Member Avatar for mike_2000_17
0
232
Member Avatar for Sneaky Pete

Hello everyone, With the help of some of you guys, i managed to make my first program! To share it with some people, but to prevent that everybody can use it, i would like to build a licence in it. Therefore I want to make a program, so I can …

Software Development vb.net
Member Avatar for adam_k
0
160
Member Avatar for amt_muk

Hello, Can you please suggest me some 3rd party C++ libraries like RogueWave SourcePro C++. Thanks in advance, Amit M.

Software Development c c# c++
Member Avatar for mike_2000_17
0
266
Member Avatar for Zaina jee

I have to write a program that will input a text paragraph from the user. The maximum size of the string will be 500.I have to write a program in which if user select 'R' or 'r' then user is asked to enter a word he wants to replace and …

Software Development c++
Member Avatar for Zaina jee
0
2K
Member Avatar for mumaga

Hi, I want to creat a record of user journey thought the game I'm coding, that would record a script of the user inputs to a separate log file, I am thinking of creating a userrecord class and the user input will be stored into a text file using filewriter …

Software Development java
Member Avatar for mumaga
0
152
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 Rachna0309

I have 3 comboboxcolumn in datagridview.I want to display its value in grid if its value in database table is not null.Eg one column is caste.if this is null in my databse table then combobox column should be added to grid else caste value shold be seen in combobox when …

Software Development vb.net
Member Avatar for adam_k
0
536
Member Avatar for HibaPro

i have vb6 project with cr8 and 10 , its correctly run on one pc what i need is to run this project on local netwrok , how i can do this and how i can edit the connection string and make .exe file ???? Help me plz

Software Development visual-basic
Member Avatar for AndreRet
0
417
Member Avatar for S2009

Hi all, How can I change the BACKGROUND color of the MDI FORM in C#? I changed it using the background color property but the color is not changed. What should I do to perform this task? Please help me out!! Thanks in advance!!

Software Development
Member Avatar for six_sic6
0
326
Member Avatar for efe.ozyer

Hi every body, i want to get a data from List<T> so; class Npc : IDisposable { public short id; public float fX; public float fZ; public float fY; } internal List<Npc> m_arNpcArray = new List<Npc>(); I want to get data like this; m_arNpcArray.GetData(int id); GetData() { for(int i = …

Software Development c c# c++
Member Avatar for efe.ozyer
0
411
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 Rachna0309

I have datagridview with 12 columns from which last 3 columns are comboboxcolumn and I have to get value of those 3 columns to update database.I have witten below code on cellvaluechanged event: Dim rcount As Integer = dgvUserDetails.Rows.Count For Each row As DataGridViewRow In dgvUserDetails.Rows If Not row.IsNewRow Then …

Software Development vb.net
Member Avatar for tinstaafl
0
139
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 Neversleepin

Hello, how can copy and save the console message to a file using logger. i try this :[Click Here](https://friendpaste.com/6FWNg0QIzY7DoPXisOyqpv) but it's only saving warning and info messages to my file. thank you

Software Development java
Member Avatar for subramanya.vl
0
148
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 Gink

I recently bought this book online used, it came with no CD. Many of the code examples in this book rely on some file called IO.h that apparently came with the CD. I downloaded this file and I still get many errors. Does anyone have these files, or do I …

Software Development assembly storage
Member Avatar for deboflo
0
650
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 putri MSR

## **sorting (array) c++ who user can enter numbers from output.** ## #include <iostream> using namespace std; void enternumber (int *array, int N); void bubblesort (int *array, int N, int Order); void selectionsort (int *array, int N, int Order); void insertionsort (int *array, int N, int Order); void quicksort (int …

Software Development c++
Member Avatar for vmanes
0
504
Member Avatar for mjbor1

i have problem in convert infix to postfix some expression evaluate it correctly and other no ex: c\*(a+b) evaluate it correctly but A\*(B\*C+D)+E doesn't evaluate correctly and there is another problem in finding result my code // convert.h const char SIZE=100; class stack { public: stack(); bool isempty()const; bool isfull()const; …

Software Development c++
Member Avatar for mjbor1
0
378
Member Avatar for pbnoj

Hi there, My problem involves reading in and working with an excel file that contains blank cells randomly throughout the spreadsheet. The reason there are blank cells is because I have expression data for various cell types but for some of the cell types the expression data was not available. …

Software Development python
Member Avatar for Gribouillis
0
4K
Member Avatar for aaaaaaaaa

So I have a YML file, and I'm trying to convert it to a different format. I found a YML format converter script and edited it to the best of my ability, and this is what I've come up with: #!/bin/python try: import yaml except: print "Failed to import module: …

Software Development file-system python
Member Avatar for Gribouillis
0
374
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 jannesb1

hello, this is my code and for some reason it does not work :/ could someone tell me whats going wrong? ;sum of all powers of 2 lower or equal to 2^n ;example n=4 => 2+4+8+16=30 .386 .model flat, stdcall option casemap: none include \masm32\include\windows.inc include \masm32\include\masm32.inc include \masm32\include\kernel32.inc includelib …

Software Development assembly motherboards-cpu-ram
Member Avatar for jannesb1
0
214
Member Avatar for Kewne

I'm confuse ..... What do I really need to install in order to use the API for bluetooth? I'm going to develope a wireless mobile application that can communicate with my laptop....

Software Development api java
Member Avatar for Kewne
0
208
Member Avatar for padton

There must be a better way of writing the following code, I would really appreciate your suggestions and coding. I am new with python. Thanks. A1 = os.path.join(pathname, "x") A2 = os.path.join(pathname, "x", "y") A3 = os.path.join(pathname, "x", "y", "z1") A4 = os.path.join(pathname, "x", "y", "z2") createPath(A1) createPath(A2) createPath(A3) createPath(A4)

Software Development os-x python
Member Avatar for TrustyTony
0
231
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 fize.tesfay

i need c++ code for simple linked list to implement algorith and data structure 1.create_node_and add to list 2.frst node delete 3.last node delete 4.delete node between first and last node 5. displaye the value of node in revese order 6. searching 7.exist

Software Development c c# c++ data-structure linked-list
Member Avatar for fize.tesfay
0
339
Member Avatar for new_developer

Does any buddy tell me use of asterik in C++ ?? And also explain use of static in methods and in constructors. Actually I am search a code that dynamically creates an object of class. Anyone please help ! class BoxFactory { public: static Box *newBox(const std::string &description) //expalin this …

Software Development c++
Member Avatar for ravenous
0
254
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 Lyfe

**i have consumed a webservice (shown below) from webservicex.net into my client C#.NET application but it is returning this whole bunch of XML. Please, how do i get values of only <wind> and <temperature> elements into my application's textbox? Thanks** <string><?xml version="1.0" encoding="utf-16"?> <CurrentWeather> <Location>Madrid / Cuatro Vientos, Spain (LEVS) …

Software Development api asp.net xml
Member Avatar for tinstaafl
0
313
Member Avatar for RLS0812

What is the Python (2.7) equivalent of the PHP $_POST, $_GET, $_SESSION and $_COOKIE, and how are they used ? After almost 2 years of trying I have finally gotten Python to work on my WAMP server - only to find that it is severely lacking in web page functionality.

Software Development client-server php python
Member Avatar for TrustyTony
0
235
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 tomz6

Why do some people put main(int argc, char ** argv) not main() ? What's the difference? When is it needed? Thanks in advance, Tom.

Software Development c++
Member Avatar for ahmedhamdy
0
587
Member Avatar for owenransen

I'd like to create a video from a series of images in my MFC application. Is there an API or example source code which would get me started? I imagine I'd create an MP4 or AVI file. (A sub question: I've heard that Windows 7 includes the MP4 H.264 encode …

Software Development api c++ video windows-api
Member Avatar for Ancient Dragon
0
275
Member Avatar for kpele1

i am a computer science students and one of our project this christmas vacation is to create c++ programs and we will submit it on the 3rd of january but i dont have idea where can i find it anyone please could help me thanks...

Software Development c c# c++
Member Avatar for PrimePackster
0
180
Member Avatar for asif49

Hi, I'm really interested in things like image recognition and certain other aspects that Artificial Neural Networks perform really well at and I'm hoping to do a personal project with ANNs in the future. The problem however is that my knowledge of them isn't that elaborate at the moment. All …

Software Development java mathematics
Member Avatar for asif49
0
202
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 MRmicro1

when i run my code in emu8086 i have error "opcode not supported yet" so what should i do in this case and pls try to run in emu8086 to check if it work properly or not cause i spent alot of time to fix the code but i couldnt …

Software Development assembly
Member Avatar for MRmicro1
0
140
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 KhubaibQaiser

Hi all! I am making a program to input a paragraph from the user and then finds/swap/delete/insert a word in that paragraph. I am stuck on the first stage. I have made a program that just returns the starting index of the searched word. But its case sensitive and i …

Software Development c++
Member Avatar for deceptikon
0
261

The End.