64,152 Solved Topics
Remove Filter ![]() | |
Hi, I've run into a situation where I can not see how to write efficient code to perform a check that I need to do. I am running on MSSQL 2005 The check is to compare a varchar passed in to the stored procedure against the words in a table. … | |
My problem may be very simple. I want to use a Tkinter window to show informations to the user, so that he could enter his answers to the Python Shell. The problem is that when the Tkinter Window appears, the Python Shell will no longer receive any command before I … | |
hello there, in what way you can convert an integer to a char?? i'll use it to check if the user's input is a number, if it is a letter, it will allert him to try again and input a number...the integer will then be use for a 'for loop...thanks | |
[B]Hi I need to create a void function to calculate area and circumfernce of triangle.[/B] [B]So far I did this:[/B] void area(int a, int b, int c ) { using namespace std; int area; int circ; int s; s = ((a + b + c)/2); if ((a + b > … | |
I recently started dabbling with Visual C++ Express Edition 2005. Was stuck at the very onset! LOL! How to Create a console application using Visual C++ Express 2005 ?? I could create the project, included the files..did all.. build it nice and clean.. but how to run [ make ] … | |
I just was wondering why the array its self are a pointer to the first element? and what is the difference between an array and a pointer? | |
Hi all, I tried one program to understand the concept of "Default Arguments" that program works prefectly in Dev C++ but not in Turbo C++ compiler(Ver 3.0). Here's my program [code]#include <iostream.h> #include <stdio.h> using namespace std; void justcall(char *c="Parthiban"); //char a[10]; //Global declaration needs for Turbo C++ Compiler void … | |
Hello, I would like to save the drawings I have made on a Canvas with the Tkinter Module. Is it possible to make a .jpg or .gif or .bmp from a Tkinter window ? Thank you! | |
its part of a dvd program. i want all the objects created and manipulated by the program to be stored in a dynamic array that might grow during the execution of the program. I want to program to store the info in a dynamic array that i can call anywhere … | |
In one of my previous posts [URL="http://www.daniweb.com/techtalkforums/thread77253.html"]here[/URL] I got the information on what I had to do. Now I have a similar problem instead of using a button to do that I have 2 links that when clicked will take you to the same page but depending on the link … | |
Hello everybody!!! I'm desperead and i want your help!!!!! I have an excersice which say's: Built a class for dates using private data.the attributes must be controlled for validness.Implement methods for print and a method which returns the difference between 2 dates.Also make a method that calculates the day of … | |
G'day, Back again, this time with three problems. The code below contains a white entry box that I'm trying to get rid of. The main reason I'm trying to get rid of it is that the game I'm working on has a scrollable GUI, and with 50 or so frames … | |
![]() | I am creating a website for a homework assignment & I need help will the login page. I am using an access database with a users table. the username and passwords are stored there. My two text boxes are txtusername & txtpassword. And I would be putting the code into … |
Hi all, I just started to work C++ in Dev C++ compiler before that i used Turbo C++ compiler when i try to compile a simple program in Dev C++ compiler . I'm getting error . Here's the program [code]#include <iostream> #include <conio.h> int main () { cout << "Hello … | |
Hey guys, im just askign if its possible for sum help with this assignment i have, its a connect 4 game, and there are some bugs that i cant work out of it no matter what i try here is the code. problem are: 1. when choosing from the first … | |
I have heard a lot about OpenGL. I was just wondering if anybody could tell me what the pros and cons of it were. | |
awk '{print NR SEP $0}' SEP="/ " exfile1.txt > try2.txt here is a awk scritp which copies the contents form one to anthor it works well, but how do I change it to copy the contents in to several files ? can any one help please | |
Hi, This function that I've written works well when compiled under the Turbo C compiler on windows XP but it says Segmentation Fault while it runs on linux after compiling with cc Compiler. I've been trying to think what might be wrong....I'm just wasting time....Please help me solve this bug. … | |
Hello. I'm currently revising for an exam in structures and algorithims, but recently ran across a problem in my studies. I have already tried lookung through notes, online and Daniel Liangs java book, but can't find exactly what I need. The code is as follows: [CODE] public class QuizTest { … | |
How would one right justify a string with a width of 4 and store it in a variable without being able to use cout? If that is even possible. | |
hi im doing a hangman game on delphi and need to randomly choose a word from an array then every letter guessed by the user for the game to check if the letter is in the word n if so place it in the appropriate place and if not build … | |
how can i create the byte and word data types. Im using a header which requires word and byte data types for execution of data. where as my compiler dun accept those types. how can i implement them? thank you in advance. regards, Shrikrishna | |
hello everyone, im having issues with this. i don't know what else to try. i am supposed to add a remove function to delete the last node in the list, i am trying this, but i get an endless loop, and when i change it around it just sits there. … | |
Hi, I've been trying to create a C++ program that gets the input from the user, calculates the amount of digits in the array and then calculates the sum of the digits Heres what i've got so far int main() { char num[100]; cout << "\nEnter Number: "; cin >> … | |
ok, i need small help, to create/open a file with specific name, in order to make it clear here's a small function from my program [code=cpp] void CreateNew () { string fileName = "helpme.txt"; //==>>> my problem!! ofstream DataFile; DataFile.open(fileName, ios::out | ios::app); // string fileName == filename if (DataFile.is_open()) … | |
I'm building a large scale application and was wondering the difference between static counts vs dynamic counts. Right now, I'm using dynamic counts. For an example: [code] SELECT *, (SELECT COUNT(1) FROM CarImages WHERE CarImages.carid = Cars.id) as ImageCount, (SELECT COUNT(1) FROM CarBuyers WHERE CarBuyers.carid = Cars.id) as BuyerCount, (SELECT … | |
I'm struggling with XSLT. I need to copy an entire xml file to a new xml file. The input and output should be identical except for the addition of some extra tags around certain elements. Consider the two versions: [code="xml"] <?xml version="1.0"?> <document> <header> <general> <version>1.14.2</version> <form>/XX/ATL_ZI_D007_PURCHASE</form> <language>EN</language> <device>PRINTER</device> </general> … | |
Im creating a Databased; based program to of course send and recieve data from/to the database but never have I use MS Access before. can anyone recommend a simple tutorial for me? | |
Hmm. I am converting a string into an int. [code=c++] string sum(string line) { string first; string last; string scores; string output; istringstream lineStream(line); lineStream >> last; lineStream >> first; for (int i = 0; i < 10; i++) { string getScores = "0 "; lineStream >> getScores; scores += … | |
Hey there, i have been given a task to complete as home work for college and i seriously have no idea how to do it, hopeing one of you guys would be able to shed some light on it for me? Well here it is. You have been asked to … | |
Hi, I have to find the path file of another exe running parallel to my app. I will have to do this in runtime. This is a project in Visual Basic 6.0. Can anybody help? Vishnu | |
Is there a member function in the string class to put two strings together at a certain index? For example... if i took these two strings... city = Memphis and state = Tennessee to put them together like this [code=c++] Memphis Tennessee [/code] The city would start at index 0 … | |
Hello everybody, I have a situation in which I want to execute a command line from a Delphi application, and I want to capture the output from that command and then display it back to the user. Using [B]CreateProcess[/B] I can successfully execute the command - and I am able … | |
Anyway, i'm working on a PHP module for a CMS where if in the database a website user is either selected as, "GBP" or "EUR" in their Countries' currency field, a set of text is displayed. And if the users' currency is either, "USD" or "JPY", a different set of … | |
Good night; can you see this function ; its true but the only error is : missing ';' before 'return' missing ';' before '}' missing ';' before '}' missing ';' before '{' missing function header (old-style formal list?) but there is no ; missing , i checked it twice this … | |
I am writing an ASP.net application (with VB.net). Users are allowed to register and upload files. I want to allow them to download the files at a later point. How should I do this? Any help is appreciated. | |
So I would really like to use Python to play some sound files -- it doesn't particularly matter what format, as they're just going to be basic "ping" type noises. However, it seems like whatever advice I find doesn't work out for my situation -- most modules seem to be … | |
I want to make a popup menu when i rightclick on a ListView Row I just want it to say Edit [Seperator] Delete ^^ Also how do i make a Sub Item a link to open a new form? | |
i'm developing a c++ program here and also i'm nwe to c++. i have been given a program that has to print integers from 0-10 with their squares and cubes in a table form. but the problem is i'm only allowed to use if statement onyl to do this program.well … | |
![]() | i tried to run a graphics program in my borland c++ 5.02 compiler.. i opened a new project, changed the platform to DOS(Standard) mode... check marked the BGI option.. and added my program as a new node to my project.. and compiled it successfully but when i try to execute … |
[B][COLOR=#000000]Write a program that will compute the quarter/semester grader for all the students in a class. Scenario is as follow: [/COLOR][/B] [COLOR=#000000] [/COLOR] [LIST] [*][COLOR=#000000]There are total of forty students in any given class. Each student has twelve graded items. Each student is given four tests, four programming assignments, and … | |
hello there, i have here a program(linux based) that creates a directory then transfer files to that said directory...the problem is, im using strcat to join my bash script commands to the users inputs..now, i have a loop that concatenates the commands... is there a way that a concatenation will … | |
I simply want to create a GUI interface that allows the user to input an integer. I know that a GUI is very unnecessary for such a task, but I want to learn the basics of GUI. | |
[COLOR=#000000]The Program. [/COLOR] [COLOR=#000000]You have been asked to solve a problem for an old gameplayer. She has purchased a new game. It is a sort of Solitaire. This suits the old gameplayer as she has no friends so a game played alone is ideal. [/COLOR] [COLOR=#000000]The game is played on … | |
Hi I am new to SQL and I am trying to connect to mssql server via vb.net with a code someone else has done. I am not sure why it won't connect. part of the code is below: _DBConnection = New SqlConnection '(ConnectionString) _DBConnection.ConnectionString = "Server=MASTEC;Database=CHH_Cardboard_DA_new;User ID=sa;Password=xxxx;Trusted_Connection=False" _DBConnection.Open() when I … | |
Hello, i have a multiple checkbox that needs checking. So i build some validation code through javascript. I found some problem in setting the name of checkbox in a loop. The loop should check three checkboxes. Which are [B]status1[/B], [B]status2[/B], and [B]status3[/B]. You might want to see my code below. … | |
automatically generated with the format of V000# how??? | |
hi all, i have a question 1) how can we change the value of a macro during compilation time tell me with an example 2) what is difference between exception and memory leak. how to handle exception in c 3) where are the extern and register variables stored(text,data,BSS,heap,stack) | |
HI guys, I am taking C++ and I'm suppose to write this program where it asks the user to input a grade that they recieved in their exam . The grade is an interger from 0 to 100. Basicly the program should convert the numeric grade to a letter grade. … | |
Hi again everyone. I'm having a problem with some code I am writing. I need to take an input file change what is on it, then print out to the screen. What I want to change in the file is re-formatting it so that there is Last name First name … |
The End.