64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for diamond_2b1

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 …

Member Avatar for Ancient Dragon
0
153
Member Avatar for tgifgemini

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

Member Avatar for debasisdas
0
145
Member Avatar for GrazBurya

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

Member Avatar for Salem
0
158
Member Avatar for verbob

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 …

Member Avatar for verbob
0
199
Member Avatar for alexasmith

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 …

Member Avatar for alexasmith
0
173
Member Avatar for Questions???

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

Member Avatar for Questions???
0
161
Member Avatar for kartik14

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 …

Member Avatar for masijade
0
446
Member Avatar for Barefootsanders

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 …

Member Avatar for Salem
0
210
Member Avatar for nabilchampion

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 …

Member Avatar for nabilchampion
0
1K
Member Avatar for toolmanx

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 …

Member Avatar for Duoas
0
2K
Member Avatar for Duki

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 …

Member Avatar for Duki
0
123
Member Avatar for jaymathew

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 …

Member Avatar for jaymathew
0
135
Member Avatar for astockton

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 …

Member Avatar for astockton
0
118
Member Avatar for kahaj

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 …

Member Avatar for ~s.o.s~
0
123
Member Avatar for wonderland

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 …

Member Avatar for zandiago
0
94
Member Avatar for kahaj

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.

Member Avatar for ~s.o.s~
0
133
Member Avatar for leroi green

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 …

Member Avatar for leroi green
0
136
Member Avatar for Venom Rush

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

Member Avatar for Venom Rush
0
127
Member Avatar for joshmo

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

Member Avatar for joshmo
0
82
Member Avatar for swuwarrior

is there a way to convert a binary number to hex. im sure there may be a library that already does it for you ?

Member Avatar for WaltP
0
62
Member Avatar for jimwalther

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"); …

Member Avatar for chandrasekharn
0
105
Member Avatar for kahaj

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

Member Avatar for Inny
0
996
Member Avatar for SheSaidImaPregy

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

Member Avatar for SheSaidImaPregy
0
74
Member Avatar for jiu

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 …

Member Avatar for jiu
0
91
Member Avatar for balla4eva33

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

Member Avatar for balla4eva33
0
177
Member Avatar for DennisB

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

Member Avatar for Narue
0
8K
Member Avatar for cllgegrl

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 …

Member Avatar for joshua.tilson
-1
95
Member Avatar for Venom Rush

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 …

Member Avatar for ryan_vietnow
0
2K
Member Avatar for Koldsoul

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 …

Member Avatar for Salem
0
104
Member Avatar for Duki

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.

Member Avatar for Duki
0
6K
Member Avatar for Seagull One

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 …

Member Avatar for jrcagle
0
226
Member Avatar for Ccrobinson001

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

Member Avatar for Ccrobinson001
0
97
Member Avatar for toneeg

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 …

Member Avatar for toneeg
1
347
Member Avatar for Koldsoul

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 …

Member Avatar for Ancient Dragon
0
164
Member Avatar for mickinator

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

Member Avatar for mickinator
0
200
Member Avatar for aclogics

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 …

Member Avatar for NoobertGames
0
176
Member Avatar for eleonora

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 …

Member Avatar for eleonora
0
209
Member Avatar for claudiu_is

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 …

Member Avatar for InfiNate
0
106
Member Avatar for FrankHere

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 …

Member Avatar for Salem
0
173
Member Avatar for Darkmeerkat

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 …

Member Avatar for Darkmeerkat
0
227
Member Avatar for nathanrt

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 …

Member Avatar for Narue
0
3K
Member Avatar for jmasta

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 …

Member Avatar for jmasta
0
1K
Member Avatar for talk2tisa

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 …

Member Avatar for talk2tisa
0
113
Member Avatar for tracethepath

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 …

Member Avatar for tracethepath
0
148
Member Avatar for ChaseVoid

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

Member Avatar for Duoas
0
304
Member Avatar for dantheman3141

Where can I find some really good tutorials for starting to learn java? Thanks Dan

Member Avatar for dantheman3141
0
77
Member Avatar for tarekkkkk

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

Member Avatar for tarekkkkk
0
113
Member Avatar for Noliving

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 …

Member Avatar for vegaseat
0
120
Member Avatar for imran_s

[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 :"); …

Member Avatar for Aia
0
4K
Member Avatar for picass0

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 …

Member Avatar for picass0
0
91

The End.