Beginners - January 2011 (Page 15)

nested loop
 
print a pyramid????? up and also in down ??????
[10 replies] Last: When i posted the code i was looking for critique and suggestions from... (by Crutoy)
ans???
 
input digit and print it in words??
[9 replies] Last: Exactly my point. He should learn why that code works, and of course w... (by rocketboy9000)
void *array
 
hello this is my function: int deleteItems (void *array, int itemSize, int itemsCount, bool (*shouldDeleteItem)(const void*)) { for(int i=0; i<itemsCount;...
[13 replies] Last: Cast it to a char* inside the function, not before calling the functio... (by Moschops)
ans????
 
find average of list of numbers entereed through keyboard???????
[14 replies] Last: thnx!!!! (by honey24)
Incorrect output High and low scores
 
This is my code and when it gets to the output for High and low score, it gives me the second to high score and 0 for the low. I have no idea why. can someone...
[5 replies] Last: I dont know how? (by Abelville)
Validation Program problem!
 
So, I've only started learning C++ by myself, and have just finished the book "C++ Demystified" by Jeff Kent. Then I started experimenting and wanted to make a...
[4 replies] Last: By the way, I'm using Visual C++ 2010 Express. (by Squipix)
expected Unqualified-Id before switch
 
Hi i am a beginner at C++ ( i started yesterday) I am writing a program that translates date form format dd/mm to It is the <day> of <Month> When i build the...
[4 replies] Last: Thanks it helped (by adrianooo231)
pointer to function
 
hello this is my program #include "stdafx.h" #include <iostream> using namespace std; bool isOdd(const int* item) { return (*item)%2; } int delet...
[5 replies] Last: sorry I meant IsOdd (by quirkyusername)
I cant seem to finish this assignment
 
Ok, I have an assignment this week for school, and I thought I was all done, but ran into a small problem. The assignment is to create a program that creates a...
[5 replies] Last: Ok, I tried a few different things and i'm returning different errors ... (by Jarhammy)
variable file name for fstream
 
How would you go about making it so the user can enter in the name of the file to open? here is my code but it doesn't like line 16. #include <iostream> ...
[2 replies] Last: Oh yeah I fogot about that (by shadowvillian)
error: 'end1' was not declared in this scope
 
I get the error at line 17 error: 'end1' was not declared in this scope But there is a n end one here is my code #include <iostream> #include <cstdio...
[1 reply] : you wrote end1 (one) instead of endl (line) ;) (by coder777)
answer plz??
 
write a short progarm to cheack wheather squre root of a number is prime or not??
[3 replies] Last: #include <Windows.h> #define ErrorMessageBox(a,b) MessageBox(a,b,"Er... (by some random dude)
by minix
C,C++ Interview Questions
 
I am sharing some of my interview Questions. Updated ... http://codingproblem.blogspot.com/ BR, Andy
[no replies]
Converting strings to integers
 
How do I get string thestring to return theinteger ? I'll be doing it a lot in a script, so I'd like to create a subroutine.
[4 replies] Last: As I said it's in the cstdlib header. you'll include cstdlib. (by Seraphimsan)
First time programming, and I would like some feedback.
 
This is the code, and I don't know if I was supposed to paste it in C or C++ on Ideone, because my teacher talks about the class like it's just called C program...
[8 replies] Last: C functions take a number of arguments, and produce a result. In the c... (by rocketboy9000)
by cppnb
delete input from user
 
Hi..i am currently crating a system where user input their sales record into a system.I have done the add function and now i have some problems with the delete ...
[no replies]
by a40
Difficulty with Building a Triangle in C++ (First "Real" Program)
 
Hey, I need some help building a triangle in c++. I feel like I'm screwing up real bad so I apologize upfront if this program is hideous. Please take a look ...
[1 reply] : bump (by a40)
calculate a number to a very long decimal
 
I am writing a cryptography program that converts a sting of plaintext into ciphertext. One of the things it needs to be able to do if calculate the irrational ...
[1 reply] : Not natively, I don't think any digital computer can. BUT all hope is ... (by Seraphimsan)
Initializing a data member within the class definition
 
Is it possible? For example, I have an array of 26 characters (one for each letter of the alphabet) in the private section of my class. Visual C++ won't allow m...
[4 replies] Last: By the sounds of it, you're going to have to initialize the array in t... (by closed account zb0S216C)
Trouble returning a string
 
I am working on an assignment and though this is not a part of the assignment, this has piqued my interest. string caesarCipher::encrypt(){ string caesa...
[4 replies] Last: Your algorithm is wrong. To implement the classic Caesar cipher on th... (by rocketboy9000)
January 2011 Pages: 1... 1314151617... 42
  Archived months: [dec2010] [feb2011]

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