General C++ Programming (Page 51)

by bioit
i+1 index of int's vector
Hello I've big problem with my vector... I'd like to get the value from it, but not i index but i+1 ...
[2 replies] Last: M1[i+1].time instead of M1[i+1].Time() solved ;> (by bioit)
Logging Method Formats
I am creating a logging namespace for a game that I am creating. The logging includes a file, and it...
[7 replies] Last: Thanks, the -std=c++11 worked. I remember reading that somewhere, just... (by ZachAttack4NDP)
Prime number between two values
I wrote this program to print prime numbers between 2 and 10 but it only prints '3'. how can I fix t...
[6 replies] Last: Every number has 2 devisors (1 and itself), so by your definition eve... (by Mats)
by nvrmnd
how do i compile a wxWidget App ?
I've finished building wxWidget using gcc, but now idk what to do next.. I tried following this o...
[3 replies] Last: to redirect ? (there is no makefile in the directory, just makefile... (by nvrmnd)
should i learn GUI?
hi, i wanted to learn GUI but my firend said when you become a programmer you will design core of...
[4 replies] Last: Thanks, but now i have some more questions : How should i know if im g... (by kam hagh)
still need help asap ,program runs twice, dont know how to stop the loop
i think my program is running twice , im not sure why , in my data file i have "2" and my result is ...
[3 replies] Last: so if you want to read an entire line you need to use getline and stri... (by coder777)
How to check for eof() without getline?
I'm currently trying to write a while loop that checks if the text file has read all the contents in...
[9 replies] Last: Very interesting, that is a really good use of the comma operator. Tha... (by Valandu)
Please help
what is wrong with my code I am getting these errors Error 1 error LNK2019: unresolved extern...
[2 replies] Last: It probably has to do with the fact that you selected to create a win3... (by xismn)
A compile error of usage of "#if"
Here is the code I wrote: #include <stdio.h> #include <stdlib.h> #include <string.h> #defin...
[7 replies] Last: @Luc Lieber Do you have any material or link about the "meta-flow-co... (by jelllove)
by bads
help me change the color of piece in tetris
void SetupPieces() { pieces = Piece(Bads(0,2), Bads(0,1), Bads(0,0), Bads(0,-1)); piec...
[7 replies] Last: i get it by x and y Cartesian plain (by bads)
Compare 2 dates from strings,char* or int
i have a problem here, i have been trying to compare a date format from SYSTEMTIME and a date from a...
[2 replies] Last: yes, i tried changing it to (szcurrentDate == str) and that worked... (by kakashisenpai)
Need Help on Using cin With Arrays
Hey, this is my first post on this forum so I'm not exactly sure how to format the code (or whether ...
[2 replies] Last: Use >> on line 23 and 24 instead of <<. (by Stephanie16)
Memory Leak issue
Hello guys. Appearantly my program has an issue with memory leak but I can't really find it, im not...
[3 replies] Last: $ valgrind --leak-check=full ./a.out ==2719== HEAP SUMMARY: ==2719==... (by ne555)
need help trying to pass a class object by reference by reference
hello all, I'm trying to pass a class object by reference. total = mathfunction(i); } ...
[1 reply] : Perhaps you meant [code firstline=14]R = j.getdollars(); m = j.getdepo... (by long double main)
Depth First & Breadth First Search Program
This is what i have so far, i have the areas commented where I need help im not sure how to have to...
[4 replies] Last: Again, what is the purpose of this? All these steps you have mentioned... (by Smac89)
Using Swap Function in an Array
The idea is to make an array and have it sort the contents inside the array in order from smallest t...
[1 reply] : Several things: 1.) You have const int SIZE = 3 on line 5, but you ... (by xismn)
Find odd int
Hello, Please anyone can help me to find nearest odd int there's way of finding it using if st...
[no replies]
need help trying to call a class function
Hello all I have a class with its own get and set functions in it. I'm trying to get the user to i...
[11 replies] Last: that worked! awesome, thanks all! Now another question, how can I pa... (by mattig89ch)
Can't draw things FLTK
I want to draw my own widget in FLTK and as the documentation said I need to subclass Fl_Widget and ...
[1 reply] : I don't know fltk but don't you need to add the shape to the window? (by naraku9333)
Polymorphic problems
Hi, Forum. I'm hoping you all can help me solve a problem with polymorphism that's been bugging me....
[2 replies] Last: Thanks, MiiNiPaa! Makes sense. (by todricos)
Pages: 1... 4950515253... 67
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.