64,152 Solved Topics
Remove Filter ![]() | |
I am working on an assignment for a class I'm taking. Currently, I have a while loop which takes data from the user through JOptionPane. I am suppose to use a sentinel value (q or Q) to tell the loop to stop. I have my if statement argument working, but … | |
I had completed my code for my project, then decided to change it. I now have an error that I do not understand. C4715 which according to MSDN.com is 'function' : not all control paths return a value. The specified function can potentially not return a value. I have included … | |
Visual Studio 2005 is giving me heartburn while working with templates. Does anybody know what is going on with the following code, and the errors below? It says there is a syntax error, but I cannot find it. [CODE=C++] #ifndef DEQUEUE_H #define DEQUEUE_H #include <iostream> #include <list> template<class Item> class … | |
I am trying to implement a queue based on a Linked List that I had to write previously. It is templated and for some reason I am getting the following error using g++ when I compile: [CODE]g++ LinkedQueueMain.cpp -o LinkedQueueMain /tmp/ccqwStpK.o: In function `main': LinkedQueueMain.cpp:(.text+0x2ee): undefined reference to `LinkedQueue<char>::operator=(LinkedQueue<char> const&)' … | |
im quite new to code and are using c++ to read files. Through some examples i have managed to read a file from top to bottom like this. The problem is that i will need to read the file from bottom to top instead. Is there a reversable method for … | |
HELLO all... Good Afternoon!!!! Currently i am developing a website...In that website i want to ad management ,where we can add and manage different ads with different prices, in different place on our website with time and etc... Any body have any scripts or any ideas to develop this kind... … | |
Hi I need one example on regression. Also tell between recursion and regression which one is faster? | |
Oooookay...this is really strange. I'm working on a program in MSVC++ 9.0 and it works fine when I hit "play" in the development environment, but when I manually navigate to the debug folder and click on the program, windows vista pops up an error saying that my "program has stopped … | |
[QUOTE=schamb;711245]also am curious as to how decimal to hexidecimal would work too just wanting to learn more about programming language and am very in experewienced[/QUOTE] You are going to have to get a lot more specific on these questions. General advice: 1. Read in a number in decimal. 2. Do … | |
Hello everyone I want to create Textboxes according to the entered number at runtime but with different names because I want to deal with the the data entered in this textboxes [CODE] protected void Button1_Click(object sender, EventArgs e) { int rows = 0; int cells = 0; int counter =int.Parse(TextBox1.Text); … | |
Hey guys, I know you wont give me a direct answer, but that's not what I'm looking for. Here is the assignment: "Procedure: 1. Have the user input an integer between 2 and 19 (inclusive). If the number inputted is not within that range, reprompt the user again until a … | |
I have the following code, the arrays are global variables. [CODE] #define MEMORY 64000; #define NUMFRAMES 6400; int mem[MEMORY]; int frames[NUMFRAMES]; [/CODE] I was pretty sure this should work as I don't see why it shouldn't but I am getting "parse error before ';' token" for both array declarations. Although … | |
I thought I had this program licked and moved on to fixing the next problems, then ran it again and found out my while loop isn't doing anything. It goes into my loop, stops, and doesn't do anything else. If there was one item, it should move on to the … | |
I'm not sure if this should go in the MySQL board, or this, since it deals with both PHP and MySQL. But anyway, I am making a sports memorabilia site for a guy. On the item creation page, after I call the function to prevent sql injection, no matter what … | |
Hi all! How to use crystal report with ASP.net? How to choose database? pls help with an eg. Robins | |
Can someone tell me how the series is to be implemented in c 1,1,1 2,1 2 3,1 2 3 4 5, 1 2 3 4 5 6 7 8 here is my code but i am not able to get the answer [code] #include<stdio.h> int i,n1=0,n2=1,n3,n; void main() { printf("\n … | |
When using visual c++ does code that would work in other programs work as well? | |
I created a new Class Library, and want to use the MessageBox.Show function within a procedure in the class. Maybe this can't be done? I tried adding "Imports System.Windows.Forms" to the top of the class module, but it won't allow me to use that, either. Here's a simplified version of … | |
can anyone here plz help me with my porblem.. im using VB6, i want to display a message whenever the user will close the window..] can anyone teach me how to code it.. | |
Say you have a class called example: [CODE]class example { int one; int two; };[/CODE] and you use this to get numbers from the user: [CODE]example number; cout<<"enter numbers"<<endl; cin>>number.one>>number.two;[/CODE] and then you call one function to manipulate the numbers and another to do some more manipulation. How do you … | |
Hello DaniWeb, I am new and I have a problem thats driving me nuts, i'm sure its very simple to an experienced CS but I'm attempting to execute a couple conditional statements. basically, i am trying to write a program that determines the amount of shipping costs to inform the … | |
Hi, first post, and am a real novice, looking at the problems and solutions posted here. I have a database (Access 2003) where I want to change the name of a field within a query (to be used in forms and reports), depending on a decision the user makes. Can't … | |
I was wondering if anyone out there had a good suggestion on an Installer program. I have a few friends that are interested in how I'm doing in my programming self-education, so I'd like to send them examples of what I've done. Now I've managed to use py2exe to create … | |
Hi All, I'm currently working on my project (which try to perform degree reduction for a Bezier curve). I've spent a long time trying to find library or useful class to help me perform matrix inversion. For example degree reduction in Bezier's curve (let's say from degree 3 to degree … | |
i am pretty new to assembly language and i wonder what is difference between the final binary output of the same program written in c and written in an assembly if they do exactly the same thing. if the binary output is the same then why use assembly language? if … | |
A real simple one, just a question of understanding the python syntax I suppose. I won't waste your time by throwing the whole program at you, I think my question can be boiled down to this: [ICODE] a = ["cat"] b = ["bark"] wordinsa = input("Word: ") a.append(wordinsa) wordinsb = … | |
[COLOR="Green"][B] have to do this The constructor for the class should set the initial fuel level to 0.0 L (assume all fuel amounts are in litres). You'll need to use a Private Double class field. " [ICODE]Private FuelLevel = 0.0 As Double[/ICODE]........when i do like this i that error message.....[/B][/COLOR] | |
If anyone has an idea for a program written in Java please reply. This is about my degree in cs so I would like to hear many ideas. I've seen many projects and haven't find something :-/ Thanks in advance Alex... | |
Hi, I am having the problem in nested list. Here is the code : [code=python]data1= [['Contacts',company.contacts.count() ], ['Notes', company.notes.count()], ['Met by', ], ['Industry', industry], ['Financial Investors', '31']] for item in metlist: data1[2].insert(1,item) [/code] Basically I am trying to insert the value for Met by in [ 'Met by', metlist->value] I … | |
Okay, continuing on with my little System access project I've been working on. Now I've gotten three different Python files in this Project. I'm using a main menu .py to offer option for the user to select from. Each option then opens one of the other two .py files and … | |
The requirements are actually simple, just asking to sort a few, say 10, 20 or so, intergers in ascending order. However, array and pointers are not allowed to be used, and just the fundamental knowledge about flow control are permitted. The hints are as follows: 1. Initialize a variable F … | |
I am trying to do the [B]bubble sort[/B] to make my numbers in the array go from smallest to highest. Afterwards, I want to use the [B]SeqOrderedSearch[/B] to find the location of the number in the array. If the number is not found, i will have to state it is … | |
Hi All, I'm trying to figure out how I canFirst, enter the number of salaries to process: 4 Now enter the 4 salaries to be averaged. Enter salary #1: 10000 Enter salary #2: 8000 Enter salary #3: -20000 *** Invalid entry. Salary must be positive. *** Enter salary #3: 25000 … | |
Hi, I keep getting an undefined identifier error when I try to do this: [Code=C] typedef char bool; // Make a bool type char false = 0, true = 1; // Make true and false void foo() { switch (something) { case 1: bool aaaaa; break; } } [/Code] It … | |
The following program should take 4 numbers but it takes 5 numbers and prints first 4 number entered. How to correct the problem??? [ICODE]#include<stdio.h> #include<conio.h> void main() { int a1,a2,a3,a4; printf("Enter 4 numbers \n"); scanf_s("%d %d %d %d ", &a1,&a2, &a3, &a4); printf("The 4 numbers entered are %d %d %d … | |
The following program should take 4 numbers but it takes 5 numbers and prints first 4 number entered. How to correct the problem??? [ICODE]#include<stdio.h> #include<conio.h> void main() { int a1,a2,a3,a4; printf("Enter 4 numbers \n"); scanf_s("%d %d %d %d ", &a1,&a2, &a3, &a4); printf("The 4 numbers entered are %d %d %d … | |
I'm new to C++ and I wondering what is the best program to use to type code into? I use vista so if a c++ program requires some extra work to make it work can you tell how to make work as well? Thanks for reading! | |
I want to do somthing like this. [code=C++] ifstream My_File::GetFile_Stream() const { return(this->Input_Stream); } [/code] where Input_Stream is a private member of the class My_File and is declared as follows: ifstream Input_Stream; When I compile I get the following errors: /usr/include/c++/3.3.1/bits/ios_base.h: In copy constructor ` std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> … | |
Howdy folks, me again. :) I'm attempting to append to a previously pickled file using cPickle.dump(). But I keep getting the error: Traceback (most recent call last): File "C:\Python25\Python\UserAccess.py", line 24, in <module> p.dump(tempadd, temp) TypeError: argument must have 'write' attribute I've opened the file using the 'a+' attribute, which … | |
I'm very very new to C so I'm having some trouble with this (and pointers): I'm trying to pass four parameters into a function: birthdayFunction(char birthday, int month, int day, int year); The birthday is the string input from the user (with "/" separating each field, ex. 7/23/76) and I … | |
I'm having trouble with this section my code and am hoping that you can help me diagnose and solve the problem. I'm not sure if it makes a difference, but I compile and run my code in Cygwin. The problem: At run time when the program asks for the user … | |
hello i have problem with radio in this code [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="style.css" rel="stylesheet" /> <script> function add() { var radio=document.getElementsByName("t"); var d=document.getElementById("div"); if(radio[0].checked==true) { d.innerHTML+="<p><input type='text' id='txtfname'><br />"; d.innerHTML+="<p><input type='text' id='txttxtlname'><br />"; … | |
Okay, I am trying to combine the notepad feature from this page: [URL="http://falkoner.cow.googlepages.com/Notepad.html"]NotePad[/URL] With this page: [URL="http://falkoner.cow.googlepages.com/Buildings_to_Crash.html"]http://falkoner.cow.googlepages.com/Buildings_to_Crash.html[/URL] Rather than copying and pasting the internal code from the first page into the second one, I want to put it into my external javascript page, here: [URL="http://falkoner.cow.googlepages.com/FalksMainJavascript.js"]http://falkoner.cow.googlepages.com/FalksMainJavascript.js[/URL] So far I have not … | |
I was wondering if there is an easy library that allows reading in a .bmp, mask it, then display it. I believe I could read it in with [URL="http://www.adp-gmbh.ch/win/programming/graphic/bitmap.html"]this[/URL] but I cannot do anything else with it. Your help is appreciated! Any suggestions? | |
Okay, I'm doing some experimenting on file I/O using a user/password access program I'm writing. My problem right now is while the program will append the new user and password, it does so whether or not that user name exists already. I'm not worried about duplicate passwords, but I don't … | |
can someone help check my code? i m trying to create multi dimension array with classes. it will not compile and i do not get the error message. thanks alot. [CODE=cplusplus]#include <iostream> using namespace std; const int MAX = 5, MAX2 = 3; class notebook { int num; public : … | |
I'm embarrassed. I suddenly realized that not in any of my programs scrollbars show when they should, despite visible is set to True. I am not able to fix it! Can someone please tell the secret? | |
The code I have written in Servlet is as follows: [code=Java]ArrayList news=admindelegate.getNewsdelegate();//this is defined already request.setAttribute("news",news); rd = request.getRequestDispatcher("ViewNews2.jsp"); rd.forward(request,response);[/code] and my JSP code is: [code=JSP]ArrayList newslist=null; ArrayList newslist=(ArrayList)request.getAttribute("news"); int newscount= newslist.size(); System.out.println("newscount:"+newscount); if(!newslist.isEmpty()) { for(int i=0;i<newscount;i++) { %> <tr> <Td><%=newslist.get(0)%></Td> <Td><%=newslist.get(1)%></Td> </tr> <% } } %>[/code] But this table … | |
[url]http://i126.photobucket.com/albums/p98/justln/untitled3.jpg[/url] Which codes do I use so that the answer is not out of place? I tried using \t and setw but it doesn't work :( | |
I am new in Java and need help :} currently working on a new project using netbeans, I have trouble to import commons-io-1.3.2 jar because i really need to use SuffixFileFilter class which is in commons-io-1.3.2 jar.Actually I have the jar but don't know how to import it into my … |
The End.