Beginners (Page 115)

How can i store 3 different values in a single datatype?
 
For a final C++ project that i am working on right now for college, we need to create a program that...
[1 reply] : Create a struct or a class with two integer data members, or you can u... (by Peter87)
by Trowen
Constants
 
If I were to declare a constant variable but not initialize it, could I do so on another line?
[1 reply] : Yes, just like any other variable. However it is best practice to do d... (by Mobius1)
Error C3767 candidate functions not accesible
 
i'm getting this error (candidate functions not accesible) when trying to use get/set methods from f...
[6 replies] Last: i thought that because the functions Setfloat and Setchar were public ... (by welsh4evr)
by Rascal
Accessors
 
Hi, Still very new to C++. I am looking at the code below. If the accessor getName() is specified...
[2 replies] Last: Thanks so much for the explanation and coming back to me so quickly. A... (by Rascal)
by enemy
web photos
 
...
[2 replies] Last: Hello! I wrote twice to Lounge but it does not accept! What should I d... (by enemy)
by fagyi
data verification
 
Hello, im working on my homework and i have a problem when it comes to data verification. do ...
[3 replies] Last: If an integer is better for the job, why are you trying to feed it a f... (by cire)
Debugging via console compilation
 
Hi all, It may not be the best practice, but I've found that I really dislike using an IDE as they ...
[1 reply] : Have you looked at gdb? Aceix. (by Aceix)
Reading line by line from Binary file
 
Hi, first post here. I am having issue with assigning a binary file line by line to objects of a cla...
[2 replies] Last: And pls state any errors the compiler/linker is giving you. Aceix. (by Aceix)
multithreading with timer in visual C++
 
hi, I use class form visual c++ 2010 for controling robot and receive information from sensor in th...
[no replies]
Why isnt my code working?
 
Hi there. I am learning C++ by myself and I am currently facing some issues with my code here. I use...
[10 replies] Last: Thank you gentlemen for your help. this is my final code : #include ... (by Dilliwala Wella)
Application which runs your program with multiple user defined parameters
 
Hi, I am currently learning C++ as part of an Engineering degree. The programs we are currently w...
[1 reply] : launch.bat: myCoolProgram.exe first_parameter second_one > Out1.txt my... (by MiiNiPaa)
Carpeting cost program.
 
Well, this is my first time asking for help because I'm not sure what to do. Pretty much need help o...
[no replies]
PC guesses a number in 3 tries
 
I've came up with this idea from card trick but I don't know how to do it . Player will think of a...
[2 replies] Last: I managed to push them back somehow but that doesn't solve anything, I... (by uzferry)
How to output a pattern
 
Hi I want to output the following: ********** ********* ******** ******* ****** ***** **** *...
[2 replies] Last: There are many ways to do the task. For example #include <iostream>... (by vlad from moscow)
why return reference to local variable works?
 
Doesn't it release the addr when finish running a function, and why i return a reference to a int ty...
[13 replies] Last: @]Andy Zehn An object of type std::string keeps its data in dynamic... (by vlad from moscow)
"Segmentation fault (core dumped)" error
 
why does code 1 gives segfault error whereas code 2 doesn't, both are basically same, do anyone have...
[4 replies] Last: thank you I missed to allocate memory (by mksakeesh)
File I/O problem
 
My first ever post on this site! For a couple of weeks now, I have been writing a random class gen...
[8 replies] Last: Thank you so much for all your help :) I am such a noob at c++ so I ap... (by imulsion)
Lottery Problem
 
The code is written to solve a lottery problem. In this problem the user must guess 2 digits and: 1....
[no replies]
by Daleth
Unsigned narrowing to int
 
I got this template function for getting the size of an array , and I want to use unsigned since, o...
[3 replies] Last: Yes, size() is the function. And constexpr is a (single) keyword ... (by JLBorges)
Class Structures
 
Hello, I am new to this site but heard there are some people on here who can be of some great help, ...
[10 replies] Last: You rock ! That was it . Thank a million ! (by Hillcyd)
Pages: 1... 113114115116117... 130
  Archived months: [mar2013]

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