Beginners - December 2010 (Page 27)

Problems with scope
 
Hi, I'm working on an SDL program and believe I am having some troubles with scope. Heres my original code, which worked fine and dandy. I've excluded the funct...
[no replies]
3 x 3 array
 
Write a program that tests whether a 3 x 3 array, which you may hard code, is a magic square. A magic square is an N x N matrix of numbers in which every number...
[no replies]
Assignment Operator for Class Derived from ABC
 
Hi, I have a problem defining an assignment operator for a class derived from an abstract base class where memory is allocated dynamically in both the base a...
[6 replies] Last: Yeah, I am sort of working against the spirit of polymorphism, aren’... (by freakalien)
How to name array elements in a for loop
 
Hi Everyone! First Post!! I am writing a program that asks the user to input their mileage for each month. I have setup an array: double Monthly ; A...
[7 replies] Last: Okay, I did 2 different arrays and it works perfectly...below is the c... (by Cre8ivPwr)
Why can't my program get past a certain point?
 
I'm programing a game. In my program I enter coordinates and my program then converts this so that it refers to a specific place on an array. One of the two dif...
[3 replies] Last: Thanks (by Celebrinbor1)
Compare value in array
 
I'm creating a Sudoku game, and according to the rules of Sudoku, there cannot be the same number in any row or column. My question is this: How do I compare a ...
[4 replies] Last: Remember that all numbers must be the distinct in each 3*3 square. (by Browni3141)
view the source code to std library
 
Hey, I'm new to cpp and I was wondering if there is a way that I can view the source code to the std library classes? Like for instance, I can look in iostream....
[2 replies] Last: thanks! (by spyterweb)
String comparision
 
Hi people. I've a problem with a piece of this program: #include <iostream> #include <string> #include <string.h> #include <cstdlib> #define N 1 using...
[6 replies] Last: Ok, thank you very much for help :) (by Overflowh)
when do we delete char*?
 
hi all, Can anyone explain to me when do we need to delete/free char pointers? Should it be delete or free when deallocating the memory used? Thanks!
[4 replies] Last: http://www.cplusplus.com/doc/tutorial/dynamic/ (by firix)
by Macz1
Header files?
 
Hi guys Ive been searching on the web for a while know trying to find out exactly what code to include in header files whenever I search I just find lots of di...
[8 replies] Last: You can look at the standard header file. http://msdn.microsoft.com... (by firix)
by lare26
delete error
 
I tried to delete the dynamic pointer age. The first one semed to delete something else. What am I doing wrong? #include <iostream> using namespace std; ...
[9 replies] Last: It does not matter.... (by firix)
by ctuto
strlen
 
i have a program that designed to count the characters,but whenever i put space on it, it only counts the character before the space.. how can i resolve this??
[6 replies] Last: It does not matter.... (by firix)
by Rave
Multiple Definition (forced to use .cpp file) Urgent
 
Hey, my instructor gave us a header file, and an object file, we are to make a database using these, by inheritance, i have made it and it works fine if i put i...
[2 replies] Last: sorry, he gave us a header file for staff, so staff.h and staff.o, but... (by Rave)
by mwmnj
if statement with long equation issue
 
if (monthlyPayment <(loanAmount * monthlyRate *(pow ((1 + monthlyRate) , desiredYears))) / ((pow ((1 + monthlyRate) , desiredYears)) - 1)) { ...
[2 replies] Last: hmm, With your code it is not higher. I guess the formula just doesn't... (by mwmnj)
Is there Cryptography Library for C?
 
Hi Friends.. I want to know, is there Cryptography Library for C application?.. I need C library for AES, DES, 3DES, and RSA Thanks
[4 replies] Last: Yes, it is open-source. For license read this, not on wikipedia page:... (by modoran)
by silvir
Hello can somone h e l p me , i want to change my ip adress
 
Hello again , idk maybe this isnt the tight forum for thise questions but i had a good response for c++ questions, So what am interested is i need a second IP a...
[1 reply] : anyone !! (by silvir)
Eclipse c++ How to work and build with existing code
 
Hello folks! I'm a newbie and I've a problem! I've to work with a c++ code and I don't know how to import it and how to compile it on eclips ( I compiled ...
[no replies]
by dove
Change words in string
 
Hello all, I need to change all words in text file, which contains letters o, y and a . I need to change these words to their row number . But the problem is th...
[1 reply] : i am sorry to tell you friend that your code looks so much pain. it is... (by chathura666)
by arty
Coding and compiling
 
I don't know if it's the right forum to post this message, so if it's not please move it. I'v been using Code::Blocks for the programming, but now I'v been r...
[no replies]
WinAPI program won't work
 
I've written a small calculator program useing the winapi, i'm a begginer so I thought I'd start with getting it working before optimization and stuff. The only...
[2 replies] Last: Thanks! It works perfectly now! (by BoomBip)
December 2010 Pages: 1... 2526272829... 35
  Archived months: [nov2010] [jan2011]

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