51,593 Topics

Member Avatar for
Member Avatar for MitchellH

Im learning to write a DLL in Win32 C++ and I've found that its pretty straightforward :) I just have a few questions: 1.) Do I have to have a DllMain function? 2.) Why do some functions look like this: [code] void _stdCall bla() { ... } [/code] And some …

Member Avatar for neuronco
-1
245
Member Avatar for Faramba

if: static char s2[]="Catbert"; static char s3[]= "Ratbert"; what is the vvalue of strcmp(s2, s3)<0 "Please explain"

Member Avatar for Dave Sinkula
0
185
Member Avatar for Faramba

Please help me with this: Declare an integer array named "scores" to contain 50 elements. & Generate a code (a loop) that will initialize every element in the array from the above declaration("scores") to the value 75.

Member Avatar for jwenting
0
148
Member Avatar for Guppy25

I have to identify which element in the array the highest and lowest numbers are. I have finished the rest of the project but you can see that i need help with the element position. Here's what i have and thank you, thank you, thank you #include <iostream.h> #include"apvector.h"//didn't inclue …

Member Avatar for frrossk
-1
118
Member Avatar for dontcare

This program displays the information of an input file containing dates and strings, the output is in the following form On day, January 1, 1800 The first day begins. [number of days since 1/1/1800; (1)]. My problem is implementing a correct switch statement to display the Day of the week. …

Member Avatar for dontcare
0
113
Member Avatar for craigt

I need help with an initializer issue -- the following code works well: extern int i1, i2; typedef struct { char ch; int * * array; } qq_str; static int * a[] = { &i1, &i2 }; qq_str qq = { 'c', a }; However, I would like to remove …

Member Avatar for craigt
0
323
Member Avatar for Extreme

Hey can any1 figure out wat is wrong in this program...after i compiled it and executed the program ....I inputed the value of n...but after that it does not show the output...Can any1 help me plz..!! The program which I wrote is below:: #include<iostream.h> int sumofdigits(int n) { int sum=0, …

Member Avatar for Extreme
0
98
Member Avatar for Faramba

Are the following array declarations valid, if not why?: "i'm confused!" const int SIZE=4; void main() { int a[SIZE]= {0,2,4,6}; static int b[SIZE]={0,2,4,6,8}; int x[SIZE-5]; int d[SIZE*2]; . . . . . . }

Member Avatar for Richard Wong
0
106
Member Avatar for lostinthespiral

I'm having some real problems with a code that is supposed to find Fibonacci numbers using recursive, iterative, and optimized recursive techniques. I keep on getting this really strange error though: "fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) Please choose the technical Support command on the …

Member Avatar for lostinthespiral
0
242
Member Avatar for rmerchan
Member Avatar for prog-bman
0
75
Member Avatar for Faramba

How does the following print?: #include <iostream.h> #include <string.h> void main() { char s[50]; strcpy (s, "What "); strcat (s, "does this " ); strcat (s, "do?"); cout << s << endl; } Can you explain?

Member Avatar for Dave Sinkula
0
85
Member Avatar for boujibabe

I have this assignment that requires a program that will initialize an array of charcters to ABCDE and allow you to shift in a circular fashion, those characters to the right any number of places you specify.The shifting shoud be done in the `functino shift()` but all printouts should be …

Member Avatar for boujibabe
-1
205
Member Avatar for muaaz

hi i am student and a begginer to c++..i dont know what to do regarding this problem i need help.please help me to solve my assignment. Q:To Write a program in C++ that reads the name of a file as input and copies the contents of the file in reverse …

Member Avatar for jwenting
0
82
Member Avatar for C++fusedKat

I am having several issues, besides figuring out how to word this request. [INDENT]1. Trying to integrate some sort of looping to increment class object. 2. Properly declaring #1 3. The use of Static member function to Subtotal and Total data. 4. ? What ever is messed up.[/INDENT] [CODE]#include <iostream> …

0
77
Member Avatar for alexbusby83

Any help would be greatly appreciated. I am constructing a compiler for a sub set of c++, which needs to be able to read floats and integers. Trouble is i am only reading in a character at a time and i am struggling designing a sub program to correctly parse …

0
75
Member Avatar for trying

Hi. Can somebody help me with finding out how to handle directories in C++. Let's say I want to do something with a number of files located in a specific directory, i.e. I need to know the content of the directory. How can I extract this information? In all the …

0
62
Member Avatar for FlickGuY

[FONT=Arial Black]undefined[/FONT] Hello there Im getting back into programming and looking to get into game design/programming where would a good place to start i have some c/c++ experience? Thanks FlickGuY... :cheesy: :twisted:

Member Avatar for jwenting
0
99
Member Avatar for bunbun

How are machine language and assembly language similar? What is involved in translating a single assembly language instruction to a machine code instruction? How informative are the snytax error messages of this compiler, as compared with those generated by the assembler? Why is the compiler so fussy about C++'s syntax?

0
29
Member Avatar for hopeolicious

#include<iostream.h> #include<stdlib.h> #include "simmons.h" const int MAXCHARS = 500; char st_line[MAXCHARS]; char ch_option; int i_va; int i_ve; int i_vi; int i_vo; int i_vu; int i_letters = 0; int i_count = 1; int i_number = 0; int i_vowel = 0; char ch_char; void hope(); void vowels(); void letter(); void mike(); void …

Member Avatar for hopeolicious
0
219
Member Avatar for WilliamMcMillan

Hello I was wondering if you guys could help me out; I have set up a camera that produces a colour bitmap image, but I have to convert it to a greyscale image, is there an algorithm that exists in c++ that can do this conversation. Thanks guys for your …

0
74
Member Avatar for sheereybern

I have been asked to create a program that scans for a virus,detects the virus and removes it,it also has to scan the boot sector.I am very new to programming so this is a big task for me especially that i cannot find anything of any use to me, i …

Member Avatar for jwenting
0
99
Member Avatar for muraya

Hi, guy how do I generate a code to print all combinations of a 4 digit code betwwen 1 and 13

Member Avatar for harshchandra
0
116
Member Avatar for Moo The Cow

Hi, this is the first time that I've used C. Anyway, I downloaded a C compiler (dev-C++), and I typed in this: #include <stdio.h> main() { printf("Hello, world!\n"); return 0; } When I run the program, it doesn't print the "Hello, world!", but I just see a dos window quickly …

Member Avatar for harshchandra
0
156
Member Avatar for MitchellH

Hi, I am new to MFC and have been practicing and currently have run into a problem: I have a "Quit" button and its mapped to a function already but how do I abruptly end the program? What function do I call? Thank you, Mitchell H. EDIT: Ive just added …

0
95
Member Avatar for Der_sed

the question is to be solved using loops,decisions and arrays!! QUESTION: [B]Statement of question: “AIRLINE RESERVATION" Write a program to assign seats on a 10-seater plane. Your program should first ask a user to enter 1 for First Class and 2 for Economy class. First 5 seats are economy and …

Member Avatar for Der_sed
0
221
Member Avatar for siddhu_avula

:sad: hi friends my name is A.Siddhartha currently iam pursuing my masters in information technology and i have to do project in C++ as iam very new to information technology as my background is chemistry so iam having problem in doing this project. so pls help me how to do …

Member Avatar for jwenting
0
198
Member Avatar for Tresa

can some please tell how can u hide whatever u are typing when typing in c++ exe. file?

Member Avatar for Tresa
0
119
Member Avatar for dcving

:o [COLOR=Red]When I start the program it just spits out a continuous line of numbers; Can anyone give me any suggestions, OR better yet, just tell me how so I can start my Thanksgiving break early?[/COLOR] :o [CODE]/* Program Description: The program will read a file named Scores.dat, and will …

Member Avatar for jwenting
0
112
Member Avatar for hangover

I am a beginner. As I know stdlibc++ v2 includes a random variable geneator class. but stdlibc++ v3 does not include those classes. what I want is to generate Normal random variable. anybody can tell me how to use stdlibc++ v3 to do this? Thanks!

Member Avatar for BountyX
0
115
Member Avatar for SquirrelProdigy

I just can't figure out why this program isn't reading in the entire file. It will only read in the second line, nothing else. Here are my read and write functions: bool Write(string Text,string FileName){ fstream Write; Write.open(FileName.c_str(),ios::out|ios::app); if(!Write){ cout<<"Error in opening file"; return 0; } Write<<Text; Write.close(); return 1; …

Member Avatar for SquirrelProdigy
0
163
Member Avatar for onauc

You know, when my brother was learning C in college I took an interest and learned a little (that was back in 1998. I have forgotten C by now) but shall I tell you what really put me off ? In his class, they were teaching him one version of …

Member Avatar for jwenting
0
114
Member Avatar for kisseric

I need help ladies and gentlemen, I am writing a program that validates ISBN numbers both from file and from console input. However my program is unable to open the file even though I have it in my Debug folder. Here is a piece of my code. I need help …

Member Avatar for kisseric
-1
134
Member Avatar for sweety engineer

hi every body can any one help how to start with this project using the c++ ADT class ,write aprogram that simulates the operation of telephone system that might be found in asmall business, such as your local pizza parlor.Only one person can answer the phone(aingle server queue). but there …

Member Avatar for jasweb2002
0
144
Member Avatar for five2nd

hello there..! can somebody help me how to call this function...the program function will appear when i select the case no 3 at swich code... however there is an error appear...bytheway is it correct i using ` "void loan_schedule ();"`..to Generate loan payment schedule coding...when i choose number 3 at …

Member Avatar for jasweb2002
-1
184
Member Avatar for b3h_05

hi..im new here and i am having trouble with my program..using DOS-based C++, i have to create a program that will use a mouse pointer but unfortunately i don't know how to create one because that is beyond our topic..so if anyone could help me..please give me the code and …

Member Avatar for jwenting
0
133
Member Avatar for dontcare

Days since 1/1/1800,that day was Wednesday. Need to convert a date in the form mo/dy/year into this single number. Need a function to print out the day of the week, and a function to print out the date in the form month day, year where the month is completely spelled …

Member Avatar for jwenting
0
172
Member Avatar for Sideshow Bob

I am working on a project which involves a server/client model running over a network. The server is written in Java, and the client is a C++ addition to an existing product (which is written in VB and C/C++). I chose to write my section in Java simply because I …

Member Avatar for Sideshow Bob
0
172
Member Avatar for skamen

Hi, This is really a logic problem more so than a stright up C++ problem. For class I have written a program that takes dates from a text file and then finds the number of days from January 1st 1800 that days is. The program also has to be able …

Member Avatar for vegaseat
0
2K
Member Avatar for kuo1

Apache Web server for windows I wrote a helloworld.pl and that works fine when i try to view it through a webbrowser. I then wrote the following: #include <iostream> using namespace std; int main() { cout << "Content-type: text/plain" << endl << endl << "Hello, World!"; return 0; } compiled …

Member Avatar for ravi rayin
-1
195
Member Avatar for JoBe

Hello ladies and gents, could someone explain what I'm doing wrong here, the ideas of this excercise is: - Declare an array with 10 firstnames using pointers! - Show the array on screen using a function! - Sort out the names alphabetically and show the array again sorted! I want …

Member Avatar for JoBe
0
193
Member Avatar for Louisinho

[FONT=Verdana]New Member[/FONT] Hi everyone. I am brand spanking new. Like, just a few minutes born to the new kid in the DaniWeb block. Today I will just get the feel and browse. However, I will host a lot of questions that my experienced curiosity has brought to mind and many …

Member Avatar for Louisinho
0
92
Member Avatar for knucklehead

I need help with my homework assignment. The assignments asks to enter a list of double values with the maxium to be entered is 50. I need to print out the list entered and find the largest and smallest values entered by the user. This is what I have but …

Member Avatar for Chainsaw
-1
147
Member Avatar for crystalattice

This is kinda like "part 2" of my other post. Have also been working on this one for about 3 weeks. A suggestion was made that I should consider using the map container to accomplish what I want. My textbook doesn't talk about maps but I found some info on …

Member Avatar for jwenting
0
129
Member Avatar for crystalattice

I've been fighting w/ this problem for about 3 weeks. My school's forum and another programming forum I belong to have been unable to help me (I can't get ahold of my instructor but the school is looking into that). When running the attached program, I get the errors /home/cody/Projects/wavelength/src/wavelength.cpp:19: …

Member Avatar for Chainsaw
0
190
Member Avatar for jamievmi2

I'm trying to complete the following problem: write a problem that generates a table showing tuition and fee costs. the table continues to print up to and including a maximum number of credits that has been input by the user. The program should check that this value is between 12 …

Member Avatar for jamievmi2
0
153
Member Avatar for meabed

[font=VERDANA, ARIAL, HELVETICA, SANS-SERIF][size=1][font=VERDANA, ARIAL, HELVETICA, SANS-SERIF][size=1][font=VERDANA, ARIAL, HELVETICA, SANS-SERIF][size=1]Having bugs in your code may be unavoidable, but crashing [i]*is*[/i] avoidable. Barring cosmic rays playing yahtzee with your memory there is no reason why your program should ever crash. Crashing is totally avoidable![/size][/font] [font=VERDANA, ARIAL, HELVETICA, SANS-SERIF][size=1]What do I mean …

1
172
Member Avatar for harshchandra

Can anyone tell me the complete algorithm analysis of Tower of Hanoi for n pegs and n disks.I really need it :sad:

Member Avatar for harshchandra
0
272
Member Avatar for Dani

Hey everyone. I actually have a homework assignment that is due Tuesday afternoon that I've been struggling all weekend with. The assignment is located at: [url="http://cs.hofstra.edu./~cscsxd/hofstra/teaching/cs155-04/course_info/project/Recursion.cpp"]http://cs.hofstra.edu./~cscsxd/hofstra/teaching/cs155-04/course_info/project/Recursion.cpp[/url] As you can see, the function we have to write is: [code]int *Rectangular_Shortest_Path(int startx, int starty, int endx, int endy, int r[][6], int a[][6]) …

Member Avatar for Chainsaw
0
192
Member Avatar for gradstudt

hi , i need a program for tollbooth simulation using arrays implementing queues in C++. can some one please help me out. prashant

Member Avatar for jwenting
0
100
Member Avatar for onauc

Hi, There are many versions of C and C++ built by many different companies. So, which version : 1. more easier to learn 2. more easier to remember 3. more easier to debug 4. helps me find errors fast and professionally 5. more portable 6. has the biggest community 7. …

Member Avatar for jwenting
0
88

The End.