64,152 Solved Topics
Remove Filter ![]() | |
Hi all. Im a newbie and need help creating flowcharts for my class projects. I worked on them for a few days now and cannot figure them out. I am running out of time and have to get thru this class. Here is what I need them to do #1 … | |
Hi everyone, I am attempting to access a database that is located in a shared server/ directory "K:\". Assuming I don't know where the database is located, how can I programatically tell vb to locate this database by searching all the network server directory? My database name is called: `PTS.mdb` … | |
Hello All, I am trying to write a C program that reads a text file and output unique words sorted alphabetically using /usr/bin/sort. All non-alphabetic characters serves as delimiters and are discarded. I am having a problem just parsing the text file into words, getting SEG FAULTS. dbx gives error: … | |
I would like to "hide" everything encompassed in a particular <p> tag that is 'named' by a variable(created a php script that reads from the db and echo's a users details in a <p> that has the name of the 'member number' via a variable - user. (yes it sounds … | |
Hey! I am new to java programing and need some help with some homework, here are the requirements: Right now I am working on just setting up my arrays but it is not working. I read the size of the array from the user and then tell the user to … | |
After several hours I have figured this out, but because the % statement is confusing to me I was wondering if someone wolud not mind explaining to me my for statement in the following program? using System; /*This program is designed to identify the prime numbers from 1 to 100. … | |
I have a question regarding the test condition of the [I]for[/I] loop.. For example, if the loop is say: [CODE]for ( int i=0 ; ( C1 && C2 ) ; i++ ) {// some code}[/CODE] My question is, if either C1 or C2 is false then the test condition is … | |
Hey everyone, I'm working on function that will take in a char array, prompt the user to input a string, and then return that string to the function. Below is what I've been working on and yes, I know it is not the right syntax, but I'm hoping someone could … | |
Hi all I need to read a program in c/c++ in linux which shall read rtf file text and then informs me the information about the fonts properties of the text in rtf file. Can anyone tell me how to do that.. does any library exists for this that I … | |
I've tried to clean down this code so that it will demonstrate my problem but contains little else. Just enough to make a window. This code will compile on "BCC32" or "cl". I can't figure out why I get an "Invalid handle error" when trying to create a DIB. I'm … | |
Hey guys, Here's my code: [code=c++]#include <iostream> using namespace std ; template<class T> class Pair { public: Pair ( ) ; Pair (T v1 , T v2 ) ; void setFirst(T newV ) ; void setSecond(T newV ) ; T getFirst() const ; T getSecond() const ; private: T first … | |
So I have some PHP code that takes text from a mysql table and prints it to the screen with formatting. Problem is the spaces keep getting truncated when its formatted. Like: [QUOTE] I like cookies. They are tasty. [/QUOTE] would come out as: [QUOTE] I like cookies. They are … | |
![]() | I am trying to use a for loop to print the contents of a single dimensional array. I am trying to use the loop counter in the 'cout' statement to provide a heading for the contents of each array element. code is below. I am using MS Visual Studio to … ![]() |
I'm trying to create a page that has a button at the end with a check box before it. Unless the check box is checked, it shouldn't carry through with the link. I absolutely cannot get it to work. I've been toying around with it for over a half hour … | |
Hi, I need some help with average calculation. I have a homework where i must find average value, but this one is quite tricky, atleast for me. usualy it goes like that 1+2 average is 1,5. I have to do it like this: If i input 15 then program should … | |
How do I insert a link to another page to the pressing of a button? I'm assuming it would be via the onclick event, but can't seem to get it accomplished in a manner which will actually work. | |
the below program is supposed to read the string you input and count the amount of times that the letter 'a' appears in it. if it doesn't find the letter 'a', it's supposed to tell you that there aren't enough arguments (which i may change to say that "there aren't … | |
Is it possible to select day from the DATE field in a db so that it includes a zero in front of it if the day is less than 10? If so could you post the code please. Struggling and stressed...with qwerty imprinted on my forehead | |
I have gotten a problem compiling. the program gives me an LNK2001 error so there seems to be a problem with my function but i cant seem to find it..i am posting part of the function that calls and the original function being called void disp() time_info start, end; time_increment(hours_count,minute_count,day_count,month_count,year_count,start,end); … | |
is there a way to convert a binary number to hex. im sure there may be a library that already does it for you ? | |
hey guys, im having a hard time making this switch function catch letters and return the error message. [CODE]int main() { int choice; do { /* THE DISPLAY MENU*/ printf("================================================\n\n"); printf("Welcome to Walther's Tic Tac Toe Game.\n\n"); printf("what would you like to do?\n\n"); printf("1 Play Tic Tac Toe\n\n"); printf("2 Quit\n\n"); … | |
Where do you put the links when you have 5 different banner ads that rotate on a fixed amount of time? It's obviously not around the <img> tag in the body, because that links all five banners to that one single URL.... | |
I am having a problem with my datalist and repeaters. Below is the code. For some reason, when it searches the database and returns results, it counts the correct number of results, but only displays the correct number minus one. So if it returns 3 results, it only displays 2, … | |
Hi everyone, I'm a relative beginner in python looking for a bit of help on an error I get when running the script posted below. It is used to split data files in text mode. It runs through a list of files (using the glob module) and creates a number … | |
I've got this code I need to link together by creating the implementation (.cpp) file for. I've been given main.cpp and a header file. I need help on my Zoo.cpp file, specifically now on the "addAnimaltoZoo" function. Here's what I've got so far... main.cpp: [CODE] #include <iostream> using namespace std; … | |
I am having problems trying to figure out exactly what is going wrong with my code. I am trying to create a factorial program using an array. I have tried, unsuccessfully, various ways to make it work but I can not figure it out. Any assistance would be appreciated. [code=c] … | |
I am writing a simple program that takes a string input from a user, stores it in a dynamically allocated array, changes it to upper case, and then prints. It works for all letters and symbols but when I use a space character, the program automatically exits. Can someone please … | |
I've been told this isn't possible which leads me to the following problem. I have a series of events stored in a database and at the moment I pull the info out and display each one on a new line using a while loop. What I'd like to do now … | |
I have to write a program for school that has user input ten movie titles and their corresponding ratings. This program must use parrallel arrays. There is more to the program but not needed for the issue I am currently having. I cannot seem to get the string for the … | |
Could someone explain the difference between Overloading, Redefining, and Overriding functions? A nutshell answer will work fine; I just need something to stick in my brain for tomorrow's test. I know the concepts behind these tools, but I just need a simple way of defining the difference between them. | |
Sorry...this turned out to be such a long post.:sweat: Hello. This was originally a problem I was facing with the user interface for my robot, but my latest post was never answered there. Right now I'm experimenting specifically with this problem: verbal raw input. I've posted this problem in another … | |
Could anyone help me with an issue that I have? I have a program that reads from a data file using an array and the data is structured as a long interger. I am trying to break up a long interger in to pairs i.e 141251 into 14:12:15 using c++. | |
Can someone please help me with this? I have been struggling with this for days now, and for some reason, my instructor's help is not working for me. I am not sure if it is because he is from Germany and I am taking courses on-line, or if it is … | |
I am now writing a new program, a modification of a program I have done before but now with arrays. It is a currency conversion program that converts four currencies. User inputs the starting currency and the program will display all four of the currency conversions for the amount the … | |
First of all, here's my codes: [code=java] public class SLLNode { protected Object element; protected SLLNode succ; protected SLLNode( Object elem, SLLNode successor ) { element = elem; succ = successor; } } [/code] [code=java] public class LinkedStack { private SLLNode top; public LinkedStack( ) { top = null; } … | |
Hi, I need to create multiple TXT files from splitting 1 single TXT file that should look something like this: xyz;0;12345;data;data;data;data xyz;0;12345;data;data;data;data xyz;0;67890;data;data;data;data xyz;0;67890;data;data;data;data xyz;0;54321;data;data;data;data xyz;0;54321;data;data;data;data Let's say the original file was like above, and named original.txt, I would like the resulting files to be like so with the program … | |
I am a python newbie and i have trouble with those 2 exercises: 1.A date of the form "8-MAR-85" includes the name of the month, which must be translated to a number. Create a dictionary suitable for decoding month names to numbers. I have to create a function which uses … | |
Hello, first you need to know that this is my first Win Application made in C#!! I`m trying to draw some circles based on mouse left click coordinates but the circles disappear when I minimize the window, Solutions found on the internet didn`t helped me too much :(. Here is … | |
Hey all, My Final year of the Software Engineering degree starting on end of November. But i'm not that much aware on a final year project yet. The duration is nearly 6 months and i'm interested in doing a Desktop System (like data mining) or some kind of a Web … | |
I'm trying to write a little wrapper for executing MySQL statements, and I've run into a wall trying to use [inlinecode]mysqli_bind_param[/inlinecode] without knowing the number of variables I'm binding. Here's what I've got: [code=php] /** * Note: * . execSQL is variadic, just like bind_param * . prepareTypeStr is another … | |
I'm trying to create a piece of C++ code which will only allow a user to enter odd numbers. If an even number is entered, the program must tell the user to enter only an odd number. Im comfortable with the whole output bit in the 2nd line above, but … | |
Hello folks, I have a program that uses a linked list to implement a stack to convert a string from infix notation to postfix notation, and then to evaluate it. Well, the conversion part works just fine, but I have encountered a problem when trying to evaluate it. In my … | |
Hello, I am new to this board and C++, so I do not even know what encase code in [] means, but I will try. I have an assignment I have been working on for a week. I have consulted my book and the web, but I have been unable … | |
i am making a menu driven program on linked lists. the program's display function is printing garbage values. i.e if n=3...i add three values and when the values are displayed the last entry is displayed and the rest two enteries are garbage values for eg. [QUOTE]MENU (Linked List) 1. CREATE … | |
I just recently came across Shift Operators and it interests me. Though I'm beginning to learn more about it, I'm still a bit confused as where to implement them. However, the problem I'm facing is because of an example I found on [URL="http://msdn2.microsoft.com/en-us/library/336xbhcz(VS.71).aspx"]MSDN[/URL] [CODE]// expre_Shift_Operators.cpp // compile with: /EHsc // … | |
Where can I find some really good tutorials for starting to learn java? Thanks Dan | |
#include<stdio.h> #inculde<math.h> int main () { int R,n,A; float S; printf("plz give me the value of N elements:"); scanf("%d",&n); printf("plz give me the value of the first term A:"); scanf("%d",&A); printf("plz give me the ratio between 2 consecutive elements R:"); scanf("%d",&R); S=(pow(R,n)-1)*A/(R-1); printf("the value of the sum of a geometric … | |
Here is my code, all I need help with is getting the text to display in a graphics window. I have tried several different ways and I'm not getting any errors either. I bolded the part that I'm having trouble with. The other ways I have tried have been pounded … | |
[code=C] #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> int toAnyBase(int n, int toBase); // from base 10 (2nd) int toBaseTen(char array[256], int fromBase); // from any base (1st) int fromAnyToAny(char input[],int fromBase,int toBase); int main() { char input[10]; int fromBase=0; int toBase=0; int answer=0; int answer2=0; printf("Enter number :"); … | |
i'm using stl list to do a simple inserting of a range of value into the list. The problem i have is that when i do a push_front i couldnt see the value when i did a displayed of my list, but when i did a count it show that … |
The End.