199,114 Archived Topics
Remove Filter ![]() | |
How can I execute a command like for example using system(); but execute so the program does not need to wait until the function returns before it continues. Also when executing a command using system(); can you make it so that the console window does not pop up onto the … | |
I'm studying C++ beginner book for a while and now I'm learning a function call by reference. I understand how but I don't understand why.... I solved the problem which is in my book. Problem: Create a void function called round() that rounds the value of its double argument to … | |
i have to find two time stamps one at the begining of main and at the end of main and take the difference to find the time elapsed to execute the code in between.Can anybody suggest the programs or proper API s in Linux. | |
[INLINECODE]#include<stdio.h> void print_message(void); void print_message(void) { printf("This is a bug\n"); } int main() { print_message(); }[/INLINECODE] I'm using VS 2005 SP1+SP for Vista on Vista buisness and as I wrote in Title when I have functions in my programs and I start debugging F10..F11, and debugger encounter a function instead … | |
Hi guys and Gals, Have some trouble digesting some facts about Casting in C++. 1). Why can't we use a static_cast for safe downcasting on a polymorphic class? 2).Consider this snippet.. [code] [COLOR=green][COLOR=green][COLOR=green]class[/COLOR][COLOR=green] A {};[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]class[/COLOR][COLOR=green] B { public: B (A a) {} };[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]A a;[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]B b=a;[/COLOR] [/COLOR][/COLOR][/code] [COLOR=green]How … | |
Hi what purpose of HttpSessionContext? all the session information are stored this place. Thanks inadvance arun | |
Is it possible in C++ to have a function that returns a 2-D or indeed an X-D array from a function, with a specified type such as.. [code=c] char [][] myFunction() { char a[][]; //Do something with array here return a; } [/code] Also, if this can be done, can … ![]() | |
i'am newbie on using Tkinter, and i need help for my application i make application small calculator, but i can't make it just like standard calculator on MS Windows please Help me i wan't my application calculator like this : | |
Hi im using switch to access some member functions through object [U]s1[/U] of that class [code]switch(choice) { case 1: s1.Now(); break; case 2: s1.create(); break; case 3: s1.display(); break; case 4: s1.change(); break;}[/code] Is there a way to change/use only a part of a function? For example for case 2 … | |
Hello... I would like to know if C++ is actually used in games development... I understand it's to create or update the game engine, such as say unreal, though is t used for more? thanks | |
hi.. i need help with this program. this is a program to turn 'ON' and 'OFF' 1 LED using 2 push buttons. the underline statement suppose to wait for button press. but it is alway false even i have press the button. is there any one who can tell me … | |
I have written a script for a drop down menu on my site which on mouse over the menu item changes from blue to yellow and show the drop down item but now I'm stuck,i want to use background images instead of colors.On mouse over, it changes from image A … | |
hi all , i want to make function that remove any space before sentance (i.e if user enter multi space before your comment remove it ) and if enter multi space only this function return empty string . | |
Hi, I am trying out a bank account program using the corejava package. I am getting a run-time eception when I create a new account & am unable to trace where the error is. Plz help. I am giving the code below. [CODE] import corejava.Console; /**************************************************************** **cLASS bANKaCCOUNT REPRESENTING THE … | |
I 've read Narue's answers in another game thread but there are still some things I would like to ask. what kind of c++ works best for games? can one use any kind. the main reason for using c++ is, i assume, to take up as little space as possible … | |
Hi all - First time posting so please bear with me. I'm in the last week of a C++ class and cannot figure out how to do this assignment. I need to evaluate each character of a string and process using a switch statement. The CASE processing I have no … | |
Hi all, I was reading about some stuff about References in C++ and got into a debatable topic.. Is references same as a constant pointer to a variable or not. I got some info. to support the topic [URL="http://www.codeproject.com/useritems/References_in_c__.asp"]here[/URL]. At the same time, something that says otherwise [URL="http://www.cprogramming.com/tutorial/references.html"]here[/URL]. Can you … | |
[B]Hi everyone, What does this command mean? grep '^[a-zA-Z]' Cheers, [/B] | |
[B]Hi everyone, Is there any option for rm to remove a directory with no prompts?Actually I know about rm -r but by this option I have to answer lots of questions... Cheers, [/B] | |
Hi all, i did code in jsp for "change password" when user want to change his password he have to enter his old password and then new password. if he enter wrong password there will be error msg display "sorry you have entered wrong password, and if he enter correct … | |
how to work servlet, jsp programs at eclipse 3.0.? Please give any online tutorial site for larning eclipse, and seting up envirnomets for eclipse. Please help me for this. | |
i am a beginner and working in vb 6.0 as frontend and ms access as backend hello ! i have following tables party:- partyid,lastname,firstname,address,areaid,profid profession:-profid,profname area:-areaid,areaname route:-routeid,routeno,routename routearealink:-routeid,areaid i am using msflexgrid control to enter/modify/delete party details which includes area and profession also.For that i want to use a moveable … | |
Hi.. Am newbe to ASP.net, facing problem while using vaidation controls. I have a form where in have used ADD,EDIT,SEARCH, CLEAR buttons. When i press an edit button datagrid can be viewed. But when i use validation controls error messages are displayed if I click on edit,clear, add or search … | |
Hi, I have setup connection with GLUE directory. and getting some attribute also, which i am specifying in search array parameter, but not all. i need to fatch all attributes and their value. even i m not able to fetch the schema also. I don't know what is problem, as … | |
I've tried to run the BankServer.java class for several hours and this is the error it gives me: G:\Distributed Objects\Exercise 3\BankServer.java:11: cannot find symbol symbol : constructor BankImpl() location: class BankImpl BankImpl b = new BankImpl(); I have other classes orf the Bank interface, BankImpl and BankClient but they're all … | |
Freinds, i couldn't able to use backspace in the solaris OS! whenever i do it is printing character like ^?. So what i does is just executed command like stty erase ^? then it is working. Can we have some permanent solution for that? my shell is C shell, i … | |
Hello, I want to know is it possible to access and modify content of a Excel worksheet dynamically inserted as OLE object in a form. I wish to check and update values of various cells by cell number of the worksheet, but not being sure if possible. thanks in advance | |
Hello guys! I am editing a program regarding billing system done in Php and MySQL and generated using the Code Charge Studio. I have problem in validating a newly entered data. What i want is to check if the billing statement number is existing or not and will not saved … | |
I am thinking of developing commercial software to rival microsoft office. qiet clearly i cant do this alone i mean it would take like forever and ever so if anyone is interested lets get talking | |
What i have to create is a program that establishes 2 structs with arrays of CD Albums and then search the arrays for album names and display the album name, Artist or group, songs and their track numbers. My question is; [COLOR="red"]have i missed something in the code?[/COLOR], because it … | |
Hello there, anyone here knows what is the function or library in Linux that corresponds to the win32 functions/library given bellow. library - #include <Windows.h> functions - GetDiskFreeSpaceEx()、GetFileAttribute()、GetModuleFileName()、GetFileVersionInfoSize()、GetFileVersion( ) Thank you! | |
I basically need to write a program that will display all images in a directory, sequentially, and either create or open an existing corresponding text file, and allow a user to write/dictate into it. (e.g. So working in a directory containing one.tif, two.tif and three.tif, the program will open/create one.txt, … | |
Hi.. I'm new in programming microcontroller in c. And I was given an assignment to write a simple program to turn 'ON' and "OFF' the LED by pressing push buttons. The microcontroller i'm using is PIC18F4620. And i'll need 1 LED and 2 push buttons to program this. I have … | |
I am using Apache 2 with windows web server 2003 on the windows XP. I have problem using exec() command. My safe_mode is off. Does anyone know what can be the reason why exec() does not function? It is interesting that immediately when I restart the Apache server exec() command … | |
Hi In any project we can set values to the session.and get value from the session. which place or path the session information to be stored. Thanks in advance | |
Respected Seniors & dear friends I want to know which tutorial is the best one to learn from basics of java. Please give me any links | |
Ok, say im using the cmd prompt version of MSVC++(or the windows app type), how do i post a project on daniweb, HTML, or any other website(or like a quick luanch desktop icon)? | |
I want the program to have the user select either Y or N to display the list of albums in the array, if the user entered Y to display the list of albums then have the user enter a name for an album from the list to search the array … | |
Hello you guys. I'm very excited since I'm so close to finishing my project. However before I'm totally done I am kind of stuck on this error message when compiling. It says "[COLOR=red]cannot find -lobjc[/COLOR]." Have anyone seen this before? [U]What does it mean?[/U] I've added my entire code if … | |
I have a code generated with netBeans. It use org.jdesktop.layout. I have the file swing-layout-1.0.jar. But I don't know how to compile and run mycode.jave with that jar file. Please write full comands if possible. I'm so new to java that every step use me 2 hours - 2 days. … | |
Hi all, I have 3 labels, with 3 captions (i.e. integers)... Label 1 = 1 Label 2 = 3 Label 3 = 2 What I want to do is search all these labels and find out what the highest number is (in this situation it's 3) so that I can … | |
Basically I'm writing a function to change all the '|' characters in a string passed as a parameter to '\n' characters. Seems simple enough to do, but I get one of those "Application has encountered a problem and needs to close. We are sorry for the inconvenience." messages. [code=c] char … | |
I copy and paste code generated from NetBeans into a java file. To run it, I got message "package org.jdesktop.layout does not exit" What should I do? Thanks ahead. | |
i have a form which i have to protect with a password. this form is called from a user form which does not have any passwords on it. which means anyone can access it. in order to accomplish the security i placed a password in an access database but the … | |
I advice you to desist from this almost imposible task. And I am of the openion that you are not even aware of a fraction of the tremendous potentiality it offers for simple office management to very powerfull computing- options integrating small office to corporate bodies spread over miles apart. … | |
well here is the part of my script that is malfuctioning. [CODE]require "config2.php"; require "config.php"; $result = mysql_query( "SELECT `sum` FROM `subs`" ); $sq = mysql_fetch_assoc($result); $value = $sq['sum']; $val = preg_replace('/$/', '', $value); ?> <br> <?php echo $val; $query = mysql_query( "SELECT title, threadid FROM `thread` WHERE forumid = … | |
I need to return some HTML code stored as a text data type in my database. Is there a way to return this HTML effiencly through PHP that will execute this code when HTML parses the page? Currently I have this: [CODE]$result = @mysql_query("SELECT * FROM sponsors"); $num_rows = mysql_num_rows($result); … | |
hello everyone, how to write exit code in visual studio.Net so that whole program closes on button click event? And how Message box is created, also how to take input from user as we do in javascript using prompt command? Can anyone help me in this..... Thanx in advance. | |
i want a calculator project just use applet not swing or frame i hav but i took just input through mouse but dont perform any operation |
The End.