Beginners - May 2014 (Page 43)

by h4ever
CreateDIBSection - error ERROR_NOT_ENOUGH_MEMORY
 
Why this error happens and how to remove the problem? RECT rect; GetWindowRect(HCapture, &rect); size_t dx = rect.right - rect.left; size_t dy = rect.bottom...
[2 replies] Last: I found that my program works even that there is the error 8. It does ... (by h4ever)
by Light1
An "if " issue...
 
Hi l increases at any input, even at the case number =*(fdigit). What is the problem with the if statement? How can i fix it? #include <iostream> ...
[2 replies] Last: Line 9: You're trying to allocate an array of n ints, but n is uninit... (by AbstractionAnon)
Change while to for or if-else.
 
I need to break down a number on prime numbers.I mean if i've 42. 42|2 21|3 7 |7 1 So, those numbers must be printed in the console and in a txt. Than...
[no replies]
Timer in the game C++
 
I am begginer.. and I have some kind of trouble with making my game. I don't know how to count time while "person is thinking" from one pressed enter to next.....
[no replies]
I need help with my loop
 
My main proble is that I want the used to be able to go back and fourth between places but Im not sure how I would go about that #include <iostream> #inc...
[6 replies] Last: Thank alot dude, really helped me out :D (by MrMan12345)
Quick question on using template for two different functions
 
Hi, I have a question about template usage. Say I have two functions, both named void func(). One of them takes in two of the same data type to perform one fun...
[14 replies] Last: Oh... I feel incredibly silly. Thank you! That fixed everything. (by ECEsasha)
can i get some help please?
 
so i am creating a program where you enter some info and it creates a document with the info on it BUT i was wondering if anyone could tell me how to save the f...
[1 reply] : string filename; cout << "Where do you want to save your file?... (by AbstractionAnon)
Need inspiration / assignments
 
Hey guys, New at programming here. First of, i'm learning from learncpp.com and currently starting OOP. How is learncpp.com for beginners? I find myself conf...
[4 replies] Last: Community project: https://github.com/cpluspluscom/ChessPlusPlus Hop ... (by ResidentBiscuit)
by Padrik
Trouble With Linked List
 
I'm trying to create a linked list to hold inventory info. When I go to add a new node for another item the item of every node is replaced with the new item. I...
[3 replies] Last: That should not have been the cause of your problem. You should have ... (by AbstractionAnon)
calculating
 
How would i write a code that calculates 1*1+2*2-3*3+4*4-5*5+...+100*100? Please help.
[5 replies] Last: By initializing 'sum' to 1, you take care of the (1*1) term. Now you n... (by booradley60)
Need help for print receipt!
 
Please help me solve the problem! my request is after finish the order and topping , I need to print receipt and only display what I have order only. what shoul...
[no replies]
Calculate
 
Can some one help me with this problem Write a code that calculates 1*1+2*2-3*3+4*4-5*5+.....+100*100
[2 replies] Last: Same thread as http://www.cplusplus.com/forum/beginner/131435/ ? (by closed account 18hRX9L8)
Call Method
 
This my current program.. Mind check where the option gone? its should display the option and enter the optoin.. but it terminate the program... #include<...
[2 replies] Last: ok done :) thank (by aquilina)
Help with pointers?
 
Hi! I am having so much trouble understanding how to use pointers. The comments in the header file describe what the variables/functions are supposed to do. I i...
[5 replies] Last: Nevermind! I fixed it. I took int problem9::total_problem9s = 0; ou... (by ECEsasha)
deleting an elemant of an array. plzzzz help !:((
 
I can't understand. this is a program to get an 10 characters including a-z, A-Z, and _ . then this program will cout the text with out _ ! example: cin >> sd_...
[2 replies] Last: Line 2: include is misspelled. Line 12: You can't use erase on a ... (by AbstractionAnon)
Help with returning an object
 
I am creating a maze game where the load function takes a file that contains a maze and returns a maze object which contains the actual maze(which is a 2d vecto...
[2 replies] Last: you're right, I knew it was simple. thanks. (by pepstein)
Beginner
 
I am completely new to c++, where do I have to start?
[6 replies] Last: Google "C++ Hello World!" great first program to get you started with... (by SamuelAdams)
Errors in my program
 
in compiling my program, I had several errors that I have tried to find. Can anyone help with this program. #include <iostream> using namespace std; class MyS...
[3 replies] Last: I am not sure which compiler you are using, but if you double click th... (by dub1987)
by wolfv
destructor call at end of scope existence
 
I am learning about desctructors and scope to avoid memory leaks.
[5 replies] Last: There is nothing to leak, because no dynamic memory is used Thank yo... (by wolfv)
May 2014 Pages: 1... 4142434445... 55
  Archived months: [apr2014] [jun2014]

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