43,549 Solved Topics
Remove Filter ![]() | |
To all the c++ experts, I have some doubt on how does the convertion works. If for instance, I want to convert a hexadecimal eg. 199 to to decimal, I use printf("%d",199); but what if I want the hexadecimal 199 to be displayed in binary? What must is use? Software Development c++ | |
I am having a problem compiling my code. The following error is displayed: make mpixlcxx -c -O3 potentialqueue_local.cpp mpixlcxx -c -O3 eventqueue.cpp "eventqueue_remote.h", line 20.36: 1540-0063 (S) The text "eventqueue_t" is unexpected. make: *** [eventqueue.o] Error 1 I am fairly new to C++ and not sure if the problem is … | |
Hello guys, since I'm new here, I did some research to find similar problems but I didn't find what I needed. Well, my problem follows as this: I created a Picture Viewing application in VB.NET and I want to add two functions: a save function and a function that lets … Software Development vb.net | |
Hey people... I have one problem... Find how many total cubes are there in the range from A to B, inclusive. An integer Y is total cube if it can be expressed as: Y = X*X*X, where X is also integer. The first total cubes are: 1, 8, 27, 64 … Software Development java | |
I haven't ever used CLA so I had to ask. For simplicity sake, Say I have a program that takes in at most 5 arguments. The arguments from args[1] - args[4] has to be some numbers. These number will be used for something, say to calculate its average. How could … Software Development c++ | |
Hi all. I'm new to the forum, this is my first post =) I'm trying to create a list containing 3^10 lists, each list has 10 string. Each string can be of 1 or 3 types, for simplicity let them be 'a', 'b','c'. So basically I wish to generate all … Software Development python | |
hi all i have some homework that i cant finish cuz i dont know how to print it the way my teacher wants it.. here's the thing *Print this in debugger [CODE] hello . . . 25 times[/CODE] in the right of the screen.... this is what i have so … Software Development assembly microsoft-windows windows-vista | |
I need to make a panal in a form to be visibale=falls in a one button click.and the next button click of the same button must be make the panel visibal = falls. and this is continuing. can some 1 help me.. Software Development | |
Why does this make sense in 3.1? [code]>>> a = b'\x01\x02' >>> a[0] 1 >>> a[0:1] b'\x01' >>> a[0] == a[0:1] False >>> a = '\x01\x02' >>> a[0] '\x01' >>> a[0:1] '\x01' >>> a[0] == a[0:1] True[/code] Shouldn't we get True for both comparisons? Software Development python | |
Is there any way to convert String s = "1234" to int s[4] = {1,2,3,4}? and how can i check if it does not contain any non-numeric characters? thanks=) Software Development c++ | |
Hello, I am a python newbie and I am trying to accommodate to the basics. What's the python equivalent for the following Java snippet ? [B]Java:[/B] [CODE]public class Main { public static void main(String args[]){ int a,b,c; a= (int) (Math.random()*100); c=0; while((b=(int)(Math.random()*100))!=a){ c+=1; } System.out.println(c); } }[/CODE] I was trying … Software Development java programming-construct python | |
hi every body , I want to write a program with vb.net about calculating the GPA in my program I'll ask the user to Enter the number of courses then I'll Generate ComboBox(s) by the number of courses ... So How can I do the dynamic Generate of the combobox … Software Development vb.net | |
What's the difference between (aside from syntax I mean): a) typedef struct MyStruct{....}; b) typedef struct{...}MyStruct; I saw this example in "Thinking in C++", but there's no real explanation as to if they're exactly the same or if there's some real difference in them. Software Development c++ | |
Hi all, XMLDocument.Load("http://ws.audioscrobbler.com/2.0/?method=artist.search&artist=Zlad!); If you open the link in FF it shows the error, IE seems blisfully unaware Its failing due to Last.FM outputting artist names with the wrongly encoded characters into the xml. This causes my C# app to crash. XMLException, invalid character How would I go about making … Software Development xml | |
Hi, the following project is the first small step in an anagram solver that I am coding. I have four letters "a", "b", "c", "d" and the aim of the following code is to produce all possible permutations of these letters, given that the first letter is always "a". (I … Software Development python | |
ok i'm working in visual studio. im working on an application with multiple forms, and im trying to access controls in form1, from the form2 class. Heres what im using now: [code] public partial class Form2 : Form { private Button btn1; public Form2(Button _btn1) { InitializeComponent(); btn1 = _btn1; … Software Development visual-studio | |
Hi everyone, I'm supposed to make a form with the basic shapes (circle, ellipse, pie, arc, etc...) drawn onto a panel. For each shape one will be hollow and one will be filled ontop of eachother. I can't seem to get the positions correct. All of the images are being … Software Development | |
I m a beginner trying to learn Visual C#(Visual Studio 2008). I was able to run a simple Visual C# program without errors. I was trying to look at the values of the variables in the DATA TIP in Break Mode.. by hovering over the variable. I have not been … Software Development c# visual-studio | |
so there isn't a way to run, say, a single method, as a specified user? where i'm coming from is... i want to create a directoryInfo list for a unc directory. i'm running the app as a non-admin user (eventually will be a service) but it's not finding the directory … Software Development | |
Hey All I'm busy with a program in VB.Net 2008 that performs sales. When a user clicks on the Invoice button, a record with the details of the Transaction is addedd to the Transactions table in the back-end MS Access 2007 database. The Transactions table has the following fields: LogID … Software Development vb.net | |
This would be trivial but it comes with a serious catch - I can't edit the Unrelated or Friend class. I can't seem to access a private data member despite the friend relationship between the classes. Code: [url]http://pastie.org/613042[/url] [code=c] class UnrelatedClass { ... private: friend class FriendClass; float m_fNumber; } … Software Development c++ | |
I recently posted a thread here but have different subject so I decided to make another. I have two questions 1.[B]]how can I deploy my application?[/B]there is a function Publish in visual studio but that didnt do the job(of maybe Im just doing it wrong).I have a database in my … Software Development c# visual-studio web-server | |
Hello. I have a (main) list of objects 'feedbacks' which have an 'order_id' and a 'message'. I have another list of simply 'order_id's whose correspondent object in the main list I would like to see removed. For example: main list: [object type 'feedback', object type 'feedback', object type 'feedback'] let's … Software Development python | |
Hi, how can i export code snippets from VS 2008 that i created to a different computer. -Thanks Software Development | |
Hi all, I'm learning python and hope someone can help me with a sort of tricky search/parse problem. I have a tab deliminited file like this: 2 1 863.8 300.2 0.0131 0.0759 0.1727 0.0879 1.5821 3 1 874.5 289.5 0.0574 0.1292 0.4447 0.2258 1.1846 3 2 874.5 289.5 0.0573 0.0527 … Software Development python | |
Dear Sir, Please help me on Delphi. Could you tell me how can I do the following question? Calculate and display the sum of the even numbers from 2 to 20 inclusive. Cheers, | |
I created a jar file using cmd prompt. when i run it using : jar cvfm <filename>.jar manifest.txt *.class gives the error: java.io.IOException : invalid header field.... Please help me to solve this... Software Development java | |
I managed to create a <filename>.bat file using a jar creator . It also creates <filename>.jar file but when i click .bat file it says unsupportedClassVersionError: bad version number in .class file .jar file says could not find the main class... how can I overcome this??? Software Development file-system java | |
hi, i get an error - 'incompatible types in assignment' for the following code [CODE] #include<stdio.h> int main() { char name[10]; name="Hello"; printf("%s",name); } [/CODE] Any help will be greatly appreciated... | |
i have loaded the string data from file to double array.this is example: const_array[1][]=a1,b1,c3, const_array[2][]=a2,b1,c3, const_array[3][]=a3,b2,c2, const_array[4][]=a2,b3,c1, const_array[5][]=a3,b2,c1, those data need to be compared to this string: append_test_data.this is also an array and it will be changed randomly by d program.the prob is,my prog just compare to the last data … Software Development c | |
In my project I had been using a set of arrays to hold some data, realized it was a bad design, so then I decided to create an object that holds all the relevant data, and add them to an arraylist, this work great except all the data was information … Software Development xml | |
I have a general question about threads prompted by something strange I'm seeing in an application I developed involving ODBC access to Microsoft Access and SQL Server databases. Let me present the context of the problem first. I have been developing some tutorials on ODBC database access in two different … Software Development c++ gui microsoft-access storage | |
Hi all, I have a quick question. Is this a proper way of using blackbox testing to test the stringTokenizer class? If not, would you provide a proper example that displays the pass or fail. [code] string = "cat, dog"; StringTokenizer token = new StringTokenizer(string, ","); if (token.countTokens() == 2) … Software Development java | |
![]() | Hey guys, I am making a program called 'Weather Watch' which basically gets weather updates for any city you type in. For now, it only gets info for a particular city. I don't know how to search for the term entered in [url]www.weather.com[/url] and then get the updates. The code … |
Hi, I've been working on this project I'm doing and its killing me because I can't figure why my array\formula's don't want to get along. Here is the general overview of what the project requires: Here the project: Operation • The user enters a score and clicks the Add button … | |
how can I use a function inside an object? (the code is too long to put here but here's a replica) [code=c++] class example { public: example(); ~example(); void doSomthing() { afunction(); } } void afunction() { //do more things } [/code] in this example i wouldnt [B][U]NEED[/U][/B] to use … Software Development c++ | |
Hello, Hope everyone fine over here. Well ... actually i am having some difficulties to choose my final year. I want to develop a desktop application. As i am in the network security field, i want to develop a keylogger software. I am new to vb.net and i dont know … Software Development vb.net | |
Hello, I tried to compile a posix mq_send and mq_receive application. The msg is sent on the queue successfully, but during the receive part, an error occurs. I have attached the send and receive part of the code, please do suggest any corrections. mq_send [code=c] #include <mqueue.h> #include <stdlib.h> #include … | |
Hello all, This shouldn't be too hard to answer. I have a bunch of folders, for example WarehouseApp, WarehouseLib, etc, were in each of these folders contains a project. Whenever I try to rename one of these folders that contains a project, I get the following error and the project … Software Development visual-studio | |
Hi there all, Could anybody please help me, as to why my program is not adding the right quantity's? [CODE]// Question 2a #include <iostream> using namespace std; int main ( ) { const int NR_SESSIONS = 3; int nrAttend; int votesForS, votesForR, votesForO; char vote; // Initialise totals votesForS = … | |
With the following code, the function only msgbox's "variable declaration" and "before for/each". i put them in there for debugging when i saw that my function wasn't getting all the way through. Any suggestions? [code=vb] Option Explicit Function ArrToCSV(ByVal array) msgbox "variable declaration" Dim strTemp Dim strQuote Dim x strQuote … Software Development visual-basic | |
![]() | Hello, I've written a class, and I've created an instance. When I try to debug it gives me an error and I really don't understand what that means. I looked at some other web sites but I don't understand what do I have to do. Can somebody please help me? … Software Development |
![]() | Hey guys, I have some code: [code='python'] import urllib2 as url import subprocess import os webs=open("url.txt",'r') read_webs=webs.read() def get_html(): try: req=url.urlopen(read_webs) res=req.read() return True except: print("<Error reading from the website>") def get_command(): if True: for x in res: if(x!='<'): command+=x else: break determine() command="" def determine(): format=command[len(command)-3:] print format get_html() … ![]() |
Hi, I´m new to Python and right now I´m trying to learn to parse a text. Here is my code (that doesn´t work the way I want) [CODE]text = ['Mary', 'went', 'out', 'at', '7pm', 'to','buy','some','candy'] keyPerson = ['Mary', 'Clark', 'Steven'] keyTime = ['7pm', '6am', '2pm'] keyThing =['candy','eggs','fruit'] list = [] … Software Development python | |
Hello everyone, I have installed Dev-C++ IDE on my system to run POSIX threads application. The program has compiled correctly. When I try to run the application, I am encountered with the following error Unable to locate component This application has failed to start because pthreadGC2.dll was not found. Re-installing … | |
Hi friends, i have a textbox where i have a path of the pdf file. now after pressing a cummand button i want this file to be opened. my code is as follows.. [I]Private Sub wazopen_Click() Dim myfol As String Dim myfln As String Dim myfpath As String myfol = … Software Development pdf visual-basic | |
| |
Does a .jar file run on windows with out the JVM installed? Software Development java |
The End.