64,152 Solved Topics
Remove Filter ![]() | |
i just wonder what is the most reknown-popular-acknowledged c certification? | |
hi friends i have developed an application for bank accounts. Its a web application and my server is Tomcat 5.0. my requirement is that user could sms (from their mobile) to my application. In the SMS they will provide their account no and in response my application will send a … | |
OK .. I was migrating an application from a staging server where the MySQL version is 4.1.10a to a live server where the MySQL version is 5.0.45. There apparently is quite a difference between query syntax on one versus the other. For example, in version 4, this worked: [CODE]SELECT uas.usr_id_users, … | |
I am attempting to input data from a log file into a database with tables for each network device. The table name is set via a parameter for the function. The script crashes after running stating the table name does not exist. If the actual table name (routerA) is listed … | |
Hello! I have an assignment where I have to take user input from my GUI (Month, date and year) and then send it to my CalendarUtil file where the input will be handled in the static methods. The part I an stuck on is the monthNumber method. I had written … | |
For future reference here are the instructions for my assignment. Thank you in advance for any feedback you can provide: Implement the Message class using a header and implementation file named Message.h and Message.cpp respectively. In addition to the two Message class files, you must write a driver. The driver … | |
Hi, I am having some troubles with a recursive function. The function needs to get a string as an input. The string contains both symbols and numbers. What the function does is doing some operation on the two children of a node, the node being the operation(+,-,*,/). The thing is, … | |
Normally, arriving at a PHP page with a data entry web form, you would have to click on any field you wish to change to go into data entry mode (the first field or any successive one), and then you can tab between fields (TAB to go forward or ALT-TAB … | |
i'm trying to put a function call inside of a function call: [CODE]switch_statement(menu());[/CODE] switch_statement is a function call and so is menu. I want what menu is returning to go into switch_statement but i kinda don't want to bother making a new variable just for this task.. So is it … | |
| |
Hello all, Newbie and running out of steam here. I have a form passing the checkbox value to a db. The db is essentially 2 fields news and id (auto-increment). I'm pretty baffled as how to extract the data. Ideally I would like to give each form submission a unique … | |
Hi In the below code , i am getting compile time error when declaring the copy constructor . C:\work\Dev-Cpp\bin>"mingw32-c++.exe" dynamicArray.cpp dynamicArray.cpp:13: error: expected `,' or `...' before '&' token dynamicArray.cpp:13: error: ISO C++ forbids declaration of `dynarrray' with no t ype dynamicArray.cpp:13: error: `dynarray::dynarray(int)' and `dynarray::dynarray(in t)' cannot be overloaded … | |
Does it need a copy constructor and an operator= for a class which have array member? for example: Class A { private: B data_[100]; //B is a class }; does class A need a copy constructor and an operator? in other words, is the default copy constructor is OK for … | |
The following program is able to download the python programs contained in a thread of the python forum. Just start the program, it will prompt you for the thread number and create a directory with the code extracted from the thread. I used it to download all the wx examples. … | |
I have some simple php code. It worked fine on the old server, but now I am getting an error on the new server. Both former and present servers are Linux. [code=php] <?php function ConfirmationEmail () { $from = "mo@abc.com"; $recipient = "bill@yahoo.com"; $cc1 = $from; $cc2 = "mo@gmail.com"; $subject … | |
Im creating some pseudo code for a test and I was wondering if its possible to have a case statement inside a Repeat Loop. Is there any specific rules for this kind of thing? Thanks for any reply. | |
Hi I am trying to ask the user to input a binary number and checking to see if the input contains 0's and 1's. If not, I want to inform the user that the input was invalid and ask them to retry. Any help to fix my code would be … | |
I am trying to create a heap sort method using recursion but whenever one of my methods called maxHeapify is called, it would throw a StackOverflowError. I understand that this error will pop up whenever my application recurses too deeply but the problem is I don't see anything wrong with … | |
Hello and Happy holidays to all. I am new here, so sorry to bother you. I'm working on a project for a class and have run into a bit of a snag. I have a method that reads integer values from a text file and stores them into an array … | |
I am trying to read a file from fstream in a switch statement but something in the code seems to be stopping this part of my code to be read by the compiler. Please some one let me know what am I doing wrong. Its not the text file thats … | |
[code=c++] 4 char *min(char *a, char *b, char *c){ 5 if(strcmp(a,b) > 0) && (strcmp(a,c) > 0) 6 return a; 7 else if(strcmp(b,a) > 0) && (strcmp(b,c) > 0) 8 return b; 9 else 10 return c; 11 } [/code] Code won't compile and the irony is i just did … | |
Hi all, Background: I am dealing with graphical objects on a canvas in which the user draws four lines and out of these four lines I get the top left corner, bottom right corner and figure out the width and height from these two points. Problem: I have completed this … | |
Hello, I had to make this program and it is all working except it is not writting to the file. Can you help me out? Here is the code: [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /** * Program that allows user to select a meal. * Includes … | |
Here's what I'm trying out: [icode]Substitute characters into values with no set left bits; check if the next position is a vowel(or whatever), turn it into a value with no right bits set, join the two characters into a single byte, delete the unused position now.[/icode] Here's the code using … | |
Hi, Iv been playing about trying to get a string onto the clipboard, but Iv had no luck at all. Iv done quite a bit of searching, but Iv only ever seen any examples that relate to Windows, and I'm using Ubuntu here. Any ideas anyone? Max | |
Hi, I have a problem with a sequence. The sequence is a number range from 1 to 100. I need to show each number and also the running total of each number. for example First number in sequence is 1, running total 1. Next number in sequence is 2, running … | |
Hi there. I'm writing a program that uses a tree control as a form of navigation, and the structure of the tree is set up in code as the program loads. This is fine for now, but there is the possibility that the structure will need to expand considerably, which … | |
Hi! I am using a code to echo a row in a database table using ajax with PHP. The code is working correctly. The ajax will send the response text as follows- [code] document.getElementById('outputText').innerHTML = httpObject.responseText; [/code] My question is how can I retrieve individual fields into separate Id's? | |
Hi all, I want to retrieve selected item from listbox in a jsp page and send it to a servlet. I am not able to get selected value. Can u please tell me how to get selected value. In servlet i am trying to get the selected value by using … | |
Hi guys, This is me, novice programmer to Java. i have a very simple question. can i change Font of a Label? for example i have a label: Label l1 = new Label("Welcome To Java"); now what i want is to be able to change the text(Welcome to Java) to … | |
Hello, I'm still a C beginner. I am trying to make a simple code for searching a string in a doc file. I want to search for a name in the "Employee Database", and display the employee data no,name,desgnation,reg no.,Projects worked. The template in the file is as follows: [CODE]Employee … | |
I am pulling info from zillow and then setting a price based on sq ft of the house. I am also using zillow to pull lat and lon to pull up a google map on the property the problem in some homes don't have sq footage and my cold fusion … | |
Greetings. I'm a python noob and I'm stuck with some coding. Say you have a list with a number of elements, some of which are the same. For instance: mylist = ['blue', 'red', 'green', 'green', 'red', 'red'] Is there a way to return how many times each string occurs in … | |
Hi, I am writting code for a Jtable. Now in this Jtable I list file files based on different attributes, including CRC Hash. Now I have a table that has 6 columns. the data Model extends the Abstract data Model. In my data Model I have two particular methods for … | |
Hi. Im working on a project with a relative size and Ive run into a deadlock, I need some advice in how to proceed. I have a server that creates multiple threads to handle its clients, but each thread must serve a client multiple times, here is the thread handling … | |
Hi all there. I was given the task to implement a Subset class with a few function. It should be structured so to contain the original set and make it possible to generate all subsets. Right now I'm focusing on the "generate all subsets" part. I've done a little searching … | |
Hello, I have a problem creating a template class with copy ctor and cast operator to class of base template (using gcc 4.2). The program compiles if only one of them is defined but is not compiling if both (copy ctor and cast operator) are defined. The compiler error is … | |
i have made a tic-tac-toe game for my HTC touch and it runs pretty well. now i only need to figure out a way to add it in the pda's games(so that i can have it on start menu) instead of opening the explorer to find the exe each time... … | |
Need some help on text file compression.... Text File Compression. The text file compression must be able to perform the following functions: • Able to compress a text file and generate an index file • Able to decompress the file • Able to show the time taken for compressing and … | |
Hello All, can someone tell me exactly what is done by this function? Thanks alot! | |
This is my example code: [code] #include <vector> std::vector<int> v; int main(int, char **) { std::vector<int>::const_reverse_iterator iter = v.rbegin(); if (iter != v.rbegin()) // or v.rend(), whatever, just problematic { } } [/code] Is this supposed to compile correctly? Using g++ 4.2.4 it does. Using [quote]sbox-i686-linux-gcc (GCC) 3.4.4 (release) (CodeSourcery … | |
I'm a little confused on umasking. The way I was shown to do it manually is to take whatever number the umask is, say 123, turn that into binary for the permissions. 001010011 flip the bits 110101100 and then take away executability 110100100 thus I get rw-r--r-- but when I … | |
Some of my source files include the following code. [code] #ifndef AAAAAAAAAAAA #define AAAAAAAAAAAA #if !defined(__lint) && !defined(_lint) XXXXXXXXXXXXXXXXXXXXXXXXX; #endif #endif [/code] I want to delete line1, 2, 6. So, Could somebody tell me how to do it? thank you in advance! | |
Hi, I need to show stars equal to the each number of an array. I think I need another for statement. I`ve tried, but in vain. I do not know which variables should be included in this for statement ?? the output should be : 0|****(4) 1|**(2) 2|*********(9) and so … | |
I would like to create a variable in my trigger - @DBNAME. When the trigger executes, this value should be set to the name of the database it was executed in. E.g. for the master database the value of @DBNAME would be master. How would I go about figuring out … | |
I have code to propagate a drop down list that displays people's names. The problem is that the first name and last name are separate fields in the database, and I can only get the drop down list to display one of them. Here's my code: [code=php]<?php $result = mysql_query("SELECT … | |
Hi, I'm a newbie and am having a problem with either my where clause in my sql statement or something else, I think its the where because if I take that out the script works fine... Here is the error I get: Warning: mysql_fetch_array(): supplied argument is not a valid … | |
Hey all, I am a C beginner. My problem with my code is that I get a segfault. Here's my code [CODE=C] #include <stdio.h> struct studentInfo { int totalClasses; float GPA; char studentName[41]; }; main() { int numOfStudents, i; printf("How many students would you like to take account of? "); … | |
the program that im having problems reads in a txt file sums both arrays of data, puts the sums into some equations and out puts the results in a txt file. [CODE]#include <iostream> // include all headers needed here #include <cmath> #include <cstring> #include <cctype> #include <fstream> #include <cstdlib> using … | |
How do I get python to pick a random word? Do I have to link it with a dictionary? If so how do you do that. Exercise from Python Programming for the absolute beginner Create a game where computer picks a random word and player has to guess the word. … |
The End.