- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
17 Posted Topics
When you say you have basic knowledge how basic do you mean? whats the most difficult concept you understand? classes, structures, arrays?
You would need to learn to use the WINAPI or the MFC to use custom files and to save custom files.
I started reading Programming Windows API 5th Edition by Charles Pretzold and I compiled and ran the first program and it worked fine but this one doesn't work and I have been messing with it and I don't know what do anymore, the problem is line 22 when I run …
Hey guys I basically finished reading Beginning Visual C++ 2010 with Ivor Horton, I skipped the MFC part as I am more interested in the Win API which there's was only one third of a chapter on(not enough) and I was wondering if Programming Windows, Fifth Edition by Charles Petzold …
Hello everyone, I have a small question about the code below, I understand just about every part of it. Except for this small snippet, could someone explain how the loop works? [CODE] while(begin != end ) //<-- I believe the stream iterator is getting input here words[*begin++]++; // <-- I …
[QUOTE=inputbear;1513033]Sorry for my ignorance, but when you're passing an array like you showed: "{A,67,9,0,B,D}" are the characters in that array actually the ASCII codes? If so then would the array look like: {65,67,9,0,66,68}?[/QUOTE] I think it would be best to sort them seperately because a char technically speaking is not …
Its a little hard for me to read the code it seems a bit messy(or maybe because im still a noob compared to others), it would be best to get the array size from the user and then after that add 1 to it and when you are getting input …
You could just cast the numbers you want no precision on with [CODE]static_cast<int>double x;[/CODE]
We could help if you put the code within a [ CODE]***[/CODE] in the advanced editor so we can see it more clearly
From what you are saying I believe that you need to call the function from within the function to make it recursive like void cubes { int n = 1; cubes(i); } [CODE] void cubes(int n) { for (int i=1; i<=n; i++) ---->cubes(i); cout<<i*i*i<<' '; }[/CODE]
Isnt a string basically a char array with no 0/ and an empty counter []? like string [] = input? so it counts the number of chars going in and makes itself that size? EX: std::string hello = "Hello"; std::cout<<hello[0];
I was wondering if there is a for_each function in c++, I have searched for it on the internet and I cant seem to find a definitive answer, is it in the new draft for the c++x?
I've been having a hard time understanding classes but i've got it mostly down(atleast I think) well below in the code I overloaded the + operator for my class called clr which uses strings, my problem is on lines 59 and 61(strcpy_s(tmp,len,other.buffer);) when I strcpy to tmp the word is …
Hey everyone, My problem is that in my program below I made an indefinite loop for comparing strings and values, my problem is on line 60 & 61, the loop automatically accepts whichever if statement is on line 60 when I test for an uppercase and lowercase char, as soon …
I use Microsoft Visual Studio Professional on my Desktop PC, but my GTX 260 just failed and im dojng an RMA, so I started trying to program on my laptop. I am around 1/3 of the way through Ivor Hortons Beginning Visual C++, the book covers Native C++ and C++/CLI, …
Im doing a code "test" from the c++ book I am currently reading, the objective is to ask for input using a function and output data using a function, while keeping the data in main. I finished it and it works, but I want to make the program not accept …
Hello everyone, I have been programming in C++ for a while although I am not an expert yet, I would like to take a small break and learn another programming language that's a tad easier and I decided on Delphi. I looked for the stuff I need to no avail, …
The End.