199,114 Archived Topics
Remove Filter ![]() | |
Hi, I created a XML file and trying to write into it. It does write but, without the values from database. For example code below writes only <Title></Title> without the value. It should be <Title>My name</Title>. I do echo and the variable is full. Value [code] ........ $xmlFileName="test.xml"; $process=fopen($xmlFileName, 'w'); … | |
Hi, I've got a program that I wish to run in a powerful server so that it can run on several cores simultaneously and work faster.I need to do client server programming for this.That is, I recieve input in my local system which I forward to the server, it does … | |
i have started writing a program to do a fast sort but on one of my builds an error is coming up and i don't know what exactly it means could you please help. [CODE] int main(void){ char c[k]; cout<<"Please enter the input filename:"<<endl; // read in the input and … | |
hi guy's , iam a new member i got stuck with my c++ assigment. i really want's your help the program reads in a series of student data sets from the keyboard, stores them in an ordered linked list of records, supports editing an existing record, and displays a summary … | |
help guyz...our teacher recommend us to download the "source code" of eclipse. jcreator, net beans, and bluej,,, i am either confused,,,,what are the source codes of this four????are these the .java file???help guyzz,.....i cant seem to find their source codes since i dont even get the idea of what are … | |
Hi, I declared and implemented a print() function in a class. But when I call this function it is giving me an error: which says that function does not take 0 arguments. But what should my arguments be. I have posted the part of the code for more specification. Thanks. … | |
Hello everyone, Im trying to write Punjabi (Gurmukhi) by Unicode. I have the Unicode code point of all character and Code Block is Gurmukhi. [CODE=java]System.out.prinln("\u0A73")[/CODE] u0A73 = GURMUKHI URA = ੳ but its showing "?". then i tried with PrintStream [CODE=java]String unicodeMessage = "\u0A73"; try { PrintStream output = new … | |
Hi , I have a VB program.I would like to convert the VB program to .exe file so that if i want to execute the vb program, I need to just double click on the .exe program.Hope this is clear. I am new to VB so will be good if … | |
I am kind of a neophite and I need your help in the following; How do you right justify the field output in the <iostream> headerfile and how would one determine the compiler one is using/ | |
Hi all in my appliction i want to send the document through mail i.e: outlook here is my code Dim myWS As Object Dim RegKey As String Dim Key As String Key = "HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\" 'access Windows scripting myWS = CreateObject("WScript.Shell") 'read key from registry RegKey = myWS.RegRead(Key) If RegKey = … | |
Just got the wonderful Line is longer than 80 characters error. I realize this could very well be a n00b question ;-) I tried splitting after the ":" putting both lines in brackets and connecting them with + " but didn't work well for me, anyone know how? [CODE] public … | |
Hi Friends I am working in vb.net,i have a form in that, which windows state is normal & it starts on normal position but if another form is open on that application which windows state is maximize,& then if i open that form so that also become maximize, But I … | |
Hi everyone, I was wondering if anyone can help me. I got two forms I can send data from one form to the other one when I press the SEND button. I’m trying to get data from one form to the other when I press the ‘GET’ button, to get … | |
hey frnds, i am planning to create a mini project for my colg project work. the idea is i am trying to create a anti-virus with the database of 100 virus but the problem is that i need a code to kill the process from the task mgr. because to … | |
how can i make : [code=php]header("Location: cppassemail.php?user=$this->pSession->whoAmI('username');&pass=$password"a=5");[/code] work? somebody told me to make it like this: [code=php]$user = $this->pSession->whoAmI('username'); $pass = $password; $quot = 5; header("Location: cppassemail.php?user=".$user."&pass=".$pass.""a=".$quot); exit;[/code] but it dosen't work. it results just a blank page, no errors, no redirecting.. nothing. thank you! ps: please tell me the … | |
Hey guys! i Have a prblm writing a program, i hope i can find help here.... in the prgram i have to take user input on gender as 'm' or 'f' or 'male' or 'female' or 'Male' or 'FmAle'.... what i mean is i the input should not be case … | |
Hello All, I am trying to write a batch file that will allow me to open several browsers at the same time. For example, I want to open [url]www.google[/url] in one browser and [url]www.yahoo.ca[/url] in another browser and so on..... What is happening is that I one browser with google … | |
Any one could help me to write a program that lets the user order a hamburger just the way he or she wants it. The GUI should allow the user to enter his or her name. It should also allows the user to select any combination of the following toppings: … | |
I am trying to program a game and am having trouble with collision detection. I am trying to get the "monsters" to chase the "knight" when the knight gets close. I am using Panda3D to run the game. I have three classes, the Knights Quest, monster, and wasdCamera. I am … | |
Hi, I didn't really know how to word the title, but I was just wondering if it was possible to write a function and make it accessible as if it was any other str function. It was a simple (but useful) few lines which returned a list of all the … | |
Hi everyone, I was wondering if anyone can help me. I got two forms I can send data from one form to the other one when I press the SEND button. I’m trying to get data from one form to the other when I press the ‘GET’ button, to get … | |
I am trying to output 00001 instead of just 1, so I do this: char pos[5]; sprintf(pos, "%05d", 1); string Index = (string) pos; It works just as I'd expect - if I cout << Index it says 00001 However, it is breaking something totally unrelated. On the next line, … | |
Good day. I've been trying to port HGE ([url]http://hge.relishgames.com[/url]) to Python for more than 4 months now... HGE is a hardware accelerated 2D game engine. It comes with the source and examples. In the folder "include", you can find "hge.h", the file that i am talking about in all the … | |
[quote] Once again, I can get part of my code to work, but not all. When the user inputs more than one sentence [I](ending with either a period, question mark or exclamation point), [/I]each sentence should be capitalized accordingly. However, it only works with the first sentence to work. Does … | |
I've been trying to step into learning wxpython, so I followed some examples on the web and put together this very simple application. The good news for me is that it is working almost exactly as I would expect it to. I do have a couple of questions for the … | |
How can I create a multi language, single-file assembly in C#.Net ? | |
I have just started learning C#.... But I am not getting any good place or book to learn I know C/C++. I would also like to learn .NET(I have no idea what it is). Can you suggest some book or place from where I can start with? | |
Hi Fiends, How can i add new rows in datagridview on run time. accualy I have a table, in which i have Many records But i want some specific records on datagridview .& for that I am using If condition , & whic records are correct accoding to that if … | |
i have a struct with an array of three points in it, for example: struct POINTS { POINT pts[3]; }; then I have another struct with two single points in it like this: struct EDGE { POINT *p1, *p2; } is there a way to set p1 to a single … | |
For some reason my grid will not display in my program. Can you tell me what i would have to do to fix it. In all logic its right i think [code] #include <cstdlib> #include <iostream> #include "color.h" #include <conio.h> using namespace std; using namespace Petter; void title(); void credits(); … | |
Please help, I keep getting error C2664: 'State_Tax' : Cannot convert parameter 1 from 'float *' 'to float' [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include "./myheader.h" void Calculate_Taxes(float gross, float deferred, float *federaltax, float *statetax, float *ssitax); float Federal_Tax(float deferred, float gross); float State_Tax(float federaltax); float SSI_Tax(float gross, float … | |
I am writing a program in which a print function takes in users' street address(string), city (string) , state (string), zip(int). What will my return be for this function? My code snippet is this: [code] string addressType::print_add(string str, string Cit, string St, int Z) { cout<<str<<endl; cout<< Cit <<","<<St<<endl; cout<<"Zip: … | |
Hi I am writing a address book program that is giving a run time error. Please if someone can compile and check this error, and then explain/ show me how can I resolve it. I am pasting my code in parts here as well as attaching the files. Also please … | |
hey guys, ok ive got a program ive got to hand in fast, practicaly works just got to errors so a quick reply would be greatly appreciated. [code=java] import java.util.*; import java.io.*; class Assignment7{ public static void main(String[] args)throws Exception{ File input1 = new File (args[0]); File input2 = new … | |
i am trying to learning c++ and i have a basic or i can say good knowledgeof c so please tell me the link of free ebook (pls don't tell any rapid share link) -PC(INDIA) | |
Hello every body. i'm new here , and i didn't have the chance to introduce myself.i will,later...but for now:...i need help designing a mini C# compiler...i tried to find something practical to implement the symbol table using a hash table, but i found nothing really useful on the net...any ideas??? … | |
I'm creating a java program that in every second there is a data stored into my table. I made use of THread.sleep(1000) to pause the for loop in every second.. But when my program runs, it freezed for 10 seconds because of the condition of my for loop where the … | |
im working a pretty advance program which is a huge jump from what we were doing. 1) im having problems displaying the grid and the robots. its suposed to refresh each time the rounds end. 2)Not really sure on how to assemble my functions =/ the most functions we ever … | |
Hi guys, Will keep this short and sweet. Trying to do integer devision to *decimial places but i dont think the version of ksh installed on solaris 10 supports this as they would need to be declared as floats. Is this correct? If there isnt a way of doing it … | |
I am trying to use shutils to copy a folder but it throws errno 13 at me. The traceback points to open() as the culprit. I wrote a test script: open(raw_input("Filename: ")) this is the result: Filename:e: Traceback (most recent call last): File "C:\Documents and Settings\talvey\Desktop\testOpen.py", line 1, in <module> … | |
I'm trying to sort a Linked List of type T. Here's the parameters for the function that sorts it: [code]void quicksort(SinglyLL<T> & A, bool (* needSwap)(T &, T &))[/code] needSwap is actually a function pointer that just helps in deciding if swaps are needed - there are two different functions … | |
Hi all, let's say I have a string object. I can cout the string literal by just stating the name of the object or I can use the data function. [CODE=cpp] string myStringObj = "Hello World!"; cout << myStringObj; cout << myStringObj.data();[/CODE] So, why do we have a function like … | |
Hello, Thouh i am 60 years old i am still a beginner in c++ and i need some directions from more experienced programmers. The following code successfully reads file clip1.txt. I want to replace the quoted file "clip1.txt" with an expression or a variable or a pointer as i have … | |
i am trying to write a code that stimulates an simple ATM. i have two class, one for the Bank Account and another for the ATM itself. [code] public BankAccount(String name1, int acctNum, int pinNum ){ name = name1; accountNumber = acctNum; pinNumber = pinNum; balance = 100.00; } public … | |
[code=c++] #include <iostream> #include <windows.h> #include <cstdlib> using namespace std; int main() { SetConsoleTitle("The Guessing Game!"); int guess; int clue; srand ( time(NULL) ); int num(rand() % 25 + 1); int total; cout << "Hello Internet\n"; Sleep(2000); cout << "Today, we are going to play the Guessing Game!\n"; cout << … | |
Hi. I am making a c++ console program, and I wanted to add a new feature. but to do this, the guy said i needed a library named curl. Ive only installed 1 library before, but the instructions were VERY straight forward. i have been researching how to install curl … | |
Good day, I started to program c# some days ago and I´m having difficulty to read a text file. I wrote the code below to read the following line of a text file: AdmPassword=�‘“•—™ All caracters of the password have decimal values between 128 and 255. The problem is . … | |
This is my Final Project and as you can see my program asks the users twice for the test grade I am trying to consolodate and have the program only ask for the test score once and give the letter grade at the same time.? any ideas I do not … |
The End.