Beginners - June 2011 (Page 38)

by isnork
Help with dynamic memory
 
Hi, I have a little problem with this piece of code: class PInt { private: int* n; int id; public: PInt( int o, int q )...
[4 replies] Last: I wrote the copy constructor and it worked. Thanks!! (by isnork)
Issues with input
 
I'm trying to enter strings to use for a command interface through hyperterminal, but having issues with the second "gets" function. It lets me enter a command ...
[4 replies] Last: Johnnystarr is right. Coding conventions will help with code readabi... (by closed account zb0S216C)
need assistance
 
hi, everyone...I need to ask that how can i, through programming, access the drives of my system. i was planning to make a music box which can access my drive w...
[1 reply] : [quote=shekhartanwar]It should update the list each time i add or remo... (by closed account zb0S216C)
by maxnul
Syllable Separation
 
Hi, im new at this forum. I'm in college and i got this assignment to do, it's a program where you put a word and the program separates the syllables, the pr...
[1 reply] : You need to use the correct Code Page for your locale or use Unicode. (by kbw)
by tonnot
How to use the format %4.3f in C++, not sprintf ..
 
Is there any way to use the c sprintf format style %#.#f to formating numbers to std::string ? Thanks
[1 reply] : Not directly. (by kbw)
by tonnot
Three questions about template function
 
I have read at cpp reference that in case of function that uses template <class T> I have to write the code at the header file, I cannot separate the header an...
[3 replies] Last: I have no errors, simply my changes to the function are not take into... (by kbw)
MY Diamond Program
 
hi below is the code of my self made diamond printing program..i am a noob and i am trying to learn programming,,, cox its fun :D .. BTW the problem is th...
[6 replies] Last: okay thanks...i finally made the diamond..thanks alot :):) (by ChanGeZi)
Drawing an icon help :)
 
Hi, Ive got this: case IDYES: HICON hIcon; hIcon = LoadIcon(NULL, MAKEINTRESOURCE(IDI_ICON1)); HDC handleDeviceContext; PAINTSTRUCT Pa...
[4 replies] Last: Ah, i know why, it is because in the wm_paint message I have include a... (by TpOreilly)
help with understanding code
 
Hello Could anyone please explain to me the meaning of each line of the program below I marked with question marks (???). I copied it from a website. It encryp...
[2 replies] Last: Thanks johnnystarr for your reply (by vbaswant)
Hello first program need a hint :)
 
HELLO! I'm really excited to start programming --I've just started my first college semester as a Computer Science major, and our first assignment is as follo...
[2 replies] Last: I figured it out thank you!!!!!!!!! :-] ( after 5 cups of coffee and a... (by gotBytes)
c++ advice needed
 
Hello I'm Andre and I need some help. I was scripting with Pawn at one comunity SA-MP and i have get very good skills with it.. for who don't knows pawn is almo...
[2 replies] Last: Thank you for your reply it help me a lot :) I going do some sfml toto... (by Pereira92)
by caneta
Separate column values from a string
 
Hi everyone. I read lines from a textual file with getline(). Each line is a string like: 12 345 543 65 There is a way to obtain substrings with...
[9 replies] Last: Thank you moorecm, this is exactly what I need! It works also if I ha... (by caneta)
by Ali89
What does this error mean ?
 
Hi there, Sometimes I get the following error and I have not any idea what's wrong with my code indeed !. would you please tell me when we may get the followin...
[8 replies] Last: Yes, but what I was getting at was that you could be dynamically all... (by Ali89)
difficulty in understanding the mechanism, of the program
 
Now here are codes of two programs similar to each other, yet different in assigning value to an integer type variable... PROGRAM1: #include<iostream> us...
[7 replies] Last: thanks:) (by shekhartanwar)
newbie problem
 
help me whats the problem of my code :: #include <cstdio> int main() { int cases, a, b, c; scanf("%d",&cases); while (cases--) { ...
[3 replies] Last: for(b=0;b++) //? (by Mathhead200)
CopyFile Function Error
 
Hi, I'm making a program and I keep getting an error when I use the CopyFile function. Here is the line that gives me trouble: CopyFile(filePath, filePath + ...
[2 replies] Last: Ok, I figured it out and used this: File::Copy(filePath, filePath + "... (by mydogcanpurr)
My random number generator doesnt work
 
In this code, the output for whatever number you put in is "smaller smaller" How can I fix this? int main(int argc, char *argv ) { int choice; string...
[4 replies] Last: I seriously recommend you re-think the structure of your program, it i... (by Krisando)
can someone help me with this code?
 
This code follows the concept of dynamic binding but I cannot see how. I also cannot see how function write() is a virtual function. This is probably because of...
[3 replies] Last: Oh I see now. Thank you both very much :) (by Prismatic Butterfly)
Passing 2D vector to a function
 
Hi, I am using vector to vector to define 2D matrix and then I am trying to pass pointer to this double vector to function "Display_Individual_Elements". I am...
[3 replies] Last: Thanks Albatross and Athar. I am new to C++ and trying to learn. So, ... (by dkumar3)
Sum of series with faktorial
 
Who can solve this... Please, help. Image: http://pics.kz/s4/1c/5e/51/1c5e51a7b57ff27ca96e5c157c982c4d.png
[1 reply] : The factorial of a negative number is undefined. (by Audie)
June 2011 Pages: 1... 363738394041
  Archived months: [may2011] [jul2011]

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