Beginners (Page 7)

Declare a Variable - then use it in System Call
 
Team... Say my user gives a variable; can I use it in a system call? I have tried with no love -...
[3 replies] Last: Keep in mind that if source or target has spaces in the filename t... (by Duthomhas)
ostream
 
Hi guys I know why I am getting an error but I don't know how to solve it I'm reading from a file c...
[4 replies] Last: thanks Chervil (by adam2016)
by pavik
managing menus in text mode
 
I'm trying to build up a menu for my programm. It can be found here: https://pastebin.com/DiF3CA...
[2 replies] Last: Thx, I'll try it. (by pavik)
SFML
 
each time i press A key to move the ball i dont see any move while in console i can see the coordina...
[8 replies] Last: what is alternate for cleardevice( graphics.h ) in sfml? (by kaleemktk)
by Chaost
Function altering structure not reliable
 
I'm learning how to use pointer-to-structure to alter the value of the structure but I'm experiencin...
[1 reply] : At line 30, you're creating a new map object, setting the value of re... (by MikeyBoy)
how to define a virtual to_string method in C++
 
I want to make a virtual to_string method for a base class called Item which is the base class for t...
[2 replies] Last: #include <iostream> #include <string> #include <memory> class Item {... (by JLBorges)
OPENGL help beginner
 
I want to learn openGL for C and I cant find any reliable tutorials. Can Anyone suggest any good tu...
[5 replies] Last: You should never use GLUT. It hasn't been updated since 2001. FreeGLUT... (by Uk Marine)
Website C++
 
Is it possible to build a website completely in C++? If not, what is C++ primarily used for?
[2 replies] Last: There are server-side frameworks. I've used Wt, but can't recommend it... (by kbw)
by drs135
void and bool
 
Is there a way i can make this function a boolean? void bool Pacman::CollisionCheck(int x1, ...
[5 replies] Last: Can't say much without your code but I would advise to check if your f... (by hoogo)
Having trouble fixing "string subscript out of range"
 
I am getting a "string subscript out of range" message when running this, but do not know what is wr...
[17 replies] Last: An easier way to count and replace words in a string. #define _CRT_S... (by Thomas1965)
Problem with void
 
I have just started to learn c++ so my code might not be the cleanest....Anyways, when I try to answ...
[1 reply] : Problem with getting user input. [code firstline=46] int hh1ans; ... (by Chervil)
cin vs getline
 
Hi guys so I know cin reads input up until any white space,and getlien reads the whole line includin...
[1 reply] : Formatted input ( cin >> something ) by default skips leading whitespa... (by Duthomhas)
by quiz
merge sort text file
 
Hello. My problem is that I have to implement a sorting algorithm by merging with text files, in the...
[no replies]
System call with multiple variables
 
Hello, I'm trying to make a system call using values from external file. Using mostly C not C++ beca...
[no replies]
by zingob
problem with typedef
 
Hi there, in a simple test program I am using typedef to keep things simple, but when I replace the ...
[2 replies] Last: hello helios.. thanks! wow what a mistake.. ahah.. After I wrote the ... (by zingob)
Reading from a file.
 
Hey everyone, I'm working on a project where student issues a book. when withdrawing a boo...
[5 replies] Last: @Handy Andy Thank you for opening a path for... (by Hassibayub)
use of while loop with flag control varible
 
this piece of code is running infinty. i am not able to get why is this happening. //flag controll...
[6 replies] Last: thanks. (by sodium2106)
Problem with showing net salary
 
Pretty much trying to figure out the net salary but it wont show when i try to enter number.. Exam...
[1 reply] : I am assuming the variable net is the net salary. If so, then line 3... (by chicofeo)
Insecure array size!
 
Why does ARRAY_SIZE work only in 'main' and not in 'printarray'? #include <iostream> #define ARR...
[2 replies] Last: To clarify, the word usually used is that an array decays in to a po... (by Ganado)
by flav32
program effciency
 
Hi there:) I had to create an array that can hold ten integers, and get input from user. Then I had ...
[7 replies] Last: If you have something new to say, there's no harm in creating another ... (by mbozzi)
Pages: 1... 56789... 34
  Archived months: [nov2017]

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