49,761 Topics

Member Avatar for
Member Avatar for kux

I just started using Eclipse for developing C++ projects. I wanna ask u guys if u know any good forums for posting regarding this IDE, or if some of u guys arround here use it also, so I know if it would make sense to post arround here or not. …

0
71
Member Avatar for whoknows101

I kepp getting errors in my following code [code=c++] #include <iostream> #include <queue> #include <ctime> using namespace std; template <class TYPE> void randomInit (TYPE array[], int size, int mod) { for (int i = 0; i < size; i++) { array[i] = rand()%mod; } } // Prints Array template <class …

Member Avatar for whoknows101
0
300
Member Avatar for scream2ice

i'm trying to write a program that reads a text from the user(keyboard) sentence by sentence and then prints the 'morse code' of them char bay char on a text file. I'm just testing it for the letter 'c' to start with, but it doesn't seem to be working well …

Member Avatar for Ancient Dragon
0
123
Member Avatar for anjaliraman

Hi All, The CPU Utilization in my program is too high when I am trying to read a file. Can you please suggest a better method. Please find code snippet that I am using. [code=cplusplus] void SyslogReader::isTrapRaisedFromTestClient(list<SNMPTrapInfo>* pListSNMPTrapInfo, const int nSemID) { int nWaitCount = 0; const int SYSLOG_MAX_MSG_LEN = …

0
37
Member Avatar for dgg32

What is the difference between char* and string? I mean, if char* can also use string's functions or can there be "=". Thanks all the same.

Member Avatar for Ancient Dragon
0
91
Member Avatar for Waseemn

Hi All, Please keep the laughing until the end of this request. The new assignment that I have to work on, is a string sorter. I am to ask the user to enter how many names does he/she need to sort, should be a number between 2 and 25. Then …

Member Avatar for ithelp
0
98
Member Avatar for B33J

Hi, I have been asked at work to amend a piece of code for a particular system such that it will search through a .dat file for certain strings and return the relevant data associated with those strings. At the moment data is read in from 3 text files where …

Member Avatar for iamthwee
0
64
Member Avatar for a2008

Hi, I was hoping someone could shed some light on this for me. I am stuck on an assignment. I have spent 3 weeks on it and have almost finished it. I have so much going through my head at the moment I just need some help. Please. I do …

Member Avatar for Nick Evan
0
145
Member Avatar for superjacent

I'm self studying C++ and I'm actually back-tracking a bit in order to clarify things. My question revolves around why in the following code is the [icode]cin.fail() == true[/icode]. [code="cpp"] #include <iostream> using namespace std; int main() { char getdata; cout << "Enter one character: "; cin >> getdata; cin.get(); …

Member Avatar for superjacent
0
304
Member Avatar for bballj32

I am trying to solve a problem from a lab challenge. I'm having trouble on how to output the table and it must be done in [B]top-down design.[/B] Use a two-dimensional array to solve the following problem. A company has four salespeople (1 to 4) who sell five different products …

Member Avatar for Agni
0
272
Member Avatar for gazoo

I have this program that suppost to ask user to select option: [option] a. Start a new list b. Add a Node to the end of the list. c. Add a Node to the beginning of the list. d. Add a Node at a specified position in the list. e. …

Member Avatar for Agni
0
106
Member Avatar for bradszy

Ive posted this on another forum, and haven't gotten very far. I had a few skillful coders give it a go, and no luck. We got errors... I'm trying to make a console app... Transparent, or translucent. (See-through) Ive tried: [CODE]#include <iostream> #define _WIN32_WINNT 0x0500 #include <windows.h> using namespace std; …

Member Avatar for bradszy
0
207
Member Avatar for jmines

I have a problem in reading from file. I want the program to keep on reading from the file and store it in a buffer until \n\n is encountered. Then I want it to input an integer value from the user and then when the user presses enter it should …

Member Avatar for Agni
0
49
Member Avatar for shotjase

hey guys i have to implement and test a header file here bitmap..implementation uses a 2-dimensional vector of bool called grid and its dimensions, numrows and numcols. A zero is stored as false in the grid and a one is stored as true. The member functions should manipulate grid, numrows …

0
54
Member Avatar for L31chH4rdT

Hey guys, I am having trouble getting data from a file into a linked list. I'm very new to c++ and am finding it difficult to understand but am trying my best. I need to get a text file and insert each character into a seperate node in a linked …

Member Avatar for Gerlan
0
102
Member Avatar for linux0id

Hello everyone! I have a function to get data from a database. I want to put it into matrix of some sort so that I can have something like a spreadsheet (multiple columns and rows, depending on data). It needs to be dynamic. Ok code so far - [CODE]//--------------------------------------------------------------- template …

Member Avatar for linux0id
0
120
Member Avatar for echoestroy

I need a do while loop in this but when i try to put one in it errors alot could someone show me the proper placement please. i use dev C++ compiler [code] //Login #include <iostream> #include <string> #include <conio.h> using namespace std; int main() { cout << "\tWelcome to …

Member Avatar for echoestroy
0
102
Member Avatar for legendofme

I need help figuring out how to do error checking with military time. So that if the value is over 59 (ex 1372) it gives an error message. My C++ knowlege is fairly basic

Member Avatar for CoolGamer48
0
106
Member Avatar for Run.[it]

..for manipulation in the main part of the program. Basically Im trying to create a Class function that asks the user to enter in 3 different teams and their nationalities and then redisplay them when the main calls that function. [code=c++] struct squadre { string teamn; string nat; } clube …

Member Avatar for Run.[it]
0
125
Member Avatar for Waseemn

Hello, I am sorry if I am boring you, but I know of toupper() and tolower(). Is there a toProper() in C++? Proper case is the first letter of the word is in uppercase while all other letters of the word are in lowercase. Is there a way I can …

Member Avatar for Narue
0
86
Member Avatar for KK Murage

Hi I'm still in the basics in c++ and I really need some help in coding my 1st semester's project. I am required to create a program that is to be used at a tollstation to keep account on the number of vehicles using the road, the fees charged and …

Member Avatar for Narue
0
149
Member Avatar for NinjaLink

Hey guys, I'm here once again! I need help for something that is simple, but I'm not getting the results I should be getting! I want my output to look like this: [B]Enter hours worked: 44 Enter pay rates: 10 Hours worked: 44 Pay Rate: 10 This week's salary: 460 …

Member Avatar for CoolGamer48
0
128
Member Avatar for picass0

how can i change the data of my text file with the user input? eg. i prompt for user to enter new no. and with this new number it will replace the old number with the new one. i know i need to wite to the file but how can …

Member Avatar for dmanw100
0
114
Member Avatar for sfurlow2

If I have a 40,000 word dictionary in the file: LatinDictionary.txt How would I output that file to the screen?

Member Avatar for Narue
0
82
Member Avatar for knewc

So uh, i need some help with these functions..i gotta reverse, but i do not have the functions that can make it lowercase, or remove punctuation [code=cplusplus] #include <iostream.h> #include <string.h> char your_string[256]; char new_string[256]; void ReverseString(); void main() { cin.getline(your_string, 256); ReverseString(); cout << ReverseString(your_string) << "\n"; } void …

Member Avatar for Ancient Dragon
0
137
Member Avatar for Mark515

Does anyone know code to use asterisks instead of numbers for a password on C++ code?

Member Avatar for iamthwee
0
64
Member Avatar for dgg32

Hi everybody. I come here again to ask for your advise. Thank you at first for all your attention. I have a big text file containing, say more than 10000 letters. I want to write a program, openning it, parsing out each word and compare them with a target word, …

Member Avatar for Aia
0
337
Member Avatar for opendep

Hi, I am using visual studio 8 to create an application. I need to incorporate file browser window in a .cpp file. The code i have only browses the folders and sub folders but does not display the individual files. Can anyone help me with this..? Any help would be …

Member Avatar for opendep
0
310
Member Avatar for dinozulf

i have a program to do which iv found to be quite difficult, can anyone please help me as i will need it to help me do my propa assignment for corse. thank you

Member Avatar for Sky Diploma
0
75
Member Avatar for Nicholas_G5

Hi, I would like to write a function that checks the user input to see if it matches with the allowable inputs. The allowable inputs are stored in a separate text file. [U]User-entered input:[/U] This is the user inpt [U]Contents of text file:[/U] 1. Hello 2. This is the user …

Member Avatar for vijayan121
0
129

The End.