132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jonsca

I'm having a hard time geting access to properties in the var output of the query (I know I can use foreach on the result that I've got but I'm not sure which elements values I'm accessing). I think my query is just plain wrong, so I'd appreciate some help. …

Software Development
Member Avatar for jonsca
0
219
Member Avatar for AutoPython

Okay, I am confused on the global statement. To my knowledge it lets you easily access variables from a function to be used in the session. Now someone said that it's useless and you shouldn't use it in your code. Is this true?

Software Development python session
Member Avatar for AutoPython
0
331
Member Avatar for AnGuRuSO

I'm writing a program to draw a three-dimensional cube (with a corner cut off) without using any 3D graphics APIs. The only API call I make is win32's SetPixel() Everything is going great. I've drawn lines, faces, and even the entire cube. Then rotation came along. For some reason, when …

Software Development api c++
Member Avatar for NathanOliver
0
118
Member Avatar for leverin4

I'm running into an issue with a program. I need a method that takes a string and returns every possible combination of upper and lower case letters for that string. For instance, cat would return: cat caT cAt cAT Cat CaT CAt CAT The string entered could be any length …

Software Development algorithm java
Member Avatar for nomemory
0
795
Member Avatar for vlady

hello, pls can somebody show me a way how to solve the following exercise: A number, a, is a power of b if it is divisible by b and a/b is a power of b. Write a function called is_power that takes parameters a and b and returns True if …

Software Development python
Member Avatar for vlady
0
3K
Member Avatar for arcticM

realy desperate here.. :'( my prog is getting data about problems (computer/electricity..ect (not real C problems)) from txt file..and every line in file has a different problem..so I made one PROBLEM problem; (object) and in my getProbDetails() function I'm getting the first line..reallocing to add one more object (creating array …

Software Development c
Member Avatar for arcticM
0
171
Member Avatar for sfuo

Hey I was wondering how the string class is able to output its self the way it does. For example: [CODE]#include <iostream> #include <string> using namespace std; int main() { string testString; testString = "Hello"; cout << testString << endl; system("PAUSE"); return 0; }[/CODE] If I were to try to …

Software Development c++
Member Avatar for mrnutty
0
253
Member Avatar for kele1

i'm supposed to write a program that simulates cointoss. for each toss the program should print heads or tails and it would toss 100 times and counts the number off times each side of the coin appears. it should also call a seperate function 'flip' that takes no argument and …

Software Development c c# c++
Member Avatar for NathanOliver
0
234
Member Avatar for c-code-it

Hi, I have the following problem: I’m developing with Visual Studio 2008, C# in an English environment. I’m connecting to MS SQL Server 2008 and using the server Management Studio also in English. I am working on a joint project which has been written with the same software but in …

Software Development visual-studio
Member Avatar for sknake
0
129
Member Avatar for danielagaba

hi i developed an app in VS 2008 with vb.net which was intended to have reporting features but unfortunately deploying with crystal reports was too hard so i chose to go with .rdlc but i'm completely clueless on how to use it, whether it has a report viewer, how it …

Software Development vb.net
Member Avatar for CodeDoctor
0
112
Member Avatar for Sobakaa

Hi, guys, i need some help, as i can't find a mistake in my code for some hours. I'm expiriencing a problem in function makeCodes, which should make huffman codes for my symbols. In my head this works just fine, recursively making codes, but my Visual Studio crashes on the …

Software Development c visual-studio
Member Avatar for Sobakaa
0
88
Member Avatar for vasanth.kanna

Hello Friends, When i try to show VB.net interop forms within VB 6.0 i have got the error "object variable or with block variable not set ". I was create interop form library in vb.net and use the created TLB as a referece in VB 6.0 and in button click …

Software Development vb.net
Member Avatar for CodeDoctor
0
236
Member Avatar for blamp

I completed most of the functions and it compiles but need help with two.Can someone help me with the uniqueScore function which is suppose to print test scores that only appears once and the differenceScore function which is suppose to print the difference between the largest and smallest score. #include …

Software Development c++
Member Avatar for StuXYZ
0
118
Member Avatar for Jumbo12

What is the difference between Common Language Interface and Common Language Infrastructure? Please explain.

Software Development vb.net
Member Avatar for CodeDoctor
0
95
Member Avatar for Fibinacci85

hi thanks for your help in advance, I'm Realy new java in particular to netbeans I'm currently a 2nd year degree student and one of my subjects is Data Structures and Algorithms in java. My assignment requires me to right a program that reads in a file and out puts …

Software Development java java-netbeans
Member Avatar for verruckt24
0
115
Member Avatar for Wolf CCMLG

I am having an extremely difficult time with this programming challenge I have to do. I have no idea where to begin on this. I am a beginning programmer ([i]obvious I know[/i]), and here are my instructions for the challenge: [b] "Write a class EncryptableString that is derived from the …

Software Development c++ encryption
Member Avatar for Alex_
0
904
Member Avatar for i are smart

in Vista, cTurtle worked like a charm, but in Ubuntu, when i downloaded the cTurtle to my desktop and moved it to site-packages, it still won't work. When i clicked on the downloaded cTurtle.py file, what i get is a text file with chinese characters, and it closes within a …

Software Development python ubuntu
Member Avatar for sneekula
0
252
Member Avatar for chico2009

Hi All Could you please help me with the following, #Convert C to F def Tc_to_Tf (): Tc = input ("What is the Celsius Temperature ? " ) Tf = 9.0/5.0 * Tc + 32 print 'The temperature is ', Tf, ' Degrees Fahrenheit' I get NameError: name 'Tf' is …

Software Development python
Member Avatar for chico2009
0
195
Member Avatar for Benderbrau

Hello, I'm posting this code so that maybe it will help someone else in the future. I spent about a week trying to figure this out, and Google searches were not helping. Hopefully anyone else wondering about this will see this post on a Google result. The program I finished …

Software Development algorithm python
Member Avatar for Gribouillis
0
161
Member Avatar for sonygamer

Hi everyone, I have to write a code that finds and prints all prime numbers from 2 to whatever number the user inputs, be it 10 or 10,000. So far what i have is this: [code=cplusplus] #include <iostream> using namespace std; int main(){ int n,p,t,limit; cout<<"input the limit:"; cin>>limit; //outer …

Software Development c++
Member Avatar for ashen77
0
151
Member Avatar for edwar

Hi, is there anyone who could help me to writing my program output to txtfile. i mean read file and write the output to txtfile for example: FILE *fp fp = fopen("test.txt", "r"); if(fp = NULL){ printf....... } and what should i do to writing the output to txtfile thanks …

Software Development c
Member Avatar for yellowSnow
0
104
Member Avatar for ktkevin1222

I'm fairly new to coding VB 2008 I need help converting a text document with a type of code in it. One line looks like this: 52.000000, 400.000000, 1.3107711, 0 I need to convert that to an xml file that looks like this: - <CuePoint> <Time>11619</Time> <Type>event</Type> <Name>Marker 01</Name> - …

Software Development vb.net xml
Member Avatar for ktkevin1222
0
226
Member Avatar for sv_1124

could anyone help me with this code? the algo is alroght when tested manually. guess there is some problem with the declaration part which gives huge values(garbage ) thank you[code]#include<iostream.h> #include<stdio.h> #include<stdlib.h> #include<math.h> #include<conio.h> #define m 10 // m samples #define n 5 // n variables #define dim 5 //whatever …

Software Development c
Member Avatar for tux4life
0
255
Member Avatar for Tank50

Hi In my Project I used to connect to sql server2000,which is not in local computer.I use visual studio 2005 to develop the windows application.Once I run the apllication it gave me error message ,below I mention the error meassage I got [COLOR="red"] A network-related or instance-specific error occurred while …

Software Development open-source sql visual-studio
Member Avatar for Tank50
0
159
Member Avatar for sonia sardana

I want to convert VB.Net to C# code VB.NET- [code] Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try Dim lCount As Integer For lCount = 1 To 5 ListView1.Items.Add(lCount.ToString) Next Catch ex As Exception MsgBox(ex.Message) End Try End Sub Private Sub Button1_Click(ByVal …

Software Development listview vb.net
Member Avatar for DdoubleD
0
234
Member Avatar for Bloubul

I need help once again. I am new in this course and are still battleling with some of the work. I wrote a code for Displaying Stock Information, however it's giving me a error. Please help? /* Chapter 8: Programming Assignment 9 Programmer: T. du Preez Date: September 20, 2009 …

Software Development java java-swing programming-construct
Member Avatar for VernonDozier
0
167
Member Avatar for mgyucht

I have been having trouble with assembling a program, and I would really appreciate any help. The program is as follows: .model small .stack .code start mov ah,2h mov dl,2ah int 21h mov ah,4ch int 21h end When I build it I get a "error a2008: Syntax error: start" error. …

Software Development assembly
Member Avatar for jingo1126
0
551
Member Avatar for jingo1126

ok i can inverse the code like 1234 to 4321..but when i applied jmp and cmp i dont know what goes wrong with my data.. code without loop [code] .model small .stack .data .code start: mov ah,1 int 21h push ax mov ah,1 int 21h push ax mov ah,1 int …

Software Development assembly
Member Avatar for mathematician
0
105
Member Avatar for TechSupportGeek

Hello again guys, this time I need help with the [B]FormClosing()[/B] Event in the Picture Viewing application I made. I wanted it to prompt the user before closing the form (if he had any unsaved changes) and I did it without help. But, the bad thing is, when someone saves …

Software Development vb.net
Member Avatar for sknake
0
246
Member Avatar for dharen

help me pls i have a project its DEPRESSION TEST using Assembly Language i need to know how to create a new screen after entering a character and tally all the answers that user gives on the questions pls help me i dont know the codes to be used tnx …

Software Development assembly
Member Avatar for dharen
0
37
Member Avatar for jefanot

Hello, I really need help. If anyone could, please tell me what I'm doing wrong. Well, I'm making this program that asks if you're happy. Then if you don't answer yes, it will ask the question again until you do. I thought that it would be fun to have a …

Software Development c++
Member Avatar for William Hemsworth
0
119
Member Avatar for TenaciousC22

I am pretty new to C#, but I do have some experience with programming ("some" being the operative word here). I am wondering what is the best way to completely exit out of code at a certain time. For example, I am writing an application to read in a Photoshop …

Software Development
Member Avatar for sknake
0
102
Member Avatar for chunalt787

I am a C++ and Java programmer and I just have a couple simple syntax questions that I can't find a clear answer to. Yes I tried Google. [B]Question 1: [/B]I found the following code on another forum. [CODE]typedef struct List { char* Name; char* Address; BOOL is_present }List_info; List_info …

Software Development c linked-list
Member Avatar for chunalt787
0
152
Member Avatar for zinjnhell

i need a java program in cpu scheduling

Software Development java
Member Avatar for peter_budo
0
48
Member Avatar for power_computer

Ok I have to make a 3-D array within a class and read from a file with input like this [code] 90312 Thing_1 12.34 100 25 // Shelf 9, row 3, bin 12 20705 Thing_2 54.78 24 25 10101 Another_Thing 123.45 183 4 [/code] There array is based off 9 …

Software Development c++
Member Avatar for power_computer
0
276
Member Avatar for Barefootsanders

Hi all, I have a php/mysql based site set up. I want to keep my database layer updated via a python script that will query some other systems, parse data and make the appropriate CRUD calls to my database. My question is might be a simple one but I'm wondering …

Software Development python
Member Avatar for Stefano Mtangoo
0
157
Member Avatar for doomfrawen

Hi guys!! I've to make a program that reads an arithmetical sentence from a textbox, e.g 12.3*34+4*5-3 and then on another textbox identify and display what is the content of the first textbox, for example taking the last ex: If I have this input: 12.3*34+4*5-3 The output should look like …

Software Development display regex vb.net
Member Avatar for doomfrawen
0
211
Member Avatar for Silvershaft

I got a problem when using mysql connector with wxWidgets my program crashes right when I start debugging, but it gives no compiler errors. Main.h [code]#ifndef __MAIN_H #define __MAIN_H #include <wx/frame.h> #include <wx/textctrl.h> #include <wx/button.h> // Mysql #include "mysql_connection.h" #include <cppconn/driver.h> #include <cppconn/exception.h> #include <cppconn/resultset.h> #include <cppconn/statement.h> class MainApp: public …

Software Development c++ mysql
Member Avatar for yonghc
0
241
Member Avatar for MrNoob

hello i was reading today some stuff abt bitfield but here in this program I understand most of it but there unnamed fields inside the structure book says its stuff for allgiment or something like that i dont rlly get what does it do [code] /* fields.c -- define and …

Software Development c
Member Avatar for codeguru_2009
0
145
Member Avatar for CrAzD

I'm trying to figure out how to get info off of a 1 structure to use to get info from a second structure and use the info from the second to change the first. Here's some code hopefully explain it better. [code=c] struct weapons { string name; int str; }; …

Software Development c++
Member Avatar for CrAzD
0
119
Member Avatar for NightLightSky

hey i really need help, how can i generate a simple coding of pythagorean table where it reads the upper right triangle? together, how to get table parameters, use nested loops (which prints out the raw list of all Pythagorean-candidates (do not need to store in an array) & how …

Software Development c++
Member Avatar for Foamgum
0
174
Member Avatar for brando|away

I'm trying to crop an image: [code] Bitmap bmp = (Bitmap)pictureBox1.Image; Bitmap cBmp = bmp.Clone(croppedAreaRectangle, bmp.PixelFormat); pictureBox1.Image = cBmp; bmp.Dispose(); [/code] It's partly working, but the image result is smaller, and from a different area out side the selected cropped area. So what's wrong?

Software Development image
Member Avatar for Diamonddrake
0
93
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 algorithm c++
Member Avatar for sfuo
0
109
Member Avatar for Der_sed

The following binary search code runs perfect . I feed values that exist in the array and it tells me at what location they are. But if i enter a value non-existent in the array it goes bad. It says number not in array and after that... [U] Any other …

Software Development c++
Member Avatar for vmanes
0
114
Member Avatar for maricel91

help me about this: A program that ask your name and display it. we're using msdos.. thank you..

Software Development assembly
Member Avatar for jingo1126
0
49
Member Avatar for cookies

I'm using system("color __"); and system("title ____"); in my code and I'm struggling on how to change them according to the input. eg. if the user enters he wants green background and yellow words ... i'm stuck with 2 variables (i would convert them to 2 and 6 [the numbers …

Software Development c++
Member Avatar for cookies
0
77
Member Avatar for KonkaNok

Hi, I noticed a few snippets recently where a size_t variable was used for array indices, and after searching around I'm still not sure what the obvious advantage of using a size_t variable over a typical int would be.. To clarify, what would be the difference between this: [code=cplusplus] for(size_t …

Software Development c++
Member Avatar for KonkaNok
0
148
Member Avatar for Tommy_101

Hi, I've been trying to create a program that gets wikipedia pages, and lists all the links found in the page source. I've used the urllib.urlopen() method to do this, and unfortunately I've run into a little problem. Instead of getting the actual page like say the main page, or …

Software Development file-system python
Member Avatar for Tommy_101
0
208
Member Avatar for xagutxu

Hi! I am using the Microsoft Visual Studio to build a program that has several threads. The threads communicate among them reading a shared variable; thus, a thread is waiting: "while (variable == 0);", until other thread puts the variable into 1. That occurs more than one time in the …

Software Development c++ visual-studio
Member Avatar for xagutxu
0
129
Member Avatar for mostermand

Hi I have a problem, I hope you can help me with. I have a number, which I need to compare to some values. I do not wish to go through all the values, and compare them individually, as I there are too many for it to be efficient. Neither …

Software Development c++
Member Avatar for mostermand
0
175

The End.