132,726 Archived Topics
Remove Filter ![]() | |
#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++ | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 … Software Development c c# c++ computer-vision gui open-source windows-vista | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
#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++ | |
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 | |
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 | |
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 | |
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++ | |
//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++ | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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++ | |
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++ | |
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 |
The End.