43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ollie335

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

Software Development c++
Member Avatar for ollie335
0
89
Member Avatar for snedan

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

Software Development c++ ios
Member Avatar for Narue
0
90
Member Avatar for tgreer

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

Software Development printer xml
Member Avatar for jwenting
0
180
Member Avatar for ReeciePoo

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?

Software Development visual-basic
Member Avatar for ahmed elweshahy
0
104
Member Avatar for kylcrow

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 += …

Software Development c++
Member Avatar for vijayan121
0
143
Member Avatar for Gregry254

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 …

Software Development pascal
Member Avatar for Terry Robinson
0
127
Member Avatar for rvishnucbe

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

Software Development visual-basic
Member Avatar for PVBert
0
127
Member Avatar for kylcrow

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 …

Software Development c++
Member Avatar for kylcrow
0
134
Member Avatar for briskal

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 …

Software Development delphi pascal
Member Avatar for briskal
0
475
Member Avatar for Zay

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 …

Software Development c
Member Avatar for Zay
0
137
Member Avatar for aot

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 …

Software Development python
Member Avatar for aot
0
99
Member Avatar for ReeciePoo

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?

Software Development listview visual-basic
Member Avatar for ReeciePoo
0
71
Member Avatar for nkhosinathie

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 …

Software Development c++
Member Avatar for Narue
0
111
Member Avatar for ak_2005

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 …

Software Development c++
Member Avatar for ~s.o.s~
0
783
Member Avatar for ibrar_niitian

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

Software Development c
Member Avatar for Narue
0
110
Member Avatar for jaepi

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 …

Software Development c++
Member Avatar for jaepi
0
110
Member Avatar for shmay

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.

Software Development gui java user-interface
Member Avatar for peter_budo
0
119
Member Avatar for princekool

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

Software Development c++ java
Member Avatar for hbk619
0
127
Member Avatar for louis7370

automatically generated with the format of V000# how???

Software Development c
0
72
Member Avatar for srinath.sec

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)

Software Development c
Member Avatar for thekashyap
0
156
Member Avatar for tony71

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

Software Development c++
Member Avatar for tony71
0
131
Member Avatar for kylcrow

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 …

Software Development c c# c++
Member Avatar for kylcrow
0
130
Member Avatar for IwalkAlone

Q. WAPC to read a string into an aaray and capitalize the first character of every word in the input. Solution I tried [CODE] #include<stdio.h> int main(void) { char string[50]; char *ptr; printf("Enter string\n"); fgets(string,sizeof string,stdin); printf("string= \"%s\"\n",string); for(ptr=string;string!='\0';ptr++) { if(*ptr==' ') { ptr++; *ptr=*ptr-32; } } printf("The new string …

Software Development c
Member Avatar for IwalkAlone
0
1K
Member Avatar for jaepi

hello there...im new in c++, i need your help with this one...i want to create a program that will create an .ISO image file. the user will be asked to input all the files that he wants to compress..i just want to know what topic in c++ i will study …

Software Development c++ file-system user-interface
Member Avatar for jaepi
0
116
Member Avatar for rati

hi all, i am writing a program in which i am checking if a string contains another string(same what strstr does). i assumed intially that the string1 is a long string with spaces and string2 is a word(which might be or might not be present in string1) i have used …

Software Development c
Member Avatar for rati
0
107
Member Avatar for squinx22

hi, I want to make a chat program using c++. Can you give me any site where i could find the concepts in building chat program? I will make a chat program similar to YahooMessenger.

Software Development c++
Member Avatar for squinx22
0
116
Member Avatar for jwjazz

This function is part of a program to convert numbers between different bases. [code=language] num = 32 b1 = 10 b2 = 2 x = 1 def increasex(num,b2,x): if num%(b2**x) < num: x = x+1 increasex(num, b2, x) else: print x return x print increasex(num,b2,x) [/code] The parameters are the …

Software Development python
Member Avatar for jrcagle
0
138
Member Avatar for shmay

I must display the number of values that are above, equal to, and below the average, with "equal" being within a tolerance .01. [code=c] void RelToAve (double ave, int numRead, double *array) { int abo = 0, equ = 0, bel = 0, i; for (i = 0; i < …

Software Development c
Member Avatar for shmay
0
148
Member Avatar for ReeciePoo

I have a text file setup called client.txt inside it has Halusa Decorations|Streamers|455892|$3.50 Kellys Floral|Frangipani|270272|$2.00 - Im using Listview in Report mode i was wondering how to grab each item e.g company|item|productid|cost into and put them into the Columnheaders [U]| Company Name | Product | Product ID | Price |[/U] …

Software Development file-stream listview visual-basic
Member Avatar for ReeciePoo
0
77
Member Avatar for EnderX

If I am somehow in error posting this, I apologize. However, I would hope that this is the best place to ask this question. I am dealing with a MSVC Compiler, version 1.52, on a system running Windows 98. I am using these rather antiquated pieces of equipment for a …

Software Development c
Member Avatar for EnderX
0
154
Member Avatar for laconstantine

I just started mess with Memory at c++ so i am very confused now, and this is why i am asking 3 questions that made me confuse so much. 1. Look at this: char *str = "Literal String"; Here we are creating a char pointer called str then we are …

Software Development c++
Member Avatar for Narue
0
302
Member Avatar for eeeraser

Hi guys again, If I have an infinite loop for example: [code] MOV CX, 240 MOV DX, 320 HERE: MOV AH, 2CH INT 21H CMP DH, 1 JE DOT MOV AX, 0C00H INT 10H DOT: MOV AX, 0C04H INT 10H JMP HERE [/code] In the example I have an infinite …

Software Development assembly
Member Avatar for eeeraser
0
3K
Member Avatar for ssgatbliss

Hi, I'm fairly new to c++ and I'm having some trouble getting this to work as a function. Here's the error I get: error C2447: '{' : missing function header (old-style formal list?) I can work through the minor troubleshooting of basic syntax I just don't get how to call …

Software Development c++
Member Avatar for ssgatbliss
0
154
Member Avatar for 2thestart

:@Hi i am currenty working on a basket ball game in one of my grade 11 classes. My teacher and I cannot find a way to make the exit code work even when the shot is being taken. Also to take a shot you have to hit shoot in a …

Software Development visual-basic
Member Avatar for 2thestart
0
71
Member Avatar for Radons

Hi! I hope some one is familiar with pascal. I've been trying to translate this code into c++ for quite a while now... And frankly I've given up hope of solving it. It's supposed to invert an integer from binary data it reads from a file into normal characters or …

Software Development c++ pascal
Member Avatar for Radons
0
227
Member Avatar for ft3ssgeek

Hi guys I'm working on a small portion of a larger program here that will accept lines of text and based on the first word in each line needs to conditionally branch...I am using the tolower() function to make the words lowercase and then I test them in an if …

Software Development c++
Member Avatar for iamthwee
0
142
Member Avatar for cmsc_illiterate

I am so lost. I don't know what I'm doing. Can somebody help me? What I'm trying to do right now is just store ID numbers in an array to use them elsewhere in my program. I can't even do that right though. This is my first time taking computer …

Software Development c
Member Avatar for cmsc_illiterate
0
121
Member Avatar for eeeraser

hi again .. Does anybody have any idea how could I draw a line between two points using assembly language? e.g. if you have the first point DX1, CX1 and DX2, CX2... I wanna draw a line between them, simply, I wanna program that I give him two points and …

Software Development assembly
Member Avatar for Salem
0
310
Member Avatar for ReeciePoo

Whats a good and easy to use HTML Wrapper.

Software Development html-css visual-basic
0
76
Member Avatar for roketto

Hi there... I'm pretty new to java, just learning arrays now. I've written a program that deals a "poker hand" to 4 players, using methods, but the problem with that is sometimes the same card gets dealt more than once. I'm now trying to use a boolean array of size …

Software Development java java-swing
Member Avatar for thekashyap
0
2K
Member Avatar for Dhanesh.M

help! I have made three UI forms to accept inputs from the user (it is about airline reservation for my academic project),I want to open these forms in succession following the inputs from the user so how do i manage to open up these forms...Help me

Software Development java
Member Avatar for jwenting
0
92
Member Avatar for brightmohan

Hello Geeks! I have tried real hard trying to figure out the solution for why the getchar() and fputs() arent working in my program. I have already wasted so much time thinking and debugging about it and here I am after registering wid DANIWEB for the first time. I will …

Software Development c c# c++
Member Avatar for brightmohan
0
389
Member Avatar for Mashadar

Hi, I have created an on-the-side project to test some code which I hope to merge with my main program, however I've noticed that the output generated varies between two compilers (VC++ 2005 Express and Dev-C++). Since I am doing the project in VC++, it's output has had me scratching …

Software Development c++
Member Avatar for Mashadar
0
168
Member Avatar for ChadW

Hello and thank you for taking time to read my question. I have been charged with the task of creating a scoreboard for use by one of our local teams, the problem is that I am still very new to visual basic (I am using Visual Basic Express Edition). I …

Software Development vb.net visual-basic
Member Avatar for Dukane
0
270
Member Avatar for donaldunca

Could you tell me the mean of this code? [CODE] while(1) { // do something [/CODE] thanks!

Software Development c++
Member Avatar for donaldunca
0
128
Member Avatar for ReeciePoo

How do you add columns in list boxes so u can have sortable sections for us in a database project | Column 1 | Column 2 | Column 3| |-----------------------------------------| | Data here | Datahere | DataHere | ______________________________

Software Development visual-basic
Member Avatar for PVBert
0
102
Member Avatar for ndeniche

which is the best compiler to work on java?

Software Development java
Member Avatar for ndeniche
0
77
Member Avatar for ReeciePoo

Im havin noobie problems like making OK and Cancel buttons any help please lol?.. also how do u go about makin seperate dialog boxes so that when i click on New Entry it opens a "New Entry" Dialog?

Software Development visual-basic
Member Avatar for sk8ndestroy14
0
89
Member Avatar for qwerty__123

Hey, I'm having trouble with an exercise from a book, here it is; " Write a program that reads the values for a random list of card from a file,(cards.txt) where each line in the file represents a single card with the rank and then suit seperated by a space. …

Software Development python
Member Avatar for bumsfeld
0
104
Member Avatar for pri_skit

I have application build in Embeded VC++ 4.0 project,now i want to include (.h) file in project which is produced from another (.exe) built in Win32(App) Console.I have added header file in project workspace.The problem is (.h) file is created after compiling the project.I want to include (.h) file before …

Software Development c++ file-system
Member Avatar for pri_skit
0
254

The End.