64,152 Solved Topics
Remove Filter ![]() | |
Hi is there anyone willing enough to help me solve my problem. I'm using both Dev C++ 5 in windows and g++ in Linux to compile this code but was unable to do it successfully. Can any one help mi pliz [code] #include <cstdlib> #include <iostream> using namespace std; // … | |
Can I know something about Sequential Search?? Answers within 24 Hours PlZ.. | |
Please provide me some sample programs that illustrates sorting techniques and about Sequential Search also.. | |
I am learing the book: Foundations of Python Network Programming - Apress 2004 When I tried this: [CODE] import socket, sys host = sys.argv[1] textport = sys.argv[2] #.... [/CODE] Then my IDE notify me this exception when debug: """IndexError: list index out of range: host = sys.argv[1] """ When I … | |
[code] cin.ignore(); cout << "Enter lecture notes/tutorials location.\n"; cout << "e.g C:/Lecture Notes/lecture01.ppt"; cout << ">>>"; getline(cin,lectut_loca); cout << "Enter lecture notes/tutorials name: "; cout << "e.g lecture01.ppt"; cout << ">>>"; getline(cin,lectut_name); string copy = "copy"; copier = copy + " " + lectut_loca + " " + lectut_name; const … | |
I have a homework assignment to write a program about mileage. I've been able to get it to work, well except the average doesn't calculate correctly and I haven't been able to verifiy the users input. I'm using Visual C as my compiler. Can someone help me with checking the … | |
I'm completely new to C++, and my teacher gave us a card game to do for our first assignment. The card game has to deal a hand of five cards and determine whether or not it contains a flush, a pair, a straight, three of a kind, or four of … | |
hi I have a Borland C++ 5.5 command compiler. I needed to plot a graph using a C++ program. However, I discovered that there were'nt any graphics library (pls correct me if I'am wrong). So I copied graphics.h and BGI files from a Turbo C++ compiler. But I can't still … | |
I am trying to refresh a data control but I keep getting the following message no matter what I try: Run-time error 3464 Data type mismatch in criteria expression. If I leave the where clause out I don't get the error message. [CODE]Private Sub cmdseektask_Click() Dim strsql As String, temp … | |
I get the following error on the first line of my array... " syntax error before `}' token " My eyes are about to fall out of my skull. Can someone take a look for me, everything seems to be fine, but maybe I'm blind. Here is the code in … | |
I am trying to grab an input file and outfile file from the user. I can grab the input file no problem, but Dev C++ just steps right over the following line... [code] cin.get(ofname, 150); //grab filename from user[/code] Here is some more of the code. Does anyone have any … | |
[B]i want to find out small projects to work upon so as to improve my grip over c, can someone tell me some sites having projects in c:confused: [/B] | |
I'm trying to use input from a text edit box to delete a file. The input from the textbox will be the file location and the delete button will use DeleteFile() to delete the file. [img]http://img436.imageshack.us/img436/5578/deleteboxvn0.png[/img] Do you know what I mean? | |
Greetings: I am having trouble understanding how buttons launch actions such as, for example, loading a new (2nd) canvas. Suppose I have an application, a game, that will respond at some point to user imput via buttons: I have two buttons named "Yes" and "No"; now if the user selects … | |
I have been trying to search the web to find a way to code a python program that can scan a given directory (ex. "C:\Documents and Settings\Matt\Desktop") and assign every file name found there (ex. "test.py" and "essay.doc") to a seperate variable or inside a list. Is there any way … | |
i am newbie and have a problem. i have a text file(rawfile.txt) like below. NAME:XXXXXXXXXXXX SURNAME:XXXXXXXXXXXX DATE:23.09.2006 A B C D E F G H (column names) 40 250 300 01.01.2006 13:43:21 250 12345678 KENTBANK 31 123 455 02.02.2006 11:22:43 450 CAPITALBANK . . . . PAGE 1 40 150 … | |
I created a random number game where the user tries to guess the number using a while statement with three ifs in it for high low and correct number. but after the user guesses the the number it ends the while and the program. How can I make it so … | |
Hi I'm using visual c++ express since yesterday and I have an error that visual c++ 6.0 didn't detect :p I think it can be some program configuration... :o [CODE] 1>------ Rebuild All started: Project: IUCUNN, Configuration: Debug Win32 ------ 1>Deleting intermediate and output files for project 'IUCUNN', configuration 'Debug|Win32' … | |
Its a common problem but i've never had it before. source compiles fine. but get linker error when i build. tryed with Dev C++ and VC 6.0 same problem with both compilers. [Linker error] undefined reference to `CQTMovieFile::CQTMovieFile()' all libs and files are added any thoughts anyone. | |
i'm very much a newbie, so pardon me if i am breaking programmer ettiquette, but could someone debug this, please? i could use a lift after 8+ hours workin on this... this is player.h [CODE]#ifndef PLAYER_H #define PLAYER_H using namespace std; class player { private: char* name; int bankroll = … ![]() | |
hello.. help me solve this :cheesy: when a new car or motorcycle created, the system should create a folder with the name of the car or motorcycle. the hierarchy should be like this: Vehicle(main exe folder) +Car -Porsche -Ferrari +Motorcycle -Suzuki -Honda new vehicle info's folder shoud be create as … | |
Hello: I have been reading today about creating and using Sets. I have tried some sample code to see the results and I think it might be useful for me. I am in search of a data type that will be able to store strings and\ or values culled from … | |
Hello, I just downloaded express C++ 2005 ed. and I can't get even a simple code snippets to compile. this is just a loop, the compiler does not compiles (cout) this is what I get: error C2065: 'cout' : undeclared identifier Thank YOU:cry: renny [CODE]#include "stdafx.h" int _tmain(int argc, _TCHAR* … | |
Hi, I want to know how to convert a decimal integer into its binary form?? I came across a code which used BIT OPERATORS; I could not understand it. pLEASE HELP ME WITH THIS. Note: This is not my ASSIGNMENT PROBLEM. I know one way of converting decimal into binary … | |
Hello: I was wondering if anyone in this forum could point me in a direction (a link) where I could find practice projects (similar to Python [URL="http://www.daniweb.com/techtalkforums/thread32007.html"]Projects for the Beginner[/URL]) dealing specifically with C++ classes and their related functions? Thank-you in advance, reRanger | |
:mrgreen: hi im am tryingto create a dimensional analysis thing going on and so far i have this [code] def mult(self,other): tempTuple1=list() tempTuple2=list() i=0 for unit,value in other.expr: for unit2,value2 in self.expr: if unit2 == unit: tempTuple1.append((unit, value+value2)) #self.expr[i]=tempTuple1 ## for unit2,value2 in self.expr: ## for unit,value in other.expr: ## … | |
Hello again: I seek assistance on what I believed would be an easy problem to solve, but, after much searching, I have not yet discovered a valid answer: I have a canvas which consists of a background GIF upon which (when triggered) at least one new (smaller) GIF will appear, … | |
I am trying to create a blackjack deck of cards (blackjack uses five decks... 5*52 = 260) Suit is irrelevant in blackjack. How do I create my deck? [CODE]#include <iostream> using namespace::std; int main() { char thedeck[13]={'2','3','4','5','6','7','8','9','0','J','Q','K','A'}; char deck[260]; for (int i=0;i<20;i++) { for (int j=0;j<13;j++) { thedeck[j]; } } … ![]() | |
Hello there, I am trying to write a script for an old 133mhz laptop I have, that will bind every key to different functions, and on a key press a different image, or video will be displayed, and/or a sound file. I have figured out how to bind keys with … | |
I'm having difficulties to get the buffer read 10 numbers from a file, then after it's empty read next 10 numbers, and so on till eof is reached. The input file contains several lines of data, with a single integer value on each line. Here is my code (I have … | |
Hello, I am brand new to Visual Basic, having done some programming in Basic many years ago, so this environment is all new to me. I am creating my first project that involves solving a simple math expression. When I attempt to debug I get the following warning message, and … | |
okay, I haven't had to do much development work in c++, I spend most of my time in c#. I am trying to finish a course and my teacher gave an assignment on dealing with union and bitfield structure. The assignment is: [COLOR=#000000]Write a C++ program that reads a 64-bit … | |
Hi, I am trying to convert a string length to a char and store it in an array. For some reason, even though its not giving me any error, when I try to print the array out, the place where I store the strlen is blank. Here's my code: [code] … | |
Hi: I am beginning to develop a project (game) that will be using graphics: I am trying to implement a view that is an image onto where other images will be added on "top"-- the other images do not have to move via user imput-- I just need to place … | |
I have a group project of designing the old board game "CLUE" in my C++ class that can be played by 1 person against the computer. If someone would help me get started it would help a bunch. I think this could be a neat project, but have no clue … | |
Hi! How can i derive the used integer from variable a, when i use following code: [code] a = unichr(275).encode('utf8') [/code] When i try this: [code] print ord(a) [/code] It raises an error... | |
Would somebody chck this code please. I am a struggling C++ student and need all the help I can get. Thanks, Curt [COLOR=#008000]Here are the directions: [/COLOR] create a function that check's the number, put's out whether it's odd or even and adds it to the total variable [code] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]"stdafx.h" … | |
The dictionary currently has a few definitions in it, but it keeps only returning the definition for "noob". Anything that's entered returns that index. Why? Here's the code: [code]#1337 to Human dictionary: leet={"1337":"l-EET/nReally Awesome","noob":"(n00b) nOOb/nPerson who can't accept that s/he's wrong", "-xxors":"Suffix, pron: zors.\nUsed to accent an important verb, e.g. … | |
i am binding two attribute value on dropdownlist at a time let say firstname and lastname but i want to do some operation by taking only firstname from the dropdownlist but it is not happening. | |
Hi all, What are your thoughts about how many and which type of errors should be caught and handled within functions, especially roll-your-own utility functions? For example: suppose I have a function that removes a directory and all subdirectories and files underneath it. Should that function test for path existence? … | |
Im planning in buying this. Is this all I need to start coding? Thanx Overview [B]The Visual Studio® 2005 Standard Edition from Microsoft®[/B] is a comprehensive, high productivity professional development environment for individual developers for building enhanced performance, multi-tier applications for Windows®, Web, and common consumer mobile devices. It allows … | |
I made a program that has no REAL purpose, but i did it solely to see if i could do it, because i am new to python (somewhat) and i did: It will open a .txt file, and add a word of your choice inbetween each word that exists in … | |
Hi Everyone! I've been wondering what to do this semester for my final year project. Last semester i developed a java chat application, which i thoroughly enjoyed. This semester am clueless on what to do. Can someone offer me any suggestion? I woul gladly appreciate it.:rolleyes: | |
Hi Frnds, What is System.out.println..?How this three are related..? | |
Hello, I am a wxpython newbie and would like some help on using custom classes to create and change widgets. I have a program with 2 classes, each of which creates a panel with widgets. These panels are then added to the main frame of an application. In one class … | |
Here's a really simple problem. I understand the basic search algorithms however, is there a difference when implemeting them in regards to vectors or strings? I want to determine if a certain value using a sequential search, the code would look something like this; [code] #include <iostream> #include <fstream> #include … | |
Hi Folks, I have a VB 2005 app (2.0 Framework) that I've published out to one of our fileservers in our company, so users can download/install and run it. It published fine, but when I go to install it on another PC (which I'm logged into with Admin rights), I … | |
Hello.. I'd like to renew my old perl-based website and I am thinking to Python compared with PHP for many reasons (not last that I can use it for many other things that just web-development). However there are tons of "web-frameworks" and I am very dishoriented with all this "offer".. … | |
Hi all, I am testing a somewhat large module, and I would like to automate the testing of the documentation (I know, I could just look at the code, but I wanted to make sure *and* the question became a cool one :cheesy:) Here's the basic idea: [code] for i … | |
OK, this is a minor quibble from someone who is not *normally* concerned with neatness. I want to put docstrings in my functions. If I put them in using the 'textbook' method: [code] def is_same(self,x): """A.is_same(x) --> Bool\n\nReturns True if A and x represent essentially the same item, as determined … |
The End.