199,114 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 …

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 peter_budo

I was under impression that declaration of [icode]char(4)[/icode] can store only values of [B]exact length[/B] of 4 characters. However I was able to insert empty string and strings of less characters than 4. Is there some datatype that will only accept string of declared length? Strings with less characters should …

Member Avatar for peter_budo
0
92
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?

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 …

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 …

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 …

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 …

Member Avatar for vmanes
0
273
Member Avatar for bornok15

Im trying to connect from windows xp using my program using odbc connector and SQLyog to a mysql server which is installed in windows 2000 server.. i keep on getting the same error.. i tried to use wamp server also but i was not able to connect at all.. i …

Member Avatar for bornok15
0
148
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 …

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 …

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

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 …

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 …

Member Avatar for DaveCachia
0
99
Member Avatar for MDGM

Hi all, I have a shopping basket feature on my website which saves the product's primary key in the session array called 'cart', each one seperated by a comma, so example: '123,456,789'. Now in order to get each item from my shopping basket to paypal I need to write 2 …

Member Avatar for MDGM
0
122
Member Avatar for Ajay Patel1

Hi I want to Convert HTML table in to text file using PHP for that what i have to do? pls Suggest me Thanks All, Ajay

Member Avatar for digital-ether
0
1K
Member Avatar for yugoza

Hi all, I would really appreciate some feedback on my first database design which is depicted in a UML diagram attached. Does it make sense to you? Is it clear enough? Can you spot any immediate problems with it? I'll very grateful for any comments on the representation as such, …

Member Avatar for yugoza
0
138
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) : …

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 …

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 …

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 …

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 …

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 …

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 …

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 …

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

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

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??:?:

Member Avatar for ArkM
0
102
Member Avatar for volscolts16
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 …

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 …

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 …

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 …

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 …

Member Avatar for naradasu74
0
524
Member Avatar for filch

Hello all, I am designing a database and, while I have used simple databases before, I am by no means an expert on relational dB design and so am seeking advice and help. The database functionality I need is as follows: A third normal database in the structure represented by …

Member Avatar for peter_budo
0
129
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 …

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 …

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

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?

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 …

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 …

Member Avatar for Freaky_Chris
0
337
Member Avatar for sas0riza

Hi, In my Insert SP, I have 5 local variables: @MemberID int, @VideoID int, @Total money, @DateRented datetime, @DateDue datetime insert into RentalRecord values (@MemberID,@VideoID,@Total,GETDATE(), DATEADD(dd,5,GETDATE())) When I try to execute the SP, I get this error: Procedure or function 'sp_AddRentalRecord' expects parameter '@DateRented', which was not supplied. Please advise. …

Member Avatar for dickersonka
0
94
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 …

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

Member Avatar for quuba
0
148
Member Avatar for asus2008
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

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

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

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 …

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

Member Avatar for LizR
0
93

The End.