132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rajdesire

How can we use volatile variable in C or C++? Anybody can some good code to understand this.

Software Development c
Member Avatar for gerard4143
0
144
Member Avatar for mrinal.s2008

Hi, I'm able to write a copy constructor for a class which contains pointer as a data member. However, when I have a reference as a data member, the copy constructor does not help, i.e. when I change that member for one object, the change is reflected in another one …

Software Development c++
Member Avatar for JasonHippy
0
1K
Member Avatar for satyambnl

this is helper class . i m unable create a second table in my sqlite please observe the following code [code]helper class.java public class DBAdapter { private static final String DATABASE_NAME="satya_db"; private static final int DATABASE_VERSION=1; private static Context context; private SQLiteDatabase db=null; private static String CREATE_TABLE="create table states(_id integer …

Software Development android android-development java sqlite
Member Avatar for peter_budo
0
153
Member Avatar for elexender

Hi, Im pretty new to c++ programming so plz dont be offended if i ask "stupid" questions. Im want to open a file named "Alexander". The name of the file is stored in an Ansisting. So i want to add an ".txt" extension to open the file. Then i want …

Software Development c++
Member Avatar for elexender
0
138
Member Avatar for dani_awais

HEllo everybody !!! i have a little problem.. i m making a program in which i have to do bitwise addition. mean if the 1st input is 111 and the 2nd input is 11 then the output is 1010 i have made my logic but where i have the problem …

Software Development c++
Member Avatar for adnan.siddique
0
81
Member Avatar for sujithy15

hai guys my question is regarding data protection. conisder this program [code] // This class defines an integer stack that can hold 10 values. class Stack { int stck[] = new int[10]; int tos; // Initialize top-of-stack Stack() { tos = -1; } // Push an item onto the stack …

Software Development data-protection java
Member Avatar for sujithy15
0
247
Member Avatar for invisi

I wrote this programme but what two numbers you choose exit it? can you guess just by looking? Because I can't :( [CODE]#include <iostream> #include <string> using namespace std; int main() { bool aHo = true; int a = 0; int b = 0; while(aHo) { cout << "Enter Number …

Software Development c++
Member Avatar for invisi
0
81
Member Avatar for lewashby

I'M trying to learn to program through Mono. I'M using a book on C#. Although it isn't specifically for Mono, I haven't gotten far into the book and it's a really small example so I don't expect that it has any platform specific code. Please see what's wrong with this …

Software Development
Member Avatar for ddanbe
0
113
Member Avatar for bardcode1

The Mortgage Calculator will calculate and displays the mortgage payment amount given the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. The user will be asked to enter to the amount of the mortgage loan, the term in years of the mortgage, …

Software Development data-structure java java-swing
Member Avatar for javaAddict
0
214
Member Avatar for scias23

i just want to know, what is much better to do for data access? include the database to my solution (tools>connect to database), or just hardcode everything? somebody reply please. thanks

Software Development vb.net
Member Avatar for kvprajapati
0
112
Member Avatar for shrublet

Hello there, I am a Java programmer by trade and am VERY new to C so please excuse any blatant pointer ignorance, if possible. I am having a problem with the concept of returning something but also freeing it afterwards within a method. I am implementing a stack program and …

Software Development c
Member Avatar for rajdesire
0
114
Member Avatar for noname1015

I am doing fyp with rfid student attendance system currently. And, I face the problem on saving the database's data.This is the code that i write below: [code] Dim sqladapter As SqlClient.SqlDataAdapter = New SqlClient.SqlDataAdapter("select * from table_0", conn) sqladapter.Fill(ds, "table_0") Dim sqladapter_1 As SqlClient.SqlDataAdapter = New SqlClient.SqlDataAdapter("select * from …

Software Development vb.net
Member Avatar for noname1015
0
99
Member Avatar for Satal Keto

Hi, I was hoping that I could get some guidance from some of you guys on Object Design with Database back ends. I am trying to build what could be considered to be my first full scale application, which is a student tracker (simplification). While I have a reasonable idea …

Software Development database-design vb.net web-design
Member Avatar for kvprajapati
0
159
Member Avatar for miraj0072004

hi friends, I need some help in keeping count of particular IP addresses that I read from a text file with ip addresses.i.e let's say 123.456.789.123 - 15 times, 542.432.456.123 - 6 times etc etc ...thanks in advance

Software Development shell-scripting
Member Avatar for miraj0072004
0
84
Member Avatar for moein_soltani

Hello all, I have registerd lately, we have a project about the implemention of huffman algorithm...! I have some problem... first is that I want to read space and Enter from txt file how can i do that? Next is how i should output to say that 0 and 1 …

Software Development algorithm c++
0
79
Member Avatar for MCBambi

hie if you could help me out i'll be forever grateful!! okay i am creating an ordering system but when i try to add a new customer it allos me to add but it doesnt save to the database and i can not also call it up the code i …

Software Development dataset sql vb.net
Member Avatar for kvprajapati
0
119
Member Avatar for prashantc13

Can somebody help me with the following problem, here is inputxml, xslt i'm using and expected output . actually i know it is because of unique generateid not getting generated this xslt failing to generate desired output but i don't know where that code should be inserted. InputXML [CODE=XML]<?xml version="1.0" …

Software Development xml
Member Avatar for varun0703
0
106
Member Avatar for mags614

I am writting a code to calculate the total payments of a car with interest. Also calculating the monthly payments. I keep getting errors, saying that i am not declaring price and rate...how do you declare them to some number? this is my program. [code] public static void main(String[] args) …

Software Development java
Member Avatar for verruckt24
0
252
Member Avatar for hannaxbear

The function I am trying to write is supposed to be recursive and does the following: Return the number of ways that all n2 elements of a2 appear in the n1 element array a1 in the same order (though not necessarily consecutively). The empty sequence appears in a sequence of …

Software Development c++
Member Avatar for hannaxbear
0
165
Member Avatar for zaraf

Dear All, Lately during one of my projects i have encountered a problem and stuck on that point. I have an optical sensor that i have attached to my pc and it detects colors in terms of RGB values. The sensor is from a famous company and has been supplied …

Software Development api c++
Member Avatar for zaraf
0
176
Member Avatar for sosdown

how can i change this string: "f(x)= x + 2-3\nbox = f(2) + 2\nbox = f(f(2)) + 2\nfunc = 3 + 3 * 4 to: "box = 1 + 2\nbox = 0 + 2\nfunc = 3 + 3 * 4\n" or tell me the algorithm to make this happen, i …

Software Development algorithm python
Member Avatar for vegaseat
0
65
Member Avatar for Prachi Doshi

Hey I m not able to understand the topics such as Abstract classes,annotations. Plz help me out. And I also want to know how can i practice online java programs. I m not able to find some specific practice problems.:(

Software Development java
Member Avatar for Prachi Doshi
0
157
Member Avatar for khaled.s

Can you please tell me what's wrong? I get this error: error C2447: '{' : missing function header (old-style formal list?) [code] // // Area= 1/2 | (x1y2 - x2y1) + (x2y3 - x3y2) + (x3y1 - x1y3) | // (distance)^2 = (x-difference)^2 + (y-difference)^2 // v= sqrt[ s(s-a)(s-b)(s-c) ] …

Software Development c++
Member Avatar for WaltP
0
239
Member Avatar for samuel_cyk

I wrote a code to send file as below: [CODE]Dim objXMLDoc As New XmlDocument objXMLDoc.Load("C:\Inetpub\wwwroot\XMLSchema_Test\XML\1773777.xml") Dim blnResponse As Boolean Dim objURI As Uri = New Uri("https://172.16.17.2/XMLSchema_Tests1/Web%20Forms/frmXML_Receive.aspx") Dim objWR As HttpWebRequest = HttpWebRequest.Create(objURI) blnResponse = objWR.HaveResponse Dim strXML As String = objXMLDoc.OuterXml objWR.Method = "POST" Dim encoding As New System.Text.ASCIIEncoding Dim …

Member Avatar for samuel_cyk
0
160
Member Avatar for mpegjohn

Hi, I am creating a new UserControl that has 3 PictureBox's, These three pictures show the start, middle and end frames of a video clip. Multiple UserControls of this type will be shown in a list. So for a video of 100 clips we have 3 * 100 = 300 …

Software Development
Member Avatar for Diamonddrake
0
179
Member Avatar for frank.zappa

I've started using vim recently as my main text editor and I've tried to come up with a map command which compiles and runs my java source code. This is what I have so far: map <F4> :!javac % <CR>:!java %< <CR> but it doesn't always work. For example, when …

Software Development java
Member Avatar for frank.zappa
0
810
Member Avatar for Lukezzz

I have a Panel that holds 200 buttoncontrols. If I for example minimize the Formwindow and maximize the window again, panel1 that holds the 200 buttoncontrols makes the 200 buttoncontrols to "flicker" for about 2 seconds. I beleive I have set up code for panel1 that have Doublebuffer = true; …

Software Development c++
Member Avatar for Lukezzz
0
105
Member Avatar for esdftw

Hi all, I did a search on this site to find threads where people were talking about finding a variable length number in a text file and came up with no results. So, I'm asking :) I have a text file with hundreds of lines of data in it. One …

Software Development c++
Member Avatar for esdftw
0
156
Member Avatar for C_Dannehl

Ok so a little bit of background, I am trying to write a boggle solver, I had everything working until I tried to implement a Binary Search Tree for storing the words found on the board, when I tried to do this I got the following errors: Error 1 error …

Software Development c++
Member Avatar for C_Dannehl
0
135
Member Avatar for angel6969

//Define a function that takes a partially filled array of numbers //as its argument and returns the standard deviation of the numbers in //the partially filled array. Since the partially filled array requires //two arguments, the function will have two formal parameters: an array //parameter and a formal parameter of …

Software Development c++
Member Avatar for jonsca
0
264
Member Avatar for StaticX

Hi, Can anyone help me with this problem.For example i have a text file called food.txt with contents 1 apples 2 oranges 3 mango 4 bananna What i would like to do is enter the choice of fruit into a string and loop through the file until the word is …

Software Development c++
Member Avatar for Lerner
0
109
Member Avatar for sniperx99

Hello all, I am completely new to python, but unfortunately a professor I am working for needs some code done in it. Basically, I need to look through a file for the word "DATA" and then perform some manipulations (simple algebra) do a long list of numbers (3900 to be …

Software Development python
Member Avatar for sniperx99
0
84
Member Avatar for jemz

hello please help me on how to make my vb6 program to executable files...hoping for your positive responds

Software Development visual-basic
Member Avatar for peter_budo
0
199
Member Avatar for mikeandike

Hi, I'm trying to store a new value within a variable and then compare it to the previous value of that variable using the Math.Min method. I have created two seperate variable 1 for the previous and one for the new but I can't seem to store it. They both …

Software Development vb.net
Member Avatar for StuartMillner
0
108
Member Avatar for asm2hex

Hello, I'm having quite a hard time getting around this access violation error I keep getting. Every time I declare a character string in a structure I can never access it. Here's a small example of my code that keeps giving me a error no matter what I try. [CODE] …

Software Development c data-structure
Member Avatar for JuhaW
0
118
Member Avatar for JustSuds

Hi everyone, I just can't seem to find an explanation for using this "->" in code, in C++. I've migrated from Java and C#, and haven't seen this notation before. Basic example: [CODE]CMesh *pMesh = WorldObjects[i]->m_pMesh;[/CODE] As best as I can tell, this is the C++ equivalent of C#'s [CODE]WorldObjects[i].m_pMesh;[/CODE]. …

Software Development c++
Member Avatar for Skeen
0
93
Member Avatar for corby

[U]for[/U] i<-1 [U]to[/U] n [U]do[/U] [INDENT][U]for[/U] j<-1 [U]to[/U] n^2 [U]do[/U][/INDENT] [INDENT][INDENT]write(i*j)[/INDENT][/INDENT] [INDENT][U]end-for[/U][/INDENT] [U]end-for[/U]

Software Development c++
Member Avatar for corby
0
131
Member Avatar for sandorlev

Hello! I've started programming C++ a week ago, so I cannot solve my problems easily. I've started a small project for learning classes, it's about encryption and stuff. I don't really get pointers, although I've read some about them. My problem is that when I use the cipher, it replaces …

Software Development c c# c++ encryption
Member Avatar for vmanes
0
777
Member Avatar for Nicholas_Roge

In the code below, I check if test.dll has been loaded, and it always returns false... I can't figure out what I'm doing wrong. Can anyone give me a hand? P.S.: I've triple checked that the DLL is in the running directory. [code=c++]#include <iostream> #include <windows.h> typedef int (*AddFunc)(int,int); typedef …

Software Development c++
Member Avatar for Ancient Dragon
0
157
Member Avatar for hawkoftheeye

Hiya. Many apologies if the question I am about to ask has already been answered. I searched the forum, and found a couple of threads that seemed to be relevant to my problem, but none seemed to describe the problem fully. I'm fairly new to C++, having only been using …

Software Development c++
Member Avatar for Ancient Dragon
0
236
Member Avatar for Tommy2010

Hi! I've been searching for reading number in a string containing mix of number and char for hours, but I've found the right code. The string has the format q23 - q3 (or q23-q3) I'd like to read the number '23' and store it in x, '3' --> y, and …

Software Development c++
Member Avatar for Ancient Dragon
0
251
Member Avatar for supanoob

Well, I just wrote the first of my test / learn scripts with TKinter, and they work well (well they do not really do something but this without any errors) So Id thought you also have to learn to make biniarys and have installed py2exe for this job. Well at …

Software Development gui python tkinter
Member Avatar for Stefano Mtangoo
0
114
Member Avatar for dude93

See I've made a short little login that works with a dictionary, but I don't know how to add something to the dictionary while the program is running, so if you know how to fix this can you please help. Much apperciated.[code]database = {'name1': '1234', 'name2': '5678', 'name3': '9012'} name …

Software Development python
Member Avatar for Stefano Mtangoo
0
85
Member Avatar for Democles

I am currently having somewhat of a brain stump here. I am programming in a larger project and well, it's on the move to c++. the source code is all c we compile by using a makefile. There is a file with several functions we are taking one removing everything …

Software Development c++
Member Avatar for Ancient Dragon
0
174
Member Avatar for PhiberOptik

Hey guys, I am making a block breaker type game. One panel houses the background, and one panel has the bricks, paddle, and such. and the other has the background. In my main class when I add the panels in this order: [CODE=java] add(new BrickBoard()); add(panelbg); [/CODE] the background image …

Software Development java
Member Avatar for PhiberOptik
0
84
Member Avatar for manchi

code for adding item in combobox and also want to show two fields in display properties of combobox by concatenate this two fields[code][/code]

Software Development vb.net
Member Avatar for tanisa
0
67
Member Avatar for Ed Ashworth

I wrote some C++ programs and classes a few years ago using Visual C++ 6.0 as my editor/compiler. Recently I replaced the 6.0 with Visual C++ 2008 Express. Now, none of my older code will compile. I read that there were some changes to the C++ standard library some time …

Software Development c++
Member Avatar for jonsca
0
141
Member Avatar for pavan146

Hi actually we r building a project based on mobiles so can any1 suggest me one efficient mobile simulator built on java..

Software Development java
Member Avatar for peter_budo
0
79
Member Avatar for spirit3ch

Hi I am trying to implement a sequence using a linked list. I need to have the following functionalities: insert, remove and concatenate. The concatenate should not be destructive and the function call should be like. That is Seq1 and Seq2 should be preserved post function call. [code=c++] Seq3 = …

Software Development c++ linked-list
Member Avatar for jonsca
0
203
Member Avatar for mikel07

is there any difference between VB 2008 express with VB.Net??? some people says vb 2008 is the same with 2008??is it true??

Software Development vb.net
Member Avatar for mikel07
0
73

The End.