51,593 Topics
![]() | |
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 … | |
if: static char s2[]="Catbert"; static char s3[]= "Ratbert"; what is the vvalue of strcmp(s2, s3)<0 "Please explain" | |
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 … | |
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. … | |
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 … | |
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, … | |
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]; . . . . . . } | |
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 … | |
can you not use the gets(str) function in the main function? thanks for any help. | |
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? | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
[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: | |
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? | |
#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 … | |
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 … | |
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 … | |
Hi, guy how do I generate a code to print all combinations of a 4 digit code betwwen 1 and 13 | |
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 … | |
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 … | |
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 … | |
: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 … | |
can some please tell how can u hide whatever u are typing when typing in c++ exe. file? | |
: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 … | |
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! | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
[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 … | |
Can anyone tell me the complete algorithm analysis of Tower of Hanoi for n pegs and n disks.I really need it :sad: | |
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]) … | |
hi , i need a program for tollbooth simulation using arrays implementing queues in C++. can some one please help me out. prashant | |
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. … |
The End.