132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kohuke

Hi. The program works fine if i just compile and run. But for the program to get graded it has to pass a test written in python which it does not. Since i'm complete dummy at c and programming if you find to explain, dumb it down please... so here …

Software Development c os-x python socket-programming
Member Avatar for kohuke
0
132
Member Avatar for b007

Hi, I would like to share over the net folder with users. How to I set permission on folders and files by using C#? the users are not windows authentication , the users are from a registers list of users. Please refer to microsoft folder sharing application on [url]https://foldershare.com/welcome.aspx[/url] I …

Member Avatar for LizR
0
238
Member Avatar for AutoC

Hi, I want to transfer a file as it is via a socket...not read the file contents and send it.How can I do this?

Software Development c++ socket-programming
Member Avatar for AutoC
0
1K
Member Avatar for smile4evr

hi... this is a small doubt in VB6... i am making a request form... in which one of the fields are reasons... now i want it such if my user send in a new reason then it should get written into my database and generate it as a part of …

Software Development visual-basic
Member Avatar for QVeen72
0
149
Member Avatar for SoulMazer

First off, I know that to set an indexed variable, say, mylist[3] = "Hello". I also know that you wouldn't be able to set mylist[3] if you didn't first state: [code = python]mylist = ["Whatever", "Whatever", "Whatever", "Whatever"][/code] But, if you had a variable with an extremely large index, it …

Software Development python ruby
Member Avatar for SoulMazer
0
85
Member Avatar for Fiery Demon

Hi there, I have an assignment due in a couple of days and I need some help. I don't have time to read a Java books. Plus, my teacher is useless as he can't explain anything...and the TAs are worst. My error is in line 145 (scroll down) saying "illegal …

Software Development java
Member Avatar for VernonDozier
0
124
Member Avatar for clutchkiller

Im still a newb when it comes to programming so im just curious, i understand as far to where return(0); at the end of a function tells the program their were no errors and to end the program right? But what else can you use return(???); for? And how exactly …

Software Development c++
Member Avatar for vmanes
0
273
Member Avatar for jcafaro10

I can't really seem to find a jython forum and this question is somewhere between a jython and a python question. I'm trying to get a java Scanner in python. So in java I say myInterpretter.exec("import java.util") and then in python I try and access jav.util.Scanner but it says java …

Software Development python
Member Avatar for Stefano Mtangoo
0
78
Member Avatar for n_borad

Please help me with this program Your assignment is to write an assembler program which does the following: (1) prints your name and NYIT I.D. as a first action. (2) reads in two 2-digit integers, one keystroke at a time, and operates Euclid’s algorithm on them (3) prints the result …

Software Development algorithm assembly operating-system
Member Avatar for n_borad
0
126
Member Avatar for TheComputerGuy

Hi there...I can get the input from a user...however I need to add them. I'm thinking I need a loop to add them, and carry the extra if the person adds them. Keep in mind, the max size is 20, and I have no added the error checking in there. …

Software Development java
Member Avatar for sillyboy
0
132
Member Avatar for stevenp123

Hi, I am having some trouble with arrays. I have an array of 5 elements. The values of the array are integers. I want to validate the input using an if statement. (the numbers must be between 10 and 100). I then want to compare the user input to the …

Software Development java
Member Avatar for destin
0
91
Member Avatar for DaveCachia

Hey Daniweb! I'm here again with another C++ problem. I am trying to add three pairs into my main vector 'theMap'. I am thinking I need to use the 'insert' function, but I just cant figure out why my syntax is working. I've tried the 'copy' command as well, no …

Software Development c++
Member Avatar for DaveCachia
0
99
Member Avatar for meddlepal

I am having a problem with a class I am writing. I have defined a whole bunch of methods defined that the compiler is telling me in the implementation are different. The errors are: [QUOTE] 1>------ Build started: Project: prog6a, Configuration: Debug Win32 ------ 1>Compiling... 1>main.cpp 1>c:\users\philip\documents\visual studio 2005\projects\cs211\prog6a\prog6a\avltree.h(186) : …

Software Development c c# c++ queue visual-studio
Member Avatar for meddlepal
0
191
Member Avatar for amerninja2

how can i create a c++ program that can somehow connect to a phone and let you talk to them through a computer mic? also how do i create an email program? the email program could also send txt messages (number@carrier.com). can you give me links or code and an …

Software Development c++ email
Member Avatar for mrboolf
0
111
Member Avatar for mathrules

I am having issues trying to set up a makefile in Crimson Editor. I know that I need to link my files but I am not sure what that is exactly. I have included my filename.h in my implemenation file and main. Everytime I compile i get nasty errors saying …

Software Development c++
Member Avatar for mathrules
0
77
Member Avatar for freelancelote

Hi, let's say I define this two classes that do not inherit from one another. I get an error at line 10: field "DataNoFather" has incomplete type. 1.Any idea what that means and how to fix it? 2. Is it possible to have a variable like DataNoSon labeled with type …

Software Development c++
Member Avatar for freelancelote
0
109
Member Avatar for CPPRULZ

I am doing an online course and for one of the chapters (in [U]Practical C++ Programming[/U] by Steve Oualline) it had a bitmapped graphics section-only 4 pages long. The chapter is about bit operations and includes a section about hexadecimals. I understoodit until I got to this passage in bitmapped …

Software Development c++
Member Avatar for ddanbe
0
330
Member Avatar for Trekker182

I have a small lab where I'm trying to dynamically allocate an array to hold whatever number of scores. We were given the code to pass it into a function that sorts those scores via pointer notation. However, when I try to pass the array into the function, I get …

Software Development c++
Member Avatar for ArkM
0
485
Member Avatar for countrygirl1970

Hello, I am trying to get this code to work. I am getting an error code on line 38, that I don't understand why. Can anyone help me out. the error code that I am getting is identifier expected. Thanks, countrygirl1970 [code] // Displaying multiple strings import javax.swing.*; // To …

Software Development java java-swing
Member Avatar for countrygirl1970
0
119
Member Avatar for muya08

my program has the following errors: there are primary-expressions expected before "else" the upon commening on the lines with else, i got a mistake like "core dumped" and it couldn't run no more. could anyone please take a minute to go through my programm and kindly let me know where …

Software Development c++ storage
Member Avatar for ArkM
0
137
Member Avatar for AcidG3rm5

[code] #include <iostream> #include <string.h> using namespace std; class Date { public : Date(); void setDate(int,string,int); void printDate(); private : int day; string mth; int year; };//end class //date constructor Date::Date() { day = 01; mth = "Jan"; year = 1990; } //setDate void Date::setDate(int inDay,string inMth, int inYear) { …

Software Development c++
Member Avatar for ArkM
0
122
Member Avatar for jugnu

When i use a variable type [B]double[/B] the value [B]e.g 345624.769123[/B] rounded to [B]345625[/B] but when i take [B]5 digits[/B] before decimal [B]i.e 34562.4769123[/B] then it shows [B]34562.5[/B] Please explain Why? Thanks

Software Development c++
Member Avatar for ArkM
0
177
Member Avatar for frank*

Do anyone have any idea to write a c progrm which counts no of times it is run without using a updating file??:?:

Software Development c
Member Avatar for ArkM
0
102
Member Avatar for volscolts16

What is a clock tick equal to in ctime??

Software Development c++
Member Avatar for ArkM
0
122
Member Avatar for Alex Edwards

I remade an equation-solver program from Java to C++, and I plan to post it soon but I would rather not until I can determine where modulus fits in with PEMDAS. To those who don't know, PEMDAS is the order in which mathematical expressions are to be evaluated. The order …

Software Development c++ ios
Member Avatar for Alex Edwards
0
7K
Member Avatar for MaxVK

Hi there. I started with wxPython (Under Linux) a little while ago and I'm enjoying very much, however, there doesn't seem to be a control for working with Rich text. Iv found a few articles (mostly dated a few years ago) that suggest that such a control is on its …

Software Development python
Member Avatar for MaxVK
0
390
Member Avatar for a.self

Hi everyone, Since it's the weekend, I can't get assistance from my professor or his assistant until Monday. My deadline for submission is approaching and I'd feel a lot safer getting as much work as I can. I'm implementing a hash table to store strings using linear probing. My implementation …

Software Development c++
Member Avatar for a.self
0
213
Member Avatar for Mako-Infused

I am making a encoder/decoder program. I have made most of it but I am stuck on the last bit. I would like when i decode the text it will oopen encode.txt, read it and change it back to normal (decode) the show it on the screen. If that cant …

Software Development c++
Member Avatar for Mako-Infused
0
221
Member Avatar for BountyX

well lately I have been working on a CPU core for 6502 assembly, and I have been writing it all in c++. However for obvious reasons I was thinking of remaking the core in assembly. First I was wondering if it would be worth it (speed wise) to write functions …

Software Development assembly c++
Member Avatar for naradasu74
0
524
Member Avatar for amerninja2

Can someone either give me a couple links, or some code with explanations on how to create gui (graphical user interface) buttons that are like boxes with text and color in them, that are equal to a command when you click them. Also, how do you create a gui slider …

Software Development c c# c++ gui user-interface
Member Avatar for amerninja2
0
179
Member Avatar for c++ prog

hi we have a programming assignment which computes the volume of a barrel. I don't have a compiler yet and java is not yet recognized by my computer yet because I haven't downloaded any JDK yet because I don't know which one to download...Here's my code so far...Please just review …

Software Development java
Member Avatar for VernonDozier
0
146
Member Avatar for atman

Hello., Im learning C online, and one of the examples from the internet is this: [CODE] #include <stdio.h> int CalcVolume (int length, int width, int height); void PrintIt (int vol); void main() { int volume1, volume2; int x = 8, y = 15, z = 20; volume1 = CalcVolume (10, …

Software Development c
Member Avatar for ajay.krish123
0
110
Member Avatar for minas1

[code=C++"] int x[5]; x[4] = 10; *(x + 4) = 10; [/code] Array indexing has a cleaner syntax but (as I've read) pointer arithmetic is faster. My question is, is it worth to use pointer arithmetic? Is there a noticeable difference?

Software Development c++
Member Avatar for ArkM
0
1K
Member Avatar for Srynx

When I include i++; inside this loop I get a runtime error and I have no idea why I get it: Do you have any idea? [CODE] while (i <= 3){ if (tauler[PacMan.y][PacMan.x]==0) xoc = 0; else if (tauler[PacMan.y][PacMan.x]==1) xoc = 1; else if (tauler[PacMan.y][PacMan.x]==2) xoc = 2; else xoc …

Software Development c++
Member Avatar for Srynx
0
85
Member Avatar for techgenie

Hey guys Need help with the following program. I keep getting compilation error `error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'void' (or there is no acceptable conversion)` Apparently I am not able to pass by reference however it works well when I …

Software Development c++
Member Avatar for Freaky_Chris
0
337
Member Avatar for joshmo

I have got two arrays. One for initializing and another for displaying. The display array always shows nothing if the initializing array has not been called. The problem now though is that if I want to insert something in a certain slot in the array nothing happens and I dont …

Software Development java
Member Avatar for joshmo
0
377
Member Avatar for jackieblock

I am just learning Java. I am trying to do a GUI to calculate road trip data. My program compiles, and a window opens, but only the top title line shows. Nothing shows in the center or south areas. What do I need to change? Here is my file. [code=syntax] …

Software Development gui java java-swing user-interface
Member Avatar for quuba
0
148
Member Avatar for asus2008

any1 know s anything about cr8ting mobile game "go" need ur help

Software Development java
Member Avatar for stultuske
0
126
Member Avatar for jaasaria

i want to study the tree view any code or site for help.. i look at the internet and any source code site.. but i havnt find one... any help and comment will be appreciated.. thxx jaa

Software Development visual-basic
Member Avatar for jaasaria
0
91
Member Avatar for sawant_deepu

i am bscit student and i am doing one project. so i want to urjently know how to connect vb6.0 to oracle 9i

Software Development oracle visual-basic
Member Avatar for priyanka patel
0
645
Member Avatar for sravani

Hi ,I am Sravani. I saw a query in this site that VB6 can be linked with oracle 9i. I am using oracle 10g in my office.what i want t oknow is cant we use oracle 10g to connect to VB6? Pleasse try t oanswer to my query. Its urgent. …

Software Development oracle visual-basic
Member Avatar for priyanka patel
0
370
Member Avatar for localp

i am new to java, i am writing this program so where when the user inputs RGB values the resultant colour should be displayed on a frame. (note that you cann't use the [B]color class in java[/B]) 1.) i have successfully completed coding for where the user inputs the RGB …

Software Development gui java
Member Avatar for peter_budo
0
161
Member Avatar for shers

Hi, Can any experts out there tell me how I can add a WPF form to a class library in C#? Thanks

Software Development
Member Avatar for LizR
0
93
Member Avatar for antaryami

Has anyone tried and succeeded in Inter JVM method calls within a single machine. What I mean is I have two separate applications running on the same machine using two JVMs. Can they communicate and if so what are the related packages and classes. antaryami

Software Development java
Member Avatar for stephen84s
0
223
Member Avatar for thekevin07

I have written multiple streams of data to a file the format is like this [CODE] J|1|2|3|4 [/CODE] that would be 1 record and there are more then one record in the file my question is how do i read that data in, deserialize it, extract it and assign each …

Software Development c++
Member Avatar for Lerner
0
345
Member Avatar for daviddoria

I have a base class called ModelFile I have derived classes called ObjFile and VtkFile that I would like both to use << from ModelFile. However, since << is an external function, [code] ostream & operator << (ostream &output, const ModelFile &Model) { output << "Num Vertices: " << Model.NumVertices() …

Software Development c++
Member Avatar for Lerner
0
187
Member Avatar for OutOfReach

I am creating a tetris-like game. I have decided to use coordinates (x,y) along with a dictionary. Here is a part of the dictionary: [CODE=Python] gameTable = {(-5,10):0,(-4,10):0,(-3,10):0,(-2,10):0,(-1,10):0,(0,10):0, (1,10):0, (2,10):0, (3,10):0, (4,10):0, (5,10):0, (-5,9):0, (-4,9):0, (-3,9):0, (-2,9):0, (-1,9):0, (0,9):0, (1,9):0, (2,9):0, (3,9):0, (4,9):0, (5,9):0, (-5,8):0, (-4,8):0, (-3,8):0, (-2,8):0, (-1,8):0, (0,8):0, …

Software Development python
Member Avatar for Ene Uran
0
208
Member Avatar for Sauron911

Basically what my program does. It has one main. It has one function. The function is: [CODE]int humhum (unsigned long x, unsigned long y) { unsigned long res; printf("Enter an integer for x:"); scanf( "%ul", &x); printf("\nEnter an integer for y:"); scanf("%ul", &y); res = x ^ y; } [/CODE] …

Software Development c
Member Avatar for WaltP
0
90
Member Avatar for shankhs

I am trying to solve a typical 0/1 knapsack problem (using greedy algorithm). In this problem I have to sort a structure consisting of 2 ints (one that contains the value and their corresponding amount I have to minimize the value to get `n' amounts so i need to sort) …

Software Development algorithm c
Member Avatar for ArkM
0
164
Member Avatar for aotonyleung

Hi, I need to do some sorting of the XML file. First, group the group_1 first and then sort those group_1 block by SORT_ID and Salary. Second, group the group_2 and then sort those group_2 block by SORT_ID. I just try the below and it works if the XML only …

Software Development xml
Member Avatar for fpmurphy
0
142

The End.