General C++ Programming - March 2012 (Page 26)

Cannot key in more than 10 chars.
 
I am looking for a method to ensure that a user doesn't go over the limit of 10 characters entered into a string. This is for a username / password scenario....
[2 replies] Last: That will do exactly what i need. Wasn't aware of the .length functio... (by Bikeinator)
Errors in test questions!?? Or in my head..
 
Here is couple of questions from the 3rd C++ test at careerride.com. It looks like the guy, made the test was bit up in smoke? Or I don't understand somethni...
[3 replies] Last: I thought having a static counter within the constructor whose value ... (by clanmjc)
by Tresky
Delete Operator
 
Hey guys. Recently I added a line of code in my class destructor that deletes a window object that was declared as a pointer. It looked like this. Class::~C...
[3 replies] Last: Also, does this kind pointer need to have a try-catch block around it... (by clanmjc)
Please correct my mistake in following code que written above code
 
Que BMW car manufacturing company which produces the hatchback car on order basis for its customer depending upon the life style and liking of the customer. ...
[3 replies] Last: i am a very novice programmer pls try compiling this code in your pc a... (by ashayjain)
Vector contents into array (only first element gets copied)
 
Hi, I have a function that takes in vectors as parameters and then converts them into array and then calls a third party library function. I searched that to c...
[4 replies] Last: Hi all, Thanks for your replies. Apparently, my code already works. I... (by nicolee)
Text based OS
 
Hello, I mean to create a text based OS, and I mean OS in the loosest sense of the term, I want to create a basic start up and show up text set up. Anyway, I w...
[5 replies] Last: or http://os-book.com/ (by strongdrink)
word counter ,
 
// dang.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> #include <fstream> usin...
[2 replies] Last: sory sory i thougt i just post it in general c++, i delete the other o... (by joymar4)
Hi need help T_T
 
can u help me do a program that will input a word, then find a word in every line in the textfile, then count every word that match. TT
[7 replies] Last: help can u fix this for me // dang.cpp : Defines the entry point fo... (by joymar4)
by fugher
Hi I need help!!
 
I really need to figures out how to draw this. http://www.dropshots.com/zoom.html?large=http://media11.dropshots.com/photos/987629/20120313/b_103409.jpg ...
[4 replies] Last: How can I put that as code? Can anyone help? (by fugher)
Importing CNG Private Key
 
I am trying to import an ECDSA PFX onto a smartcard using CNG apis on WIN7. CryptAcquireCertificatePrivateKey using the appropriate flags yields an Ncrypt_...
[no replies]
Problme with floating point binary numbers and division.
 
I am working on a C++ libarary called Heap Variable, which can be found on sourceforge.net. My problem is in the division routine, i have a bug which causes...
[1 reply] : Why don't you check for yourself. http://en.wikipedia.org/wiki/Double-... (by Pravesh Koirala)
Help on Study Guide
 
Don't need help anymore.
[1 reply] : Why don't you try it yourself? That'd help you much more especially re... (by coder777)
expected Unqualified-id
 
Hi all, I need some help with my code - I've been trying to figure this out for hours. So I have a static int in my .h class, and I'm using a template<typena...
[2 replies] Last: OK, well it compiles. I'll go from there. Thanks! And I'll try to use ... (by speedyswimmer1000)
Struct or database
 
I'm considering making a list of around 30 - 40 people with around 7 certain attributes and was wondering if I should make a struct or a sql table. Also, once I...
[1 reply] : You would only choose the complexity of a database if you require the ... (by dexblack)
How to link vectors + sorts + binary searches?
 
Hi all, I am starting to create the bones of the program below. I am looking to... a) read info from a file b) store that info in a vector c) sort that ...
[1 reply] : Simplify, simplify, simplify. _._._ Means fill in the blanks Step 1: ... (by dexblack)
Which came first?
 
Can it be assumed that functions are evaluated before any arithmetic calculation? void foo(int* i) { *i += 10; } void main() { int a = 10, b, c...
[3 replies] Last: Program flow is controlled by sequence points. Usually that's the goo... (by Disch)
Perfect Scores
 
Hi all. I'm stuck and wanted to see if you good people could help me out. I have written the following code: // This program uses function countPerfect to...
[8 replies] Last: @......I come to this forum only for practicing my English ~~~LOL (by Loving Sky)
Problem converting double to float.
 
Hello, I do not understand why do I get 20120312 in v2 value. Thanks! double v1 = 20120313.0; float v2 = (float) v1;
[6 replies] Last: Thank you for the effort doing all the calculations! (by vincegata)
need a "uniform random" generator
 
Hi - I have a need for a random number generator that will produce consistent results on different machines. (I realize, this isn't really random, but I need...
[2 replies] Last: Thanks, Disch. I chose the simple one; more than good enough for this ... (by mzimmers)
delete error:acces violation
 
Hi guys, I made a double linked list but the delete function and the x, destroy functions are giving me the acces violation error. I know this means im delet...
[6 replies] Last: Item* Book::create(void){ char s ; scanf(" %s", &s); Person* ptr =... (by cire)
March 2012 Pages: 1... 2425262728... 49
  Archived months: [feb2012] [apr2012]

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