64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for robgeek

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

Member Avatar for AHUazhu
0
178
Member Avatar for puneetkay

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 …

Member Avatar for puneetkay
0
288
Member Avatar for Pgmer

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

Member Avatar for Pgmer
0
1K
Member Avatar for manoj_582033

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 …

Member Avatar for Teme64
0
196
Member Avatar for shadwickman

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 …

Member Avatar for shadwickman
0
160
Member Avatar for daviddoria

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

Member Avatar for grumpier
0
224
Member Avatar for clueless101

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

Member Avatar for ~s.o.s~
0
128
Member Avatar for mn_kthompson

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 …

Member Avatar for Stefano Mtangoo
0
485
Member Avatar for sierrasoft
Member Avatar for robgeek

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

Member Avatar for Ancient Dragon
0
165
Member Avatar for robgeek

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 …

Member Avatar for robgeek
0
131
Member Avatar for chris5126

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 …

Member Avatar for Fest3er
0
137
Member Avatar for Andrew Wiggin

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

Member Avatar for lllllIllIlllI
0
17K
Member Avatar for freelancelote

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 …

Member Avatar for Narue
0
104
Member Avatar for clutchkiller

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

Member Avatar for clutchkiller
0
108
Member Avatar for Generalcoco

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 …

Member Avatar for Generalcoco
0
89
Member Avatar for hhamdan

Im trying to get the ip address for our company customer and save it in the DB just for statical thing.

Member Avatar for hhamdan
0
134
Member Avatar for Filipe11

I have a form with a tabcontrol, and I would like to know whow to do that the tab follow the form,that means, to maximaze the tabcontrol to!forgive me about my english...

Member Avatar for ddanbe
0
115
Member Avatar for designingamy

Hello all, I am having a hard time trying to figure out why I can't get my code to successfully check my email address. It seems I can plug in anything and it won't give me an error. This is my code for that line: [code] <?php session_start(); if((!empty($_POST['email']) && …

Member Avatar for designingamy
0
85
Member Avatar for dmanw100

I always wondered if it is possible in Windows to read in general file information (size, created date, modified date, etc) and then modify that data? If it's possible, how can it be done?

Member Avatar for low_coder
0
138
Member Avatar for keyser_soze

hey...i want to understand how following code works : [code=c]int x=1; printf("%d%d%d",x,++x,x); [/code] [code]OUTPUT: 222[/code] also [code=c]int x=1; printf("%d%d%d",x,++x,x++); [/code] [code]OUTPUT: 221[/code] actually these o/p are produced when i use [B]visual c++[/B] compiler but when i wrote the same commands in [B]turbo c[/B] they gave perfectly understandable o/p as [B]221[/B] …

Member Avatar for keyser_soze
0
150
Member Avatar for GrahamShaw2008

Where do I locate the logical or on my keyboard? Thanks for your help in advance.

Member Avatar for GrahamShaw2008
0
2K
Member Avatar for palavi

hi, i have one table called EMP with 3 fields SSN,ENAME,MGRSSN. query to retrieve all employees name and their respective manager names(only using this table no other table and ssn primary key. i know till here.. [code=sql]SELECT ENAME,??? FROM EMP WHERE SSN=MGRSSN ;[/code] here im only getting manager's name..so how …

Member Avatar for palavi
0
100
Member Avatar for Grub

Hi is it possible to get the file creation date of files on the mac using c++? If so, may you assist me on how do I go about doing so? Many thanks

Member Avatar for Grub
0
379
Member Avatar for Littlerocks

Thanks in advance. I am wriiting a code about Conway's game of life,and i am a beginner of python,have looked at my code for hours,still couldnt find out the bug...when i run it,it doesnt work....only return the same matrix as the test code given..anybody can help with check it would …

Member Avatar for Littlerocks
0
119
Member Avatar for ninja_gs

[B] i need to find the user I/p is an String or char or int or float in C++ lang . [/B] My Goal is to Get 3 inputs from user and Find the Greatest of all and list out it but matter of fact the Big deal is the …

Member Avatar for som shekhar
0
193
Member Avatar for bhavna_816

I have created a C# Windows application in .NET 3.5, it runs the powerpoint slideshow and closes all the existing slideshows and should only run the new .ppt application. In C# when I run this application with putting breakpoints it runs fine and gives no error. But when I run …

Member Avatar for bhavna_816
0
953
Member Avatar for cVz

Hey there, i really want to break my pc by now can anyone tell me how to get around this ?? I just want to update the new database here [code] USE NGCOLLECT GO INSERT INTO dbo.Cases ( CustId , Consultant , Bank , OldAccountNo , LastAmountReceived , DateReceived , …

Member Avatar for cVz
0
132
Member Avatar for kvdd

Hello people, I want that when I mouse over a checkbox, that it is checked. I have now the following code: [CODE=javascript] <script language=javascript> function checkit(myform, name) { var xx = document.myform.name; xx.checked = true; } </script> <form name=myform27> <input type=checkbox name=mycheck onMouseOver="checkit(myform27,mycheck)" value="1"> Checking </form> [/CODE] But this does …

Member Avatar for kvdd
0
2K
Member Avatar for ohlaph

I'm working on this project due by 4AM and my loop keeps stopping after following part of a loop. I've checked the code several times, but it just freezes inside the checkstuff function. Can someone tell me how I can break from that fucntion or loop and continue looping through …

0
68
Member Avatar for CoolAtt

Hi. i have to extract the following line: C:\WINDOWS\lsass.exe i tried [QUOTE](\w:\\.*\.\w{3})[/QUOTE] it worked on some strings only. any suggestions ? plz help.

Member Avatar for CoolAtt
0
90
Member Avatar for servis

Hellow evey body, I have to use same sql query frequently on diferenet php scripts pages in a appliction, i want to put this query in a funtion to use it where i want but this funtion is not working at all. i am unable to figure out the problem, …

Member Avatar for servis
0
139
Member Avatar for anilk

Hi All, I am a total newbe to python. I am using some already available code to send email from commandline using my Gmail account. For the piece of code smtp = smtplib.SMTP('smtp.gmail.com', 587) I get a error ################ Traceback (most recent call last): File "Mail.py", line 44, in <module> …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for Diamonddrake

Does anyone remember how ms dos had a [B]sort[/B] program that you could sort the rows in a huge text document based on just one character by its position from the left margin? I am trying to recreate that effect in a notepad clone. I am sort of new to …

Member Avatar for Diamonddrake
0
154
Member Avatar for serkan sendur
Member Avatar for jbennet
0
62
Member Avatar for Doy123

Hello, I'm new to the forum. I studied x86 assembly about 25 years ago. I think we used a 8080 or 8086. It was all Dos back then, no Windows. Anyway, my career took me down another path and I would like to learn assembly again. My laptop and desktop …

Member Avatar for jbennet
0
88
Member Avatar for Grub

Hi It is possible to execute terminal commands in java, but is it possible to then get the output or result of the terminal command as input into a java program? If so, may someone tell me how or point to materials that I can read. Many thanks

Member Avatar for Grub
0
193
Member Avatar for designingamy

I'm having a hard time with sessions. I have a long form on 3 different pages and then a preview page of everything entered. I created the code to store the session variables on each page but on the preview page it comes up empty. I am using session_start(); on …

Member Avatar for designingamy
0
84
Member Avatar for veledrom

Hi, This is my XML file. I want to retrieve information stored in a HTML Table in index.html page. How can i do it? Thanks [code] <?xml version="1.0" encoding="UTF-8"?> <memo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="memo.xsd"> <header> <companyName>XML development LTD</companyName> <to>myemail@yahoo.com</to> <from>xml@yahoo.com</from> <date>1979-11-07</date> <reg>I don't know the reg</reg> </header> <body> <message> <parag>Hello, How are …

Member Avatar for veledrom
0
163
Member Avatar for Lukezzz

General question: If you want to create a homepage, wich application can you do this in ? I know C++ well but I am not sure if you can use Visual C++ Express Edition 2008 for something like this ? Does anyone have experience of this, What application could otherwise …

Member Avatar for ArkM
0
92
Member Avatar for lulusweety

I know that red black tree is a special case of binary-search tree. But what is the advantage of red black trees over BSTs. Is there any advantage regarding complexity. Does coloring the node cause any difference regarding the complexity? please anyone give me an answer.. Thanks in advance

Member Avatar for haider_up32
0
155
Member Avatar for BestJewSinceJC

I'm trying to read in the whole file at once. If this code ever fails, my whole project will fail. I'm using the following: byte[] theFile = new byte[input2.available()]; then, input2.read(theFile); The API says something about blocking. What exactly is blocking, when will it happen, and how will it affect …

Member Avatar for BestJewSinceJC
0
91
Member Avatar for happymadman

Hi Is there a way to check if a float is a whole number eg 10.0, 7.0 or somthing.0 I'm doing problem 5 on project eular Mayby I have the complete wrong idea here is my code: [code] numbertobetested = 0.0 loop2 = 1 while loop2 == 1: numbertobetested = …

Member Avatar for sneekula
0
101
Member Avatar for spanigrahi_situ

HI All, Ant Unix method or C++ method is there to convert unix time stamp to system time stamp.The input is ULONG and out put should be in string. u can intimate to <email snipped> Any help is appreciated in advance.

Member Avatar for Salem
0
2K
Member Avatar for divyasrinivasan

pls give me the complete code for it ..i tryed but not getting the output..pls help..iam pasting the code here but no output [code=aspnet] SqlConnection cn = new SqlConnection(ConfigurationSettings.AppSettings["con"].ToString()); protected void Page_Load(object sender, EventArgs e) { Response.Write("sql is connected"); SqlDataAdapter da = new SqlDataAdapter("select countryid,countryname from countryname", cn); DataSet ds …

Member Avatar for terrible
0
147
Member Avatar for nikola.rosic

Well i have one main form which i run like an application.On that main form i have 3 buttons which are opening another 3 forms(instances of Form2 class) which are of the same class Form2. So i have : Form2 form1=new Form2(); Form2 form2=new Form2(); Form2 form3=new Form2(); all of …

Member Avatar for LizR
0
257
Member Avatar for servis

Hellow, Can we prevent exposing java script and css in source code of web page on the user machine??? please if anybody know about it???? shuja

Member Avatar for jbennet
0
192
Member Avatar for stevehart808

Hi, This script works great when uploading photos but if I try mp3's I get 'Error uploading file' Any ideas would be much appreciated! Thanks [code] <? $uploadDir = 'mp3/'; include ("../includes/database.connect.php"); if(isset($_POST['send'])) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; $fileSize = $_FILES['userfile']['size']; $fileType = $_FILES['userfile']['type']; // get the file …

Member Avatar for stevehart808
0
207
Member Avatar for Zermoth

Try to do 3 things. The 1st see if a database exists in a certain location: if it dose then connect. else show error message. The 2nd see if the database is open: if open the display a message to the users that they are going to get disconnected. pause …

Member Avatar for Zermoth
0
148
Member Avatar for Demonisya

O.k My teacher game me a take home exam which will be submitted on monday..... and also I have to defend what I composed so I will ask you many questions so that I will understand this program..... my teacher said Never use C... do it in your own ideas.... …

Member Avatar for Demonisya
0
107

The End.