199,114 Archived Topics
Remove Filter ![]() | |
I'm trying to send an char array through a function convert it to an int array and send it back so I can reuse it with another function. I'm just having the worst time with this matter, please help! | |
This a program i write for practice. The problem I'm facing is inside the while statement. Is it okay to divide, in this case, the miles(which is inside the the while) with gall(outside the while). I tried to compile it and the answer given was 0.00000 P/S. This program is … | |
im having trouble and cant find whats wrong... plz help [CODE]#include "strlib.h" #include "simpio.h" #include "genlib.h" #include "string.h" int main() { int i, high; string answer; printf("Think of a number in the range of 1-"); high = GetInteger(); printf("and I'll guess it:\nPlease use Y and N.\n"); answer = "No"; printf("Is … | |
Hi I have this application idea for a java program as my final year project and was wondering if it was feasible. It invloves generating id tags for audio tracks. However instead of the data being based on existing data and filling in the missing info, The application will analayse … | |
i am a beginner in MFC programming and using MS VC++ 6.0. I am trying to create my own window using AfxRegisterWndClass(). My code is as follows : [CODE]Frame::Frame() { LPCTSTR className; HBRUSH brush; brush = (HBRUSH) ::GetStockObject (BLACK_BRUSH); className = ::AfxRegisterWndClass (WS_OVERLAPPEDWINDOW, AfxGetApp()->LoadStandardCursor (IDC_CROSS), brush, AfxGetApp()->LoadStandardIcon (IDI_ERROR)); Create (className, … | |
hi; i need to count d number of occurrences of all the chars in a file. i can't figure out how to count how many of each char there are. this wat i have up to now. i need the to print only the ASCII code from 0-127 [code=cplusplus] #include … | |
| |
Can anyone help me make an inventory program in c++??,.My task is to create an inventory program that reads from a file and then allows the user to manipulate the data and overwrite the file. I'm a total beginner when it comes to c++ so please use simple codes! | |
I have tried to come up with a 2-D (4 rows and 4 columns) array which holds values from 0 to 15, with none of the values used more than once. I'm posting only the code snippet. please lemme know if the logic is correct. [CODE=C] int HIGH=16; /*(Max value … | |
i was busily typing away one day for my text game when i decided that i wanted to test it so i tried to run it and it came up highlighting the first print in the section below can someone please help me? [CODE=python]choice = raw_input("Look around or go back … | |
why do we need interfaces in java?,if the functions are to be defined in implementing class only then why declare these in an interface first????????? | |
hi , actully i have read filters in servlet. but i didnt understand , the actual working of filters ( in practicle environment). i want to know that , when i am sending request to server and i am using filter before request went to server. so that process is … | |
Hi, I've been programming a lot of c code, and now I'm trying to set my mind into the c++ way of doing things. so I'm trying to avoid pointers, and use refs instead. As far as I understand pointers are to be avoided using stl's for instance. I have … | |
Hi guys and gals I wrote someting like this: [CODE]s1=s2=0 p=[] for x in range(200,250,1): for d in range(2,x): if x%d==0: s1=s1+x/d for d in range(2,s1+1,1): if (s1+1)%d==0: s2=s2+(s1+1)/d if (s2+1)==x: p1.append((x,s2+1)) print p[/CODE] but when i interpret\compile it,it prints an empty list thanks in advance | |
Hi friends, I am using travelmgmt.exe file of visual basic project on LAN. In project i can add record,edit,search and delete record. I want make my project multiuser but when i use travelmgmt.exe file on LAN it shows message [B]File already in use [/B] Please tell me the way of … | |
hi... ive connected my VB to my data base with the following code.... [code=visualbasic] Private Sub Form_Load() Set CN = New ADODB.Connection cString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Desktop\DATABASE FINAL\Passport Requirements.mdb" With CN .ConnectionString = cString .CommandTimeout = 20 .CursorLocation = adUseClient .Open End With nw... i want to connect every … | |
hi can someone [COLOR="Red"]please[/COLOR] tell me how to insert a image into an image array. The image is currently in the same folder as the class file. | |
Hi, [code] function myWindows(link) { if (!window.focus) return true; var href; if (typeof(link) == 'string') href=link; else href=link.href; window.open(href, 'width=5000,height=500,scrollbars=yes'); return false; } } [/code] [inlinecode]<a href=2bla.php" onClick="return myWindows(this)">Open</a>[/inlinecode] Above code opens new plain windows. How can i do same thing with a submit button? It will be plain as … | |
I don't know how many C++ coders might be out there, but I've been trying to get this question answered about multiple inheritance. Say I have a class called B that inherits from A: A -> B Now, I create a class called C that, perhaps due to programmer unfamiliarity … | |
Hai friends, I don't know how to write a coding in bean.? As well as how to compile and run Bean coding | |
Hey everyone, still learning c++ I had a question. How do I create an array that will hold strings of text. such as: ??? map[10]; map[1]= "text"; map[2] = "text2"; map[10] = "text3"; cout<< map[1] "\n"; help would be great ink | |
Hi, I recently was trying to learn how to write DLLs and was doing ok until I ran across this interesting problem. It seems that the function is not receiving the last argument. Here is my code for the dll [code]#include "stdafx.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID … | |
Hi I am trying to get the number of hours and minutes between two time time stamps. The expected results should be 1:59 (h:mm) instead I am getting 1:58 (h:mm). What is wrong with my approach? Is it also possible to use a built in php function so I don't … | |
Hi, I am writing a network applications to read data from a server. The problem I have encountered is that on abrupt termination of my program, the socket rtemains open so that the next time I execute the program it will return an "Inavlid operation in actual state" error 40020. … | |
I'm having problems with my do/while loop. It does not take the condition and simply continues the loop indefinitely. I have: [code=c] do { printf("Choose the base of the number to convert:\n\n"); printf("2 5 8 10 16\n\n"); printf("Enter option:"); scanf("%d", &baseFrom); system("cls"); if(baseFrom != 2 || baseFrom !=5 || baseFrom … | |
Hi friends, I am new to JAVA but i know c/c++ very well. I want to learn java so please help me from where i can start it and which book i should refer. | |
I have an input file that has call to function and arguments that are passed to that function. There might be one argument or two. A simple while loop for input will not work ex-while(inputf >> function >> arg1 >> arg2) because if a function has only one argument then … | |
Hello everyone. Like so many others, I am new to programming. I am taking a course on Programming in C, and have hit a number of speed bumps. The assignment I am currently stumped on is: Let [I]arr[/I] be an array of 20 integers. Write a program that first fills … | |
Ok I'm making a program in PyQt and when I call [code=Python]os.path.join("~/", "otherdirectory")[/code] It gives me: [code=Python]File '/usr/lib/python2.5/posixpath.py', Line 62, in join: elif path == ' ' or path.endswith('/'): Attribute Error: endswith [/code] I don't know what is causing this. :S Any help would be appreciated! | |
Hello everyone! I've started a project on SF.net to create a small yet modern IRC client (µIRChat or simply µIRC). However, there one thing that I really can't decide before I start, and that is the language to use. My idea came from µTorrent, which is, as far as I … | |
[URL="http://www.daniweb.com/forums/post303743-1.html"]Q.Write a program which will print all the pairs of prime numbers whose sum equals the number entered by the user. ( suggested by Aniseed ) (Intermediate) [/URL] [code=C++] #include<iostream.h> #include<conio.h> #include<math.h> int prime(int); void main() { int i,j,c1,c2,num,f1,f2; clrscr(); cout<<"Enter the number-"; cin>>num; for(i=2,j=num-2;i<=num/2;i++,j--) { f1=prime(i); if(f1) { f2=prime(j); … | |
guys, what do you think is the best compiler for beginners in C++? actually we are asked to make a game in C++. we are now using Dev C++, but we can't find a graphics library in it. thanks. | |
Hi all. I've done some bit of programming in the past, mostly in python and some C aswell. (I can still remember that "C for dummies book" hehe). I'm trying to get started with some anticheat software, of course I'll start with some easy methods first before trying anything more … | |
Hi All, I have been desperately trying to solve a serious ajax issue and decided to try asking it here. I have simplified the problem and will illustrate it with an example. First of all, please consider; [CODE]<span onClick='makeClickRequest();'><a href='http://www.google.com'>Text Here</a></span>[/CODE] where the javascript is about [CODE] function makeClickRequest() { … | |
Hello everyone, I am trying to devise a Binary Tree Representation of a Postfix Expression. I am sure I am in the right track, but there's just something wrong in my code which I cannot find. I am just wondering if you guys can spot where I made my mistake. … | |
im a newbie in c# well, our professor asked us to: Write a program in c# to print a triangle composed of a symbol. The number of of lines in the triangle and the symbol should be entered as an input from a user. Example: [CODE]Enter the number of lines: … | |
hello friends can u tell me how to find greatest of three nos using bitwise operators? | |
I have a datetime column in a T-SQL table that I need to sort desc. However, when I do this the NULL values for that field will show up at the bottom. I need them to be at the top of the list, while still having everything else sorted in … | |
okay, so i gotta make a good enough hash function that should be able to make me a key for out of two integers ( -1000000 <= x, y <= 1000000 ), and should work...well atleast 80% of the time so i could store these in an one-dimensional array... i've … | |
Hey I'm having a problem with an attribute error that i was wondering how to fix the code I have is [CODE] import pygame pygame.init() #---------------------------------------------------------------------------------------------------------------------------------------------# """ This is the small box which the players will be able to stand on""" class Ground(pygame.sprite.Sprite): def __init__(self): pygame.sprite.Sprite.__init__(self) self.image = pygame.Surface((768, 18)) … | |
I'm just writing a reading for the time a binary file where I stored records of my objects. It seems woorks very well. Now I'm working for random access at position "X": [code] ifstream myFile(fileName,ios::in); myFile.seekg( (X*sizeof( object )) , ios::beg); [/code] Should be ok. Before I start to write … | |
Hi everyone. I need to fix an image such that on right click the "save picture as" option is not active. | |
I was writing a text adventure in python and i ran into a "NameError: name 'military' is not defined" error and i need help, heres the code this is the part with the prob: [code=python] choice = raw_input("Pick your civ:") if choice == military: [/code] thnx for your time -- … | |
my program is suppose to count d number of occurrences of a chars in a file. i just dont know how to store d occurences. this is wat i have done up to now. [code=csharp] #include <iostream> #include <fstream> using namespace std; ifstream fin; void charactercount(int& w, char& s ); … | |
Hello, I am having problems retrieving correct values from two radio buttons in my AJAX script below. The radio button values are either a 1 or 0 and always produces 0 regardless of which button is selected. Once in AJAX, I can not have the script retreive a 1 or … | |
Hi and I am expanding one of my websites which requires me to write a script which has a language syntax highlighter (the gml/gamemaker language). So to do that I am using mainly preg replace and str replace. I have been working hard at it for the last 29 hours … | |
can i create dynamic array variable names in php? my requirement is... i want a no: of 1-d arrays like $c1[],$c2[],$c3[]. and i need to dynamically create the arrays like this.. for($i=1;$i<$var;$i++) $c.$i[]=$r; is there any way to do this? | |
Hi guys Im pretty new to java after programming with python for about a year i thought i'd give it a go. I did have a quick question though. How would i check for membership in a string. For example [code=java] String str1="Hello world"; String str2 = "world"; [/code] Is … | |
I m getting error msg "[B]report width is larger than paper width[/B]" when i want to display abt 40 fields on DataReport in VB. Is anybody have solution pls write me [email]hemant_apt@hotmail.com[/email] | |
Hi friends, I want to make a movie player.I heard about JMF but not had any idea.If anyone knows, kindly help me. thanks, ram |
The End.