49,761 Topics

Member Avatar for
Member Avatar for N3wbi3C0d3r

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 …

Member Avatar for N3wbi3C0d3r
0
307
Member Avatar for see_moonlight

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++ ) { …

Member Avatar for see_moonlight
0
153
Member Avatar for Coach_Nate

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 …

Member Avatar for Coach_Nate
0
86
Member Avatar for zenah

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

Member Avatar for alc6379
0
100
Member Avatar for willow

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 …

Member Avatar for vegaseat
0
123
Member Avatar for mahas

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

Member Avatar for Narue
0
211
Member Avatar for dcving

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 …

Member Avatar for N3wbi3C0d3r
0
191
Member Avatar for ray96

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 …

0
78
Member Avatar for Nabeelahmad

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 …

Member Avatar for Nabeelahmad
0
110
Member Avatar for Banu

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 …

Member Avatar for ZuK
0
933
Member Avatar for hill0ster

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

Member Avatar for Chainsaw
0
90
Member Avatar for mahas
Member Avatar for Chainsaw
0
90
Member Avatar for Young Teck 06

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 …

Member Avatar for Young Teck 06
0
122
Member Avatar for abitlost

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 …

Member Avatar for Narue
0
113
Member Avatar for N3wbi3C0d3r

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 …

Member Avatar for Narue
0
169
Member Avatar for souphmars

i am inputting numbers as characters, then i need to change to their numeric value then add

Member Avatar for Narue
0
128
Member Avatar for dcving

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

Member Avatar for Narue
0
135
Member Avatar for smarkles

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

0
130
Member Avatar for Deiwos

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 …

Member Avatar for Narue
0
93
Member Avatar for mahas

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

0
67
Member Avatar for the b

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 …

Member Avatar for Narue
0
111
Member Avatar for blargage

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 …

Member Avatar for blargage
0
128
Member Avatar for Calum

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 …

Member Avatar for Calum
0
122
Member Avatar for N3wbi3C0d3r

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 …

Member Avatar for N3wbi3C0d3r
0
142
Member Avatar for bryan7890

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

Member Avatar for bryan7890
0
98
Member Avatar for SyLk

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 …

Member Avatar for SyLk
0
144
Member Avatar for mr_mooz

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 …

0
76
Member Avatar for elianahendler

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 …

Member Avatar for alc6379
0
101
Member Avatar for mahas

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 …

0
104
Member Avatar for hfick

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;

Member Avatar for Narue
0
162

The End.