48,985 Topics
|
|
[FONT=Arial Black]undefined[/FONT][SIZE=2]undefined[/SIZE] hi every body. well i am a new member and i hope that i am doing things the right way . well my problem is that i am a first year students and obvoisly i am studying c++. but i got an assignmet to do. i wrote the … |
|
hi, i'm working on an assignment for school, and i'm having a lot of problems when i try to compile it. one of the errors is about changing the functions into arrays and getting an error about pointers, and another is trying to get the right info to the right … |
|
sir, ihave a doubt on converting a inputed decimel number to a octal number will u help me? |
|
It is error free but it just doesnt cout for the user to continue or discontinue and it does now stop [code] #include <iostream.h> #include <stdlib.h> #include "simmons.h" #include <fstream.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 … |
|
is it just me or am i stupid? (save the comments har har) im using C++ to pull in a character from a file ... (going character by character) how do i check for a line feed, or return? [code]<img src="http://image.jpg" <-- return alt="image" height="100" width="100 />[/code] ive checked for … |
|
hello i was wondering if somebody could help me. I'm having problems with the validation of the below code. When i run it, it seems to get stuck in the loop. The compiler i'm using is Borland C++ 5.02 Any sugestions would be greatly appreciated Dave #include <stdio.h> #include <stdlib.h … |
|
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" |
|
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. |
|
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. … |
|
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 … |
The End.