132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mrnutty

#include<iostream> #include<fstream> #include<cmath> #include<iomanip> using namespace std; /* 215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^1000? */ //my logic is to export 2^1000 into a text …

Software Development c++
Member Avatar for Rashakil Fol
0
141
Member Avatar for csharplearner

Hi all, I am trying to create Web Controls and i am getting this error: [COLOR="red"]Could not load file or assembly 'Microsoft.Web.UI.WebControls' or one of its dependencies. The system cannot find the file specified. [/COLOR] i inserted all respective directives and namespaces at the begining of the page and also …

Software Development assembly web-server
Member Avatar for csharplearner
0
190
Member Avatar for shazzy99

Dear guys, Can anyone help me out to open up a windows default dialog box in C# to browse folder and the folder path be displayed in the lab/edit box. I am new at C#. Just created a simple form application and now looking to do the backend coding Regards, …

Software Development
Member Avatar for LizR
0
285
Member Avatar for guest7

Hi, I have to call an external executable program (prog2) from within my program (prog1) and then use the output of that exceutable program (prog2) in program (prog1) after calling it. I have to manipulate the output obtained from progam (prog2) in program (prog1) and then perform this iteration n …

Software Development c++
Member Avatar for guest7
0
110
Member Avatar for javaman2

im trying to write a program that determines the type of hand with three cards (one pair, three of a kind, straight, flush, straight flush, high or low card, or royal straight flush) This is my code so far. I got the cards to come up to be what they …

Software Development java
Member Avatar for puneetkay
0
91
Member Avatar for edgar5

With this code: [CODE] Imports System.Text Public Class Form1 Public quoteStr As String = Global.Microsoft.VisualBasic.ChrW(34) Public illegalChar As Boolean = False Public asteriskReplacement As New StringBuilder(" ", 4) Public asteriskComboIndex As Integer = 0 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim keyboardCharacters As String() …

Software Development vb.net
Member Avatar for Comatose
0
277
Member Avatar for amerninja2

Can someone give me a link to a good tutorial or something on C++ Winsock FTP and HTTP communication. I know how to use TCP/IP, but when you connect straight to an IP, they have to be connected to the same network your on for it to work. If you …

Software Development c++
Member Avatar for amerninja2
0
146
Member Avatar for amerninja2

I use the Dev-C++ compiler on a Toshiba laptop running on Windows Vista 32-bit. Im good in C++, and I have been learning to use the OpenCV (Open source Computer Vision) library with C++. When I run my C++ app, the OpenCV window that uses GUI freezes up. It shows …

Member Avatar for amerninja2
0
177
Member Avatar for revenge2

hello there, i started learning python yesterday and im having quite a bit of difficulty following tutorials... I was following this[URL="http://en.wikibooks.org/wiki/Python_Programming/Variables_and_Strings"] tutorial [/URL] but most of what i wrote did not work. How do i make the code compatible with python 3.0?. for instance it says [CODE]lucky=7 print lucky [/CODE] …

Software Development python
Member Avatar for Stefano Mtangoo
0
468
Member Avatar for BevoX

I have a rather simple question, and I' ve been looking for the answer for awhile, but did not find any. So I would like to know, what is the proper way of deleting a pointer. For example I have a class with some kind of array, which I want …

Software Development c++
Member Avatar for BevoX
0
122
Member Avatar for aveltium

Hi, I'm sorry for making the question unclear, but my English is not good. I will try to explain it: [code=java] class test0{ test1 t1 = new test1(); public static void main(String args[]){ new test0(); } public test0(){ t1.displaymsg1(); t1.callDisplaymsg0(); } public void displaymsg0(){ System.out.println("Successfully linked to test0 class"); } …

Software Development java
Member Avatar for aveltium
0
125
Member Avatar for firoz.raj

sir i want if user click on submit all the records should come form production table if it match dtpicker1 and dtpicker2 value i have written a code but it is not working kindly let me know. [code] Private Sub Command1_Click() Set rs = New adodb.Recordset [B]rs.Open "select * from …

Software Development visual-basic
Member Avatar for firoz.raj
0
103
Member Avatar for vandenzergen

Hello everyone, I really want to know what should I do first in making games using c++. We all know that c++ is the most widely used programming language in making games. But, there is still things which are not clear to me as of now. I'm still a newbie …

Software Development c++
Member Avatar for vandenzergen
0
117
Member Avatar for vandenzergen

I'm having a problem on how to create a program on c++ that creates its own file and storage capabilities. I'm planning to have an interface like this so I put a little detail about the program just to give you the idea of what I actually mean... it goes …

Software Development c++ storage
Member Avatar for vandenzergen
0
164
Member Avatar for Blackeagle

Hello, i'm trying to make a a list of items in a Text Area, something like this: apple 2 22 banana 31 1 orange 1 3 i want to it o be organized such that the numbers are in one column, and thats not working with me since the names …

Software Development apple java
Member Avatar for Blackeagle
0
104
Member Avatar for marsheng

Hi I need to move a shape (say for example a 5 mm circle) across a drawing, however as the shape moves it needs to redraw what was on the page before the shape got there. Thanks Wallace

Software Development pascal
Member Avatar for LizR
0
259
Member Avatar for ddanbe

I'd like to write a matrix evaluation tool.(add, multiply, inverse etc.) So I need some way to manually input the values of a matrix. I don't want the input to be console like : "Give val for r1,c2" or something like that. I want a forms app with a table …

Software Development
Member Avatar for LizR
0
118
Member Avatar for Aerialknight

I try to use 'extended' type for variables but I cannot, turbo pascal 7.0 report 'Error 116: Must be in 8087 mode to compile this' - so I don't know if sbd can help me solve this.

Software Development pascal
Member Avatar for LizR
0
130
Member Avatar for Grimshad

I'm looking for some help with some C++ code. I have working knowledge and understanding of code and coding in general, but don't actually program myself. I have 2 files TFGame and TFMenuConsole In TFGame I put [CODE]var config bool ToggleWarhead;[/CODE] and later put [CODE] PlayInfo.AddSetting(default.GameGroup, "ToggleWarhead", default.SIGPropsDisplayText[i++], 0, 1, …

Software Development c++
Member Avatar for Grimshad
0
181
Member Avatar for clutchkiller

You are able to hide the desktop icons on xp by right clicking on the desktop and choosing to hide them, but how would you do it through c++? I was messing around with DestroyWindow and ShowWindow, but I cant figure it out. Any help? WinSpector is telling me that …

Software Development c++
Member Avatar for Comatose
0
105
Member Avatar for srs_grp

I have a byte array has follows: 0 6 -56 28 How can I get its integer value by doing a manual calculation?

Software Development java
Member Avatar for verruckt24
0
851
Member Avatar for revenge2

How does [URL="http://www.swaroopch.com/notes/Python_en:Basics#Indentation"]indentation[/URL] work exactly?. Could someone expand on the explantion given on that page please. -regards.

Software Development python
Member Avatar for mn_kthompson
0
122
Member Avatar for sinduja

#include<iostream.h> #include<conio.h> void main() { int n,i,j,t,s; clrscr(); char sname[30],rating[60]; cout<<"enter no of songs in the list"<<endl; cin>>n; cout<<"enter song name and rating"<<endl; for(i=1;i<=n;i++) { cin>>sname[i]; } for(i=1;i<=n;i++) { cin>>rating[i]; } cout<<"The top songs are in the order:"<<endl; for(i=1;i<=n;i++) { for(j=i+1;j<=n;j++) { if(rating[i]<rating[j]) { t=rating[i]; s=sname[i]; rating[i]= rating[j]; sname[i]=sname[j]; rating[j]=t; …

Software Development c++
Member Avatar for vmanes
0
120
Member Avatar for mustaine85

Hi, how do you append to a variable? I can only get it to work with a seperate file like this: printf $number1 >> sum.txt I tried this : $number1 >> $sum but it says $sum: ambiguous redirect, any ideas? :)

Software Development shell-scripting
Member Avatar for eggi
0
89
Member Avatar for cam875

I am trying to figure out for my physics simulator how to give my object name a variable or something, ill show an example and the compiler flags it an error but all i am trying to do is pass it the value not the variable long atomID = 0; …

Software Development c++ operating-system
Member Avatar for cam875
0
119
Member Avatar for csharplearner

Hello all, I am trying to pass data between two files using POST method. I am using Visual Studio 2008 and working in C# Environment to run this in ASP.net. The code i am using is: sareeweb.aspx [code=c#] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="sareeweb.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

Software Development algorithm asp.net visual-studio web-server
Member Avatar for iDeveloper
0
143
Member Avatar for andreb

I was working with some c++ code from a site. When i try to link in dev c++ I get this. [QUOTE] [Linker error] undefined reference to `GameEngine::m_pGameEngine'[/QUOTE] The code compiles perfectly but does not link. [CODE]class GameEngine { protected: // Member Variables static GameEngine* m_pGameEngine; HINSTANCE m_hInstance; HWND m_hWindow; …

Software Development c++
Member Avatar for Clockowl
0
117
Member Avatar for bamabambhole01

//cube.h #ifndef CUBE_H #define CUBE_H class Cube { public: Cube(); ~Cube(); void setSide(double s); double getSide(); double Area(); double Volume(); void Properties(); private: double Side; }; #endif ´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´ #include <iostream> #include "cube.h" using namespace std; Cube::Cube() { } Cube::~Cube() { } void Cube::setSide(double s) { Side = s <= 0 …

Software Development c++
Member Avatar for StuXYZ
0
166
Member Avatar for monere

Hello, I am a new beginner to c++. I am trying to launch an application in using the following command: system("clip100.txt") File clip100.txt got opened on my word processing software running and i had to exit from word processing to get my program continued. My question is: How can i …

Software Development c++
Member Avatar for monere
0
131
Member Avatar for vckicks

Hello, I'm having some very confusing problems with the StringFormat class. I'm hoping someone will know what's going on. I want to draw text right-to-left. It's multiple lines so I figured using the StringFormat class was an easy way to handle that, I declare it as: [CODE]StringFormat f = new …

Software Development
Member Avatar for vckicks
0
201
Member Avatar for clutchkiller

Here is my code that i am working on. Upon running the exe, it asks the user for a temporary password. After that, the screen saver pops up. Upon exiting the screen saver, the console will ask you for the temporary pass that you entered in order to renable the …

Software Development c++
Member Avatar for Comatose
0
111
Member Avatar for Alishaikh

I'm trying to do selection sort for objects...But it wont work, please help. We were told to change the first one to do objects. Any help appreciated [ICODE] public static void selectionSort (int[] numbers) { int min, temp; for (int index = 0; index < numbers.length-1; index++) { min = …

Software Development java
Member Avatar for verruckt24
0
168
Member Avatar for edgar5

Here is what I want to accomplish--I want a ListBox exactly like everyone else uses (almost always)! When the user mouse-clicks in the box and enters a keypress, the first item in the dropdown list, with that char as a first char, is selected. The values are restricted to those …

Software Development vb.net
Member Avatar for edgar5
0
120
Member Avatar for asif786

i want to store multiple values in an array. lets say the variable name is voternumber which is a unique number that is generated which is between 1 and 5000. i will output the voternumber to a voter and then as them to input it so that i can perform …

Software Development vb.net
Member Avatar for Ramy Mahrous
0
168
Member Avatar for Aigini

I would like to know the purpose of using the table adapter in vb.net, how to use it and how to relate it to the coding section when it is used?

Software Development vb.net
Member Avatar for Ramy Mahrous
0
97
Member Avatar for scrypt3r

does any of u know how to make a app in vb 2005 send a e-mail with text and/or attachments ?

Software Development visual-basic
Member Avatar for Comatose
0
209
Member Avatar for damo87

Hi guys, i'm doing a peice of coursework for uni where we are required to implement a Min-heap/priority queue for calculating the Minimum Spanning Tree. In a min heap, the parent's value needs to be smaller than that of its two children. I've tried to implement this,giving the following list …

Software Development algorithm python queue
Member Avatar for damo87
0
434
Member Avatar for cppnewb

Hi, It's me again with another silly question:) I was wondering if there was a way using ofstream to not erase the contents of the file it is writing to and simply write at the end. Thanks! P.S. I'm using windows XP and Dev C++

Software Development c++
Member Avatar for Freaky_Chris
0
123
Member Avatar for dwhite409

If you recall in the implementation of list: struct list_node_base { list_node_base* next list_node_base* prev ... [B]void hook(const list_node_base*);[/B] .... }; I wanted to look under the hood of the [B]hook[/B] function, but can't find it anywhere in the STL library or any reference to this method via Google for …

Software Development c++
Member Avatar for dwhite409
0
164
Member Avatar for sydetys

HEADER; I am noob in programming, so keep it simple thank you :) I use VS 2008 pro SP1 OS is vista Ultimate x64 SP1...(SP2 beta I will try later) Which function is better and what are differences? 1. system () 2. CreateProcess () ...is there more choices? My goal …

Software Development c++ windows-vista
Member Avatar for Freaky_Chris
0
255
Member Avatar for mustaine85

Can I use my own variables within awk and sed for example: I've written a while loop with a counter $i and I want to use the value of $i within sed and awk to edit certain lines of text within a data file. I want to use : sed …

Software Development shell-scripting
Member Avatar for mustaine85
0
90
Member Avatar for zedame

i'was asked to develop chat application using c++ anyone can help me finding tutorials/ articles/ walkthrough or what ever i can get that discuss this topic

Software Development c++
Member Avatar for Freaky_Chris
0
116
Member Avatar for u8sand

Hello everyone... Recently, i tried making a puzzle solver. And it came out perfect. I wanted to try somthing harder so i went on to a sudoku puzzle solver. You see i checked a bunch of places and found that the best and easiest way to do it is with …

Software Development c++ puzzle
Member Avatar for algoboy
0
166
Member Avatar for firoz.raj

SIR , I WANT IF USER CLICK ON PRINT BUTTON ALL THE RECORDS SHOULD COME IN A REPORT FROM MR QUERY [ATTACH]8753[/ATTACH] BUT RECORDS ARE NOT SHOWING ON DATA REPORT. I HAVE WRITTEN A CODE IN PRINT_CLICK Private Sub Command4_Click() [B]Set rs = New adodb.Recordset rs.Open " select * from …

Software Development visual-basic
Member Avatar for ryan311
0
316
Member Avatar for u8sand

Hey guys. Another problem : ( Well you see, i was attempting to make an array that stores char's in a lets say 10 by 10 grid. Then i can display it Example: [code] char array[10][10] = { "----------", "| |", // ...... ext... "----------" }; for(int y = 0; …

Software Development c++
Member Avatar for u8sand
0
98
Member Avatar for Swemp

Hi, I'm a newbie in C++ and i'm working on a project, but it doesn't work.. The C++ program should read numbers into an array, the numbers are in a txt file. Each array number : ex. array[1], array[2], array[3]... should get a number from the txt file. In the …

Software Development c++
Member Avatar for Swemp
0
5K
Member Avatar for brothertse2008

OK im new to this so bear with me. I need to add a search function to my project. I need to input a value into a textbox, click a submit button and a screen needs to appear with the results Ive got a the following code but i get …

Software Development visual-basic
Member Avatar for ryan311
0
122
Member Avatar for Clockowl

Hey guys, Could I "teach" my compiler to do automatic type conversions for me? So when I have this program: [code=cpp] #include <cstdio> #include <string> using std::string; int main(){ int x; string y = "1234567890"; x = y; printf("y: %s == %d\n", y.c_str(), x); return 0; } [/code] It won't …

Software Development c++
Member Avatar for Clockowl
0
112
Member Avatar for Q8iEnG

Hi guys :), long time ^^ I have a question, I hope to get the answer :) "what is the name of all c++ exception handlers?" thanks in advance :)

Software Development c++
Member Avatar for Q8iEnG
0
97
Member Avatar for kaczmar86

I want my program to analyse geometric figures drawn by user. Figures must be filled with color. I have already found algorithm that checks if points are inside figure. I have problem with getting pixel color. [CODE=csharp] Bitmap rysunek; Pen pisak = new Pen(Color.Black, 1); rysunek = new Bitmap(pictureBox1.Width, pictureBox1.Height, …

Software Development algorithm
Member Avatar for ddanbe
0
295

The End.