132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nida afaq

Hi, there is a simple code,but i cant understand the output: [CODE]#include<iostream.h> #include<conio.h> void main() { clrscr(); int x=10; cout<<++x<<" "<<++x<<" "<<++x<<endl; x=10; cout<<x++<<" "<<x++<<" "<<x++<<endl; getch(); }[/CODE] output: 13 12 11 12 11 10

Software Development c++
Member Avatar for kvprajapati
0
140
Member Avatar for dragonbone

I try write about binary tree , but i have some troubles , I insert some symbols into binary tree by 2 function insertLeft () and insertRight () ...When i display the symbols i see to lack some symbols .. who can help me ???thank very much [CODE]#include<stdio.h> #include<conio.h> #include<string.h> …

Software Development c
Member Avatar for dkalita
0
218
Member Avatar for movie55

Hi guys, I was running a simple code on Fedora 11. it has this error " segmentation fault". The code is too simple to have any mistakes........ Can anyone help me with this? What is this "segmentation fault". Thank you very much. #include "stdio.h" int main() { int T[1001][4001]; int …

Software Development c
Member Avatar for dkalita
0
76
Member Avatar for danielschealler

Reposting from [url]http://www.mentalis.org/forum/thread.qpx/971[/url] because I need an answer. I hope you guys can help me out. The component in question is Org.Mentalis.SecurityServices.dll. Hey all. I'm having troubles. CryptographicException: Couldn't acquire crypto service provider context. StackTrace: at Org.Mentalis.SecurityServices.Cryptography.CryptoHandle.CreateInternalHandle(IntPtr handle, String container) at ORG.Mentalis.SecurityServices.Cryptography.CryptoHandle.get_Handle() at Org.Mentalis.SecurityServices.Cryptography.RC4CryptoServiceProvider.ctor() at I had to copy that …

Software Development
Member Avatar for danielschealler
0
438
Member Avatar for TGeorge824

Can you return an array of structs in a function? I'm supposed to make a linked list where the node contains an array of structs. I'm using a grocery list thing as my array of structs. [CODE] struct grocery{ char *name; float price; }; struct node{ struct grocery list[5]; //no …

Software Development c linked-list
Member Avatar for dkalita
0
127
Member Avatar for lotrsimp12345

[CODE] void my_int_sllist::pop_back() { //head and tail pointers cout<<"enter pop_back"; //contains one node if(head==tail) { cout<<"enter head==tail?"; delete head; head=tail=0; siz--; } else { cout<<"enter's other condition"; my_int_node* temp; for(temp=head; temp->next!=tail; temp=temp->next) { delete tail; tail=temp; tail->next=0; } siz--; } } [/CODE]

Software Development c++ linked-list
Member Avatar for lotrsimp12345
0
1K
Member Avatar for kirtichopra

hi all i want to read CSV file how can i do that please help me with a bit of code Thanks Kirti

Software Development java
Member Avatar for pooja.ui7
0
205
Member Avatar for Learning78

Hi; I need help woth random number generation. I am developing a game show which has more than 100 questions and for each question there are 4 options. I am using a random function which ranomizes the value of t (row value of database). But the problem is that I …

Software Development dataset vb.net
Member Avatar for sknake
0
119
Member Avatar for icemokka

Hi, We are planning to upgrade an existing VB6 application to C# ( VS2008 ). ADO.Net follows more a disconnected strategy when accessing Data. I'm thinking about giving the Entity Framework a shot since using an ORM-tool is higly recommended if you want to speed up the development. And EF …

Software Development asp.net mssql multithreading
Member Avatar for sknake
0
522
Member Avatar for samir_ibrahim

I am creating a form that will filter datagridview while typing in a textbox. I came through this error and I would like to know why is occur. [CODE=vb.net] Dim dt As DataTable = Ds_Pos.Employees Dim dv As New DataView(dt) 'findcrit is declared as string public and it contain a …

Software Development vb.net
Member Avatar for samir_ibrahim
0
151
Member Avatar for linkpraveen

Hello All, Where is the memory allocated for Value TYpes which are part of a class, when you create an instance of the class, it goes on heap, where is the memory allocate members which are of value types in the class? Class Customer { private int _customerID, private string …

Software Development
Member Avatar for sknake
0
155
Member Avatar for Arman Majumder

A program that creates a grid panel of desired [FONT=&quot]dimensions [/FONT]and changes the colour randomly of each grid box upon dragging the mouse over the selected region.

Software Development gui java
Member Avatar for amos wang
0
198
Member Avatar for Mongz

Hi once again Im trying to use sessions, im passing a value from login page and using it on another page, now i recieve this error "Object reference not set to an instance of an object." here im passing it Session["UserName"] = Login1.UserName; then accessing on different page like this …

Software Development session
Member Avatar for sknake
0
66
Member Avatar for walter clark

Using Visual C++ (CLI type) I can place a rectangle of any width and color on the screen where the ends are defined by the calls to ->MouseDown and ->MouseUp. But I'd like to see the rectangle grow while I'm holding the mouseButton down. It seems like I should be …

Software Development c++
Member Avatar for Cosmin871
0
104
Member Avatar for Creator00

Hello! Could You please help to solve this? My question is how to reverse a number in decimal notation using recursive function. 1234 => 4321 2 => 2 20 => 0 20000 => 2 (yes!) 0 => 0 The maximum length of test input is 5 numbers. No need to …

Software Development c
Member Avatar for Creator00
0
123
Member Avatar for awestove

I am trying to dynamically add checkboxes to a panel depending on if a file exists. My code is: [CODE]While d1 <= d2 If File.Exists("C:\bnb\" & m1 & "-" & d1 & "-" & y1) = False Then rm1CheckBoxes(rm1I) = New CheckBox() rm2CheckBoxes(rm2I) = New CheckBox() rm1CheckBoxes(rm1I).Location = New Point(20, …

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

the problem seems to be in the show_int_sllist(). main [CODE] #include "My_Int_Sllist.h" #include <iostream> using namespace std; int main() { //Test1 my_int_sllist b; b.push_back(10); b.show_int_sllist(); return 0; } [/CODE] INTERFACE NODE [CODE] //class used to create a node class my_int_node { public: //member that stores the nodes data value int …

Software Development c++ linked-list
Member Avatar for lotrsimp12345
0
129
Member Avatar for aomran

Hi everyone, Can anyone tells me what this error means: error: decrement of read-only location. thanks

Software Development c++
Member Avatar for aomran
0
2K
Member Avatar for gedkins

I have a stored procedure in SQL Server 2008 that follows: USE [Numbers] GO /****** Object: StoredProcedure [dbo].[thenextnum] Script Date: 09/23/2009 15:35:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER procedure [dbo].[thenextnum] @descrip varchar(50) as begin declare @t table (nextseq varchar(100)) update number_definition_table set Current_Number=Current_Number+1 output inserted.prefix_format +(Case …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
186
Member Avatar for gianrocks

hey everyone im sort off new on .net and i was wondering if u can help me bigtime.. i am having problems with editing records when i do a search. example i was to search a specific record but then when i try to edit it, it turned out that …

Software Development vb.net
Member Avatar for gianrocks
0
116
Member Avatar for facadie

Hi ALL I'm having trouble figuring out.. I have one BTNCANCEL here and cmb1,cmb2,cm3, tb1,tb2. How do i program so that it detect changes in cmb1,cmb2,cm3, tb1,tb2 and then when i click BTN cancel it will PROMPT to save yes/no [which i have already programed] if there is a change …

Software Development
Member Avatar for facadie
0
2K
Member Avatar for vignesh_ramji

Heyy im a 12th grade student trying 2 put pictures in my cricket project i have 2 display pics of all players i have a code but it works only for some pictures at times it crashed down and pc shuts down any1 has a proper code to display 256 …

Software Development c++ data-structure ios
Member Avatar for vignesh_ramji
0
188
Member Avatar for jrosh

How to create an installable exe with vb.net 2005? i'm a novice to .net and let me knw a it simply.. Thnkx in advance

Software Development vb.net
Member Avatar for Pgmer
0
109
Member Avatar for russey123

I was just wondering if anyone could help me get a good compiler for C. Im taking a intro to c class and my compiler is not the greatest. The key word is i need a good free one. If anyone know of some good ones please let me know …

Software Development c c# c++
Member Avatar for kvprajapati
0
78
Member Avatar for bonny343

how can i add the items in combox?i want to add item and then if user select that item it will open new form containg item which we selected.i want to make combox in which i want to select all browser which i have installed in my system and then …

Software Development vb.net
Member Avatar for Pgmer
0
115
Member Avatar for facadie

How do i make validation. To check if the eg textbox is type with certain character like we want this text box to have at least 7 character. and then when we click button OK[save button as usual] it will not save and it validates at the side with * …

Software Development
Member Avatar for facadie
0
108
Member Avatar for Dajer

hello I want to change language from regional language by code. how I would be able to do this?

Software Development
Member Avatar for mIssy_ricco
0
278
Member Avatar for rfm

I am trying to print out hello fred and I managed only to print out hello. what change do I need to make to print fred too. [code] #include <stdio.h> #include <string.h> #include <stdlib.h> // // A short program to print the string "Hello, Fred" // int main (int argc, …

Software Development c
Member Avatar for Samyx
0
100
Member Avatar for Samyx

Hi everyone, I am a beginner in java. I am still trying to learn the structure and other basic stuff. I am trying to add some code so that the methods in main() work correctly. [code]class Complex { double real, img; void setValues(double i, double x){ real=i; img=x; } public …

Software Development java
Member Avatar for Samyx
0
115
Member Avatar for NotNull

Load a user generated character set, should work on computers equipped with VGA cards. Assembles with 16-bit NASM as an absolute binary image (.COM). [code] bits 16 org 100h jmp word drip0_start char_set: times 416 db 0 msg db '0o l0^d user char generated',0xd,0xa db 'bitmaps can also be used....',0xd,0xa,0x24 …

Software Development assembly
Member Avatar for NotNull
0
134
Member Avatar for gretty

Hello I am unsure of the correct way to make this function below(multiply) stop if a condition is true? The reason why is because of the function type, its not an int, string, void etc, I am unsure how to stop a function whos type is the class name? Do …

Software Development c++
Member Avatar for StuXYZ
0
94
Member Avatar for shopnobhumi

i am trying to compile it (ms visual c++) but it is not compiling, i guess there is some errors but visual c++ is only saying fatal error which i have no idea what it is.Any idea? [code]#include "stdafx.h" #include <iostream> using namespace std; int nbs=0; void Queens(int nn, int …

Software Development c++
Member Avatar for NathanOliver
0
116
Member Avatar for kevlam

hello I'm haveing alot of trouble here, i couldnt figure out how to get the pie to reflect my amoritization output using on only 2 slices and I haev to hand in something today so I thought I would jsut color the 4 sections with representative colors. If a person …

Software Development gui java java-swing
Member Avatar for kevlam
0
127
Member Avatar for Raik.48

SOMETHING IS WRONG WITH MY CODE, IT GETS COMPILED BUT ONLY PROBLEM IS WHEN I INPUT THE NUMBERS THE OUTPUT COMES AS "Area@9664a1" ! // Implement a class Area which has three attributes length, breadth and Area. use attributes constructor to initilize length and breath. implement a method calcArea to …

Software Development java
Member Avatar for Raik.48
0
145
Member Avatar for luiss

Hello all, I recently started using Python to test a Bluetooth Push application prototype and everything was working great until threading. I wonder if someone knows how to start multiple threads of connectpush() with Obexftp running under Linux? So far with the code below I have to wait until the …

Software Development python
0
168
Member Avatar for jatin24

Hi, Im trying to transfer some text from the richTextBox into an existing MS word template at a specific location. I am able to transfer text to any location i like, but i want to retain the formatting of the text from the richTextBox. Im trying to copy the text …

Software Development microsoft-office office-suite
Member Avatar for jatin24
0
2K
Member Avatar for complexcodes

Hey guys, I have written a recursive function mazeTraverse which finds the path of the mouse to find its food which is placed inside the maze. I am given a maze of of 15 rows and 25 columns. Mouse's starting position is (8,1)[eighth row and 1st column] and the food …

Software Development c++ puzzle
Member Avatar for complexcodes
0
183
Member Avatar for ericcool

[CODE] template<class T, int size = 50> class genClass { T storage[size]; ...... void menberFun() { ...... if (someVar < size){......} ...... } } [/CODE] which uses an integer wariable size as a parameter to template to a declaration of genClass, which does not include size as a parameter to …

Software Development c++ storage
Member Avatar for StuXYZ
0
186
Member Avatar for gampalu

Hi, I am trying to implement an applet. The idea is to create the applet, then connect places where I single-click with the mouse with black lines until we give a double-click. With a double-click I should clear the applet. To clear the applet I am trying to set the …

Software Development java
Member Avatar for gampalu
0
171
Member Avatar for new_2_java

Hi all, I am trying to execute a windows command from within my java program, but I can't get it to execute the DOS command. Here's my code: [code=java] try { Process p = Runtime.getRuntime().exec("cmd.exe /C cls"); } catch (IOException e) { // catch exception } [/code] But, the code …

Software Development java
Member Avatar for nomemory
0
192
Member Avatar for NathanOliver

Hi all. I am currently writing a large number class and was curious if I should use a template. I am setting up my constructors and I have one for a string and i was thinking i could use a template for a constructor so it can take in an …

Software Development c++
Member Avatar for NathanOliver
0
144
Member Avatar for wetlife00

I doing the common 'enter scores, total, average and display" problem as I'm learning VB (see screenshot). It works great with the following code: ___________ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim score As Integer = score Static scoreTotal As Integer = scoreTotal Static …

Software Development vb.net
Member Avatar for TomW
0
108
Member Avatar for papanyquiL

[size=5][b]1.- WTF![/b][/size] The most repeated sentence in code reviews… [img]http://www.makinggoodsoftware.com/wp-content/uploads/2009/09/wtfm.jpg[/img] [size=5][b]2.- It works in my machine![/b][/size] We all have used this one when blamed for some error… [size=5][b]3.- D’oh![/b][/size] - Hi Homer, have you removed the debug code from production? [img]http://www.makinggoodsoftware.com/wp-content/uploads/2009/07/homer-simpson-doh.jpg[/img] [size=5][b]4.- It will be ready tomorrow.[/b][/size] The problem with …

Software Development
Member Avatar for ddanbe
0
154
Member Avatar for victor0101

How can I have a selected item in a combobox display the entire row in a data gridview using vb.net.

Software Development vb.net
Member Avatar for TomW
0
92
Member Avatar for alvalany

Hi friends, Now I feel that I am pretty good in C. Want to do something really interesting.Does any one have ideas of creating useful 'softwares' in C :) Pls guide me..

Software Development c engineering
Member Avatar for fatihpiristine
0
127
Member Avatar for edgar5

Okay, it's been a long time since I've programmed in C++! Languages change considerably in the last 5 years or so. In reviewing some source code I often see statements like this: [CODE] wxString label; if (name == wxT("Undo")) { label = _("Undo");[/CODE] obviously, I snipped out a lot of …

Software Development c++
Member Avatar for edgar5
0
137
Member Avatar for ryno365

Hello DaniWeb. Just brushing up on some Java and got a quick syntax question. What does the this code do? [CODE]LoginForm formBean = (LoginForm)form;[/CODE] Now I know that a formBean object of type LoginForm is being created but I dont know what its being declared with. Whats happening on the …

Software Development java
Member Avatar for quuba
0
117
Member Avatar for OneDreamCloser

hi all, i have a file that contains the following data (just a sample) : [code]501 0 0.932 0.933 0.931 0.931 0.929 0.933 0.93 0.928 501 1 0.974 0.98 0.978 0.976 0.974 0.974 501 2 0.953 0.949 0.944 0.951 0.942 0.942 0.942 0.948 501 3 0.933 0.934 0.934 0.935 0.931 …

Software Development python
Member Avatar for OneDreamCloser
0
163
Member Avatar for ROTC89

ok so i am suppose to write a program that displays binary and hexadecimal as so 0000 1010 A, but some of my code shows 1C and i dont know how to fix it. please help [code=c++] /* */ #include<iostream> using namespace std; int main() { int arr[8]; char p …

Software Development c++ display
Member Avatar for sandeepss6s
0
127
Member Avatar for s.praneeth

Write a unit conversion program that asks the user to identify the unit from which they want to convert and the unit to which they want to convert. Legal units are inches, feet, miles, millimetres, centimetres, meters, and kilometres. Convert from? Inches Convert to? Millimetres Value? 10 10 in = …

Software Development legal python
Member Avatar for jlm699
0
339

The End.