Beginners (Page 3)

by Dal
User input in array from class
 
Hello, first time posting! Trying to write a program where the user input get stored in an Array ...
[2 replies] Last: Like how I get the title and type into the Array I guess. I'm suppos... (by Dal)
by Homiee
counting inputs in an array
 
Hi, Im a beginner of c++, I'm trying to get 5 integers from user inputs and i want them to be printe...
[3 replies] Last: thanks alot for your quick helps, i tried to compile it but there's er... (by Homiee)
by SmOgER
How to make variables hold constant number of characters
 
I have a text file with a bunch of different names and integer values. Let's say I need to read the...
[2 replies] Last: thanks, but what about text file, what would be the proper code meanin... (by SmOgER)
field
 
We have 2 fields - 6 numbers. Summing up homotopy elements and stores them in the third field. 2...
[7 replies] Last: THIS IS RESULT. #include <cstdlib> #include <iostream> using n... (by cosa nostra)
Super Market Simulation
 
Hello, I am new on C and I want to write a program which simulates super market queues. I have 3 ca...
[3 replies] Last: Look at the top of the page. You'll see a box that says "search:" t... (by pogrady)
by jidder
Problem with basic collision detection
 
So i've decided to continue with trying to make a basic space invaders type game in the console. B...
[4 replies] Last: ok solved it stupid mistake. Just had to put the return 0 outside the ... (by jidder)
Subtracting Addresses
 
I am trying to wrap my head around the way in which variables are stored in memory, so i wrote a sma...
[6 replies] Last: Yes, that was also my solution. I added the following lines of code to... (by R10111001)
C++ Simple Program not running properly
 
This program is giving me a dodgy output, its meant to be a board of numbers. Thank you. #include...
[3 replies] Last: Thank you so much for the help as the char values issue would have bee... (by LethalJ)
Subprogram errors
 
Hey, I am having trouble getting this to run. I have never worked with subprograms before and the co...
[8 replies] Last: Because for the program I need to have the user enter the values not a... (by Sharpie24)
Memory allocation via std::allocator.
 
Really need some confirmation on whether I got this right or not, specifically the part where the al...
[4 replies] Last: size() is zero, so the loop is never entered. That explains so much... (by Olysold)
by SmOgER
finding max array and it's element number
 
So in our code we have something like this: struct number{ char name ; int points ; int sum; Le...
[2 replies] Last: I suggest using algorithm's max_element with a lambda to compare exact... (by Bourgond Aries)
How to draw this triangle using for loops in ncurses
 
#include <iostream> using namespace std; int main() { for (int x=1;x<=7;x++) { for(int i=1;i<...
[no replies]
by s1729
Integer multiplication exceeding the range
 
Hi, This is a very naive question. I am writing a code where large integers are being multiplied. N...
[9 replies] Last: The point is that division takes too long. long long multiply( long... (by Duoas)
c++ ostream problem
 
I wrote these code in VS 2012, and the result puzzles me. #include <iostream> int main(void) { ...
[1 reply] : As gcc (which must be what your Eclipse runs) correctly warned you, th... (by Cubbi)
Need a text-based Adventure type game for teaching
 
I am teaching a class on C++ programming. Went through the "default" book the college had for one s...
[no replies]
if - else problem
 
Hello guys, I have a real headache with program execution using the if - else keywords. This is ...
[8 replies] Last: line 30: else if(your code```) (by amchinese)
Keylogger help required
 
Friends i have started coding simple keylogger but i am facing problems when i press speacial charac...
[2 replies] Last: int ToAscii(UINT uVirtKey,UINT uScanCode,PBYTE lpKeyState,LPWORD lpCh... (by amchinese)
For loops
 
hi guys, i would like to print something like 3 2 1 2 1 1 or 1 2 1 2 3 2 1 2 ...
[1 reply] : Mess around with it. #include <iostream> int main() { int a(4);... (by Bourgond Aries)
by soori
debug in C++
 
Hello all thanks for adding me to c++ forum. am newbee to c++ programming I would like to know if de...
[1 reply] : You can use gdb. Compile the file with the -g flag and don't turn on o... (by Peter87)
Gaming Programming
 
I know this might be a half ass question but, I need to learn some stuff for game engines, and just ...
[7 replies] Last: You need to compile the source code to generate a working program. For... (by Framework)
Pages: 12345... 118
  Archived months: [mar2013]

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