43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for D.JOHN

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++
Member Avatar for D.JOHN
0
210
Member Avatar for F2guy

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 …

Software Development c++ queue
Member Avatar for F2guy
0
577
Member Avatar for TechSupportGeek

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
Member Avatar for sknake
0
153
Member Avatar for Krstevski

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
Member Avatar for Krstevski
0
101
Member Avatar for mrnutty

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++
Member Avatar for mrnutty
0
173
Member Avatar for oufa

could any one tell me is ax bx 8 or 16 bits cuz i am gettin crazy

Software Development assembly
Member Avatar for NotNull
0
73
Member Avatar for squallgoh

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
Member Avatar for squallgoh
0
142
Member Avatar for xenocide001

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 …

Member Avatar for xenocide001
0
215
Member Avatar for chathuD

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
Member Avatar for parthmishra
0
133
Member Avatar for foosion

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
Member Avatar for foosion
0
205
Member Avatar for kz07

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++
Member Avatar for kz07
0
5K
Member Avatar for nomemory

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
Member Avatar for woooee
1
217
Member Avatar for S.A.H

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
Member Avatar for S.A.H
0
110
Member Avatar for necrolin

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++
Member Avatar for necrolin
0
96
Member Avatar for metalla_nz

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
Member Avatar for sknake
0
968
Member Avatar for patto78

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
Member Avatar for patto78
0
142
Member Avatar for brando|away

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
Member Avatar for brando|away
0
138
Member Avatar for papanyquiL

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
Member Avatar for papanyquiL
0
307
Member Avatar for C#Beginner

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
Member Avatar for C#Beginner
0
112
Member Avatar for pw_jamison

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
Member Avatar for sknake
0
381
Member Avatar for Loony064

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
Member Avatar for Loony064
0
99
Member Avatar for Phloxicon

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++
Member Avatar for Tom Gunn
0
285
Member Avatar for terdie

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
Member Avatar for DdoubleD
0
132
Member Avatar for nunos

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
Member Avatar for nunos
0
344
Member Avatar for stoymigo

Hi, how can i export code snippets from VS 2008 that i created to a different computer. -Thanks

Software Development
Member Avatar for stoymigo
0
149
Member Avatar for miac09

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
Member Avatar for jice
0
160
Member Avatar for turbomen

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,

Software Development delphi pascal
Member Avatar for EdFallon
0
229
Member Avatar for jrosh

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
Member Avatar for jrosh
0
144
Member Avatar for jrosh

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
Member Avatar for masijade
0
110
Member Avatar for littlewonder

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...

Software Development c c# c++
Member Avatar for littlewonder
0
59
Member Avatar for ubi_ct83

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
Member Avatar for ubi_ct83
0
616
Member Avatar for Diamonddrake

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
Member Avatar for Diamonddrake
0
194
Member Avatar for Frederick2

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
Member Avatar for Frederick2
1
597
Member Avatar for KimJack

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
Member Avatar for BestJewSinceJC
0
126
Member Avatar for sravan953

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 …

Software Development os-x python seo
Member Avatar for EAnder
0
408
Member Avatar for ggl0rd

i got 5 textbox... 1st i click at textbox1, then i press tab key then he direct go to texbox4.. how i can setting for from textbox1 then press tab key he go to textbox2..

Software Development vb.net
Member Avatar for juliusceasar
0
103
Member Avatar for EvilLinux

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 …

Software Development c c# c++
Member Avatar for EvilLinux
0
2K
Member Avatar for MattyRobot

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++
Member Avatar for rughead
0
158
Member Avatar for neutralfox

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
Member Avatar for neutralfox
0
195
Member Avatar for katwalatapan

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 …

Software Development c queue
Member Avatar for Protuberance
0
1K
Member Avatar for arelius

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
Member Avatar for arelius
0
105
Member Avatar for JETFUSION

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 = …

Software Development c c# c++ session
Member Avatar for tux4life
0
127
Member Avatar for marky-b

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
Member Avatar for marky-b
0
90
Member Avatar for Moirae

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
Member Avatar for sknake
0
1K
Member Avatar for sravan953

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() …

Software Development os-x python
Member Avatar for sravan953
0
156
Member Avatar for jonte

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
Member Avatar for jonte
0
78
Member Avatar for katwalatapan

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 …

Software Development c c++ ide
Member Avatar for ajay.krish123
0
253
Member Avatar for singoi

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
Member Avatar for riteshbhushan23
0
180
Member Avatar for arelius
Member Avatar for arelius
0
124
Member Avatar for jrosh

Does a .jar file run on windows with out the JVM installed?

Software Development java
Member Avatar for majestic0110
0
122

The End.