49,755 Topics

Member Avatar for
Member Avatar for Symbolite

Well my class just learned functions but i don't seem to be quite getting it. So naturally trying to do my homework assignment i feel lost. I did make some good progress but i can't seem to get past this error. I don't know what it wants me to do. …

Member Avatar for Lerner
0
91
Member Avatar for EuMesmo

So I need help to do a work for school which consists of doing an algorithm that allows you to draw a pyramid of letters. The algorithm should ask the user to input one letter and then drew the pyramid. Example: If the letter that the user input is 'd' …

Member Avatar for EuMesmo
0
200
Member Avatar for #include<DAN.h>

I just wanted to start a list of system(" ") funtions. I'll write all of the ones I know and if you know any more please post them. Thanks for contributing!!! ^_^ system("pause"); - This displays "Press any key to continue..." and waits for a key to be hit to …

Member Avatar for Salem
0
3K
Member Avatar for Aruna S Rajan
Member Avatar for Aruna S Rajan
Member Avatar for Cyb3rAssasin
0
64
Member Avatar for wijitha

Hi all.. can any one explain me how to implement a byte array in c++. regards wijitha.

Member Avatar for Narue
0
59
Member Avatar for newcristy

hello! i read some articles about a 2-3-4 top-down search tree on the web, but when i tried to go deep into the problem i realise that most of the information aren't detailed. On this forum i can't find anything. Does anyone know something about this algorithm???? Thank you!

Member Avatar for newcristy
0
183
Member Avatar for dblbac

i wrote my program but the teacher wants us to use at least 2 value returning functions and 1 non-value returning function in your final submission. what does he mean by this. do i have this in my program and if so where. if not how do i go about …

Member Avatar for Jishnu
0
146
Member Avatar for Jishnu

What is the difference between the back() and end() functions defined for list containers in STL? It is specified in my book that back() gives reference to the last element while end() gives reference to the end of the list. I'm unable to understand how the two functions differ.

Member Avatar for Jishnu
0
113
Member Avatar for nuwan243

Hi Everybody, Im a new programmer......... i had used the following code to output data to com port..... #include<iostream.h> #include<conio.h> #include<dos.h> #include<bios.h> #define SETTINGS (_COM110|_COM_CHR7|_COM_STOP1|_COM_NOPARITY) void main() { clrscr(); _bios_serialcom(_COM_INIT,0,SETTINGS); outportb(0x03f8,0); getch(); } when i run the programme,when i connect pin 3(tx pinn) to a LED it blinks one tym.......... …

Member Avatar for Jishnu
0
163
Member Avatar for tonyaim83

Hi.. I Want to delete all files in a directory :- I tried DeleteFile(".\\ProcFiles\\*.*"); RemoveDirectory(".\\ProcFiles"); But i m not able to delete all files in a directory . I don't have any subfolder in the directory. Kindly help

Member Avatar for tonyaim83
0
160
Member Avatar for eranga262154

Hi all, I want to read a Rich Text Format file and get texts form it only. So, what I have done is according to RTF specification start to code detecting tags. Actually it is too hard, because RTF format has more that 1000 tags. If I going to find …

Member Avatar for eranga262154
0
981
Member Avatar for sardi

Hi Everybody, Im a new programmer......... i had used the following code to output data to com port..... this program cannot use in Microsoft visual c++ ..... Please help me............................. #include<iostream.h> #include<conio.h> #include<dos.h> #include<bios.h> #define SETTINGS (_COM110|_COM_CHR7|_COM_STOP1|_COM_NOPARITY) void main() { clrscr(); _bios_serialcom(_COM_INIT,0,SETTINGS); outportb(0x03f8,0); getch(); }

0
56
Member Avatar for MattEvans

When compiling under MSVC I get warnings about using 'this' explicitly in a constructor's initializer list. I don't get warnings if I use the return from member functions though, even member functions that return 'this'. I also experience no noticeable problems in any test* but; is using 'this' there bad, …

Member Avatar for MattEvans
0
548
Member Avatar for jaepi

Hello there, is there a corresponding standard library function for the win32 function _mbsbtype()? Thanks! :)

0
70
Member Avatar for manikantag

Hi, How do we create the sequence diagrams during reverse engineering in C++ using Rational Rose? If any one knows please help me out thanks Manikanta

0
69
Member Avatar for superjacent

[CODE="cpp"]// strgback.cpp -- a function that returns a pointer to char // C++ Primer Plus, Fifth Edition // Chapter 7, Page 312. // Listing 7.10 // 10 Dec, 2007. #include <iostream> char * buildstr(char c, int n); // prototype int main() { using namespace std; int times; char ch; cout …

Member Avatar for superjacent
0
133
Member Avatar for dblbac

i have my whole program written but when it prompts the user if they want to play again(y/n) there is a 1 after it and i cammot figure out why. any help would greatly appreciated here is my program: [CODE=c++]#include <iostream> #include <cstdlib> #include <ctime> #include <conio.h> using namespace std; …

Member Avatar for dblbac
0
116
Member Avatar for Mohammad21

Hey, I decided I'm going to try to make a small game, now I need help though since ussally I use Ruby and Python not C++. The help I need is in find an server / client libary (sorry for my sentences beeing so choppy dunno why today) If someone …

Member Avatar for Ancient Dragon
0
113
Member Avatar for jrice528

Ok, I am setting all elements in the array to 0... If all elements are 0, i want it to display "No inventory" if there is something in the element, i want to display only its contents.. Heres the code, how do I make it display No Inventory only when …

Member Avatar for Ancient Dragon
0
208
Member Avatar for Dean_X

I need this program to be able to display 4th quarter inventory in this format: October 200 November 250 December 350 I need it to display in an array. This what i have so far: [code]#include <iostream> #include <fstream> #include <iomanip> using namespace std; int main() { const int N_MONTHS …

Member Avatar for Ancient Dragon
0
112
Member Avatar for jaepi

Hello there, I'm currently at the peak of my coding when I suddenly experienced this really really weird behavior. My compiler (gcc) tells me that one of my functions are not declared in the class (which resides in my .h file). I used the same global variable object to the …

Member Avatar for jaepi
0
885
Member Avatar for iseedeadpeople

Ok, i used a couple C++ programming books to help me make a calc. A friend of mine suggest that i make a "Would you like to solve another problem? (Y/N)" and Y loops back and N closes the program. here is my code: [code=c++] #include <iostream.h> int Add(int num1, …

Member Avatar for Ancient Dragon
0
87
Member Avatar for nicz888

[code=c++] #include <iostream> using namespace std; void main () { char *tokenString, *c, string[80]; cout << "Input a string: "; cin.getline(string, 80); cout << "The entered string is: " << string << endl; c = string; while (*c) { if ((*c >= 'a') && (*c <= 'z')) *c = (*c …

Member Avatar for Ancient Dragon
0
124
Member Avatar for jaux

Yesterday I saw a question that was asking to prevent creating objects on heap. After some thoughts, I came out the following: [code] class Foo { public: Foo(const Foo& f) {} static Foo getAnInstance() { return Foo(); } private: Foo() {} }; [/code] But this can only guarantee the first …

Member Avatar for jaux
0
116
Member Avatar for ahmed_hossni

hi all ;; i'm so glade to join u ,, i want ti ask about my problem in using borlandc++ 3.11 under windows vista home edition , i wrote the following program ..& i runs perfect on windows xp(on my desktop computer) but while trying it on my laptop dell …

Member Avatar for ahmed_hossni
0
103
Member Avatar for zizimetalique

i have to write the count_sentence and the to_lower function assuming the the first parameter is the character array holding the text. The count_sentences function should find the number of sentences in the text by counting periods, question marks, and exclamation points. so far this is the code that i …

Member Avatar for Ancient Dragon
0
93
Member Avatar for mikp_mik

hi friends iam working with c graphics i need to convert color images to grey scale using c graphics. If any algorithm available to help me please post.. waiting for replies.

Member Avatar for Duoas
0
135
Member Avatar for tweedsmuir

New member. Got to this site by Googling "programming vista C++"; wild thread exchange from a couple of weeks ago with implications that some folks might have the answer I need. Basic question is whether my partner & I can adapt a longstanding, robust C/C++ program we've been marketing so …

Member Avatar for jbennet
0
139
Member Avatar for talk2tisa

Hi again, I've figured out how to get the program to do what I need it to do, except it is doing the last thing twice and I can't figure out how to change it so it does it only once. Please provide some direction. I've attached the files.

Member Avatar for WaltP
0
99

The End.