49,761 Topics
| |
Alright, i just learned the loops (if then else, for, do while, ect.) and just before it i learned the input and output (cin, cout). Now the tutorial i am using, has no homework built in it, so if anyone would be so kind to tell me something, ill probally … | |
i just want to find out '?','/','', ect, from a char array, can anyone help me to find out what's wrong with the code below? thanks the reture value is not always what i want? static int is_valid_function_name(char *function_name_string) { for( ; *function_name_string !=' \0 ' ; function_name_string++ ) { … | |
Hi all... Was wondering if someone could lend a hand - or an eye. I've been trying for hours and was hoping that someone could give me an outside look. I won't beat around the bush, yes this is from a homework assignment, but the assignment is much more than … | |
:p hi ,this is my first visit to theis web , i hope to help me, i need afull c++ programm of game called "pebble chess" , this game can execute on algorthims called "minmax", and iwill describe this game: 1- each player turn consists of moving one or more … | |
I have tried various break statements and I cannot get my program to break correctly. Original program is a nested loop asking user for input for either an ascending or descending triangle. That works. But when I try to add a break, it either runs after entering how I want … | |
#include <fstream.h> class Person { char emp_name[40]; int Tel; public: void ShowData() {cout<<"Name: "<<emp_name<<endl<<"tel: "<<Tel;} }; void main() { Person s1; ifstream file("c:\\mydocuments\\db_add_tel.mdb"); file.read((char*)&s1,sizeof(s1)); s1.ShowData(); } can anyone telme whats really happening aftet opening the add_tel file. actually i don't know how to makethe screen stay because when i run … | |
I fixed the whole program. :twisted: . I compiled it after each step to make sure there were no errors, if so I corrected them. :mrgreen: . I do, however, have 2 questions. :?: . How do I get the highlighted lines [COLOR=Red]below[/COLOR] to center above the [COLOR=Red]****************[/COLOR] :?: And … | |
Hi all, does anyone know of a Bitmap Drawing Program (like Windows Paint) that is written in either C, or C++, that I can use as a guide in building my own bitmap program? I have searched all over the internet, but I can't find anything. ANY help would be … | |
When ever i am entering any code it always succeed but i cannot see out put on screen it just flick for few seconds and then come back to complier. for example small prog i am writing #include <iostream.h> main() { cout<<"my name "; return 0: } it should give … | |
Hi I am writing a toy encryption method objecy oriented program in which user enters a statement, and each character in the statement is replaced by another character which are stored in a 2D array. I have created a static array in which each alphabet has a value in 2D … | |
Hello, I am getting strange values in my display for the salary, hourly or commission. I do have to use arrays and wondering if there is a simple fix. Maybe I need a pointer to the array? If anyone has a suggestion, please let me know. Thank you. #include <iostream> … | |
an idea how to view the contents of table(in Ms access) using c++... | |
Everybody, post your very first C++ code up here if you still have it, heres mines with help from the book I am reading and Narue for the help of keeping the window open, thanks pal. [CODE] // // Program to convert temperature from Celsius degree // units into Fahrenheit … | |
Hey guys! I got a bit of a problem and need some help! I wanna solve (as in Ax = B) up to a 6x6 matrix using C (not C++ coz I'm using Linux and vi to code). I'm having HUGE problems with the Gauss reduction and using Cramer's rule … | |
I have my Project setup like this. +TW TW1 TW2 Before i created the file TW2 i compiled TW1, and TW1 worked fine. When i added TW2, and then compiled it, and started either TW1 or TW2 it said "Project is not compiled". Any idea on how im sposed to … | |
i am inputting numbers as characters, then i need to change to their numeric value then add | |
This is what I have so far, I haven't corrected the input prompt display, nor the output display of the time into `HH:MM:SS`. Please give me any suggestions on the program. thanks! :mrgreen: /* Program definition: The program will ask for and read an elapsed time in the following format: … | |
This is our assignment:An STL List Container that adds at least 5 elementes, display i order, and reverse. That part I've got. I'm still doing research on the write to, store ina file and read from a file. Any help would be appreciated. Thanks Smarkles. #include<iostream> using namespace std; #include<list> … | |
Hi folks, I'm some difficulty getting my program to read in multiple data types off one like of data being input. The way it works is someone enters a name, age, and date of birth, and I then have to process this so that it'll read in these different data … | |
can any1 tellme how to access the sql file using c++. what i've to do is to take a sample file from oracle and one from access(a table having employee's personal info with different attribs,obviously) then i've to print them in c using standard format which i'l define in c++ … | |
ok I am required to write a program that reads text from one file and writes it to another. I can do that easily enough but the second file the text is wrote to is supposed to have no spaces in between the words. how do I do this? here … | |
Hello everyone, im glad i have come across this forum, im sure its going to be a lot of help for me! I have been reading through the forum here to try and find some help with a problem i am currently experiencing. My problem is that i am trying … | |
i'm using Dev C++, and when i write a program, it compiles it fine then when i execute it the program window closes after the program has finished. does anyone know how to keep the window open. im running on XP(SP2). i've tried right clicking on the .exe but theres … | |
Posted it in the wrong place, sorry;) Hello peoples, as you can tell by my name, ima newbie coder, and barely know the basic concept of a non object oriented scripting language comonly known as QBasic. I wanna learn advanced programming to make games, and random programs i may need … | |
i wrote in my prog #include <iostream> using namespace std; int main ( ) { int arraysize = 25; int a [arraysize] = { 2, 3, 5, 19, 4, 20, 35, 123, -3, 45, 82, 93, 62, 35, 29, 21, 19, 57, 35, 64, 62, 324, 242, 0, -3 } … | |
sup guys im trying to implement a nested for loop for a 2 dimension array that initializes the array to the character '*'. but its just printing out garbage, i think im messing up on my syntax :sad:.....some help would be appreciated here is what i got so for: char … | |
Im trying to write a struct for a binary header of a sun raster file to a file on disk. i have a struct for the header data: [CODE] struct rasterfile { int ras_magic; int ras_width; int ras_height; int ras_depth; int ras_length; int ras_type; int ras_maptype; int ras_maplength; }; which … | |
hi i have a C++ assiggment and have no clue how to do it! the instructions are : write a program that calculates the bill of a simple restaurant. on the menu there are only 3 things to order - orange juice, vegetable salad, pasta. it is possible to order … | |
can anyone tell me whether i can access databases using c++ i want to access a file one in ms access and one in oracle file. have to make it in standard form using c++(ETL concept) is this possible and how to get connect to the respective data bases. thx … | |
I am supposed to figure out what the output produced would be from this equation..can anyone help me and explain it to me char var1='s'; char var2='x'; char *ptr1, *ptr2; ptr1=&var2; *ptr2=*ptr1; cout << *ptr1 << " " < var2 << endl; |
The End.