Beginners - February 2010 (Page 14)

by adtr
counting characters
 
Here's my code so far. When I run the program it simply just outputs "charCount0." Anyone know why it's not counting? Also, how do you get your messages to look...
[3 replies] Last: Use code tags next time please. (by mackabee)
Find text in quotes of string.
 
If a string held this: name { "cube01" } What would be an efficient way to copy what's in the quotes to a new string?
[3 replies] Last: I was able to use the find function to find the quote's position, and ... (by EvanEjk)
Call of nonfunction error: what should fix this?
 
Ok. I have an assignment to take an algorithm, and write the code for it. I am a freshman in college and a beginner at C++. Please excuse the small, common mis...
[7 replies] Last: moorecm Unfortunately, personally, I'm going to have to agree with Di... (by mbrinkley)
dice roller switch statement issue
 
I made a dice roller, and there is one problem left to fix. When I enter an invalid choice for dieType, it continues on to the next block of code, and will loo...
[3 replies] Last: bump. (by ac3raven)
by indigo
Closing a program
 
I wrote a program that opens a port and listens to it. Here's simplified version: int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmd, int nSh...
[2 replies] Last: Thank you for explanation. I will terminate manualy for now then. (by indigo)
by seyidi
Data in Database
 
Id Name Parameter --- ---- --------- 001 Martin 98566 002 Mike 98655 00...
[1 reply] : Please don't post the same message in differen forums. (by kbw)
by cppbeg
understandin function
 
scdccd
[2 replies] Last: 1) I don't understand what do you mean by this, but lines starting wit... (by SimpleButPerfect)
grab all particular strings in a string.
 
Hi All I am new to c++ in my work i want to grab a particular string in a stream of string like example.. string str="Source:Registration \n Table:Calls \n O...
[4 replies] Last: char mystring ="Source:Registration\nTable:Grid\nOptions:\nGrid::Pric... (by farooq124in)
split the string and add another
 
Hi All, I am new to c++, I want to split the string and add some thing to it for example let say iam getting a input string old="company$45$0.07$29-09-20...
[8 replies] Last: Hello, Thank u its works fine... but can u tell me if i want to spl... (by farooq124in)
struct type arrays
 
I have an array that I want each element of to be a data structure. I then want to pass the array on to different functions where it is needed. The problem is t...
[3 replies] Last: Well, if you prefer, you could also use a forward declaration: #... (by lloydchristmas759)
error check against strings or char
 
cout<<"What day (Numerics) does your semester start in January?"<<endl; while (true) { cin>>first_day; if ((cin) && (first_day >= 1...
[1 reply] : Checking chars and strings is a bit different as it is always possible... (by Zhuge)
Trying to solve "Pancake Glutton" problem
 
The problem is found here: http://www.cplusplus.com/forum/articles/12974/ I really have no idea what to do with this. This seems to come pretty close: #i...
[6 replies] Last: I removed the struct so that won't be a problem anymore. Also, you're ... (by closed account jwC5fSEw)
how to encrypted ID of last 4 digit
 
need to be able to write a code that read the number bit by bit & also the first digit has to be * 4 and then the second digit * 3 then so on last digit by *1 ...
[1 reply] : That shouldn't even compile. You need to go over the basics of program... (by Zhuge)
Non-static member functions
 
Inheritance is not as cooperative as I want it to be. All my base classes are fully functioning, tested, but my entryType class will not let me call the print ...
[3 replies] Last: Not only are they not needed, but they're not doing what you think. T... (by Disch)
by vlad61
booleans
 
i read a tutorial on booleans from: http://www.cprogramming.com/tutorial/lesson2.html and it sux... i didnt really understand anything about booleans can any...
[6 replies] Last: I'm only in my 6th week in C++, please don't be too harsh, this is my ... (by yoked88)
trouble with big int addition, need assistance
 
hey im writing a class of bigint but im having trouble doing the addition for it. can anyone help me? the addition works ok but it is buggy. for example, anyti...
[no replies]
Getting a lot of errors with my first attempt at classes
 
I've been going through this forum just to pick up tips for beginners, and I found this topic: http://www.cplusplus.com/forum/beginner/19643/ While I realize it...
[3 replies] Last: EDIT: Posted this before I saw the above post. Made those changes and ... (by closed account jwC5fSEw)
Good collection of questions on C, C++, Win32 Programming, MFC, DLL, COM/DOM
 
Hi, Good collection of questions on C, C++, Win32 Programming, MFC, DLL, COM/DOM for interview and exam preparation. Visit : Home -> Question section ...
[2 replies] Last: Wow, epic fail. (by firedraco)
Still plugging away....
 
I am down the last part of my assignment. Question 6 seemed easy enough, however I was confused by the cout << fixed << setprecision(1); should I assume that...
[1 reply] : 5.) Here is some info on how >> works: For integers - It will eat all... (by firedraco)
conversion constructor issue
 
Hello, I am writing a class for a mixed number, and I have all of the operator overloads working and such when it comes to other mixed number objects. But My c...
[7 replies] Last: haha, I hadnt refreshed the page by the time you had suggested that, b... (by AvtrOfWoe)
February 2010 Pages: 1... 1213141516... 32
  Archived months: [jan2010] [mar2010]

This is an archived page. To post a new message, go to the current page.