Beginners - October 2013 (Page 62)

by rsg
headers in dev-c++
 
I'm trying to compile code beginning thus (hough_transform.cpp from the CImg examples - I've copied CImg.h to the include folder): #include "CImg.h" usin...
[1 reply] : The error is in your cimg class in your header file. Hope that helps a... (by closed account NUj6URfi)
Selection Sort Swap Function
 
I keep looking back at my swap function inside my Selection Sort Function and I keep thinking that it's not right. I'm not sure why but I feel that I'm doing it...
[4 replies] Last: It's always the small things that tend to elude my mind. It's the ... (by Catfish4)
clreol() and clrscr() function not working
 
I already use lib <conio.h> but it still said clreol() was not declared in this scope. #include<iostream> #include<stdio.h> #include<windows.h> #includ...
[3 replies] Last: thank you^-^ (by XiangzhenWu)
char inputs
 
Hello, I want to ask how to properly get char inputs from the user. Im having a hard tim with this part of my program. What I wanted to do was the program will...
[3 replies] Last: Thank you, it worked. It's like magic when you suddenly know something... (by sanasuke15)
Calling a function
 
I am calling functions and having a bit of an issue. I believe the code is correct but it will not allow me to enter a number to tell it how many time to print ...
[15 replies] Last: You have to have the <= sign for this though. So it will print nu... (by TheIdeasMan)
Arrays can be modifed when passed as arguments??
 
Hi, this is my first post here and I'm a beginner, so please be gentle! I was writing some code that involved passing an array to a class method and I notic...
[6 replies] Last: If you do that, then I would still use the const keyword, it both do... (by Chervil)
Basic char, int and ASCI with 'if' function - simple question
 
Hi I've got a little problem with this. It is a program that reads messages from the sensors of temperature and wetness in a room. In fact the data is stored in...
[1 reply] : Fouth letter has index of 3. Count it yourself: 0-1-2-3. So, change k... (by MiiNiPaa)
by Exempt
class design, singleton?
 
I've been think about how to create a system class that would be easy to change later for multi platform stuff mainly. The idea is to have a CSystem class, ...
[7 replies] Last: I've been think about how to create a system class that would be easy... (by knn9)
compare fields in an array
 
Hi, I have started a programming course and its being going well until now. I have to create a 3 number lotto program, the possible outcomes are 3 numbers match...
[2 replies] Last: Hi there, Please note that using goto is considered to be a bad pract... (by closed account o3hC5Di1)
Exercise
 
This is just an exercise. And i need to complete this. This is the question : Write a program in C++ that calculates the amount to be paid to an employee bas...
[6 replies] Last: Hi there, Why did you copy your earlier post? Chervil kindly offered ... (by closed account o3hC5Di1)
Datastore mapper class design
 
Hi everyone, For a library I'm writing I'm trying to set up a base "user" class which could form a basis for, for example, a user registered on a website. ...
[9 replies] Last: That seems like a great solution. I would have to ensure the reference... (by closed account o3hC5Di1)
Convesion of char to int !!
 
Can I ask anyone how will I convert TIME in char to TIME in int form ??? this is my example Time in: 08:00 Time out:17:30 // Time in and Time out are...
[10 replies] Last: Hi there, The code I gave you does pretty much what you need. Please... (by closed account o3hC5Di1)
by yaraa
Can you tell me whats the output here and explain to me how!!
 
int volume = 0; Class Box { Box () { Cout<<++volume; } ~Box() { Cout<<volume--; } }; Void main (){ Box object1,object2,object3; { Box object4; }...
[2 replies] Last: Why don't you simply compile and run the program yourself? Your main(... (by keskiverto)
comparing against last element of vector
 
int main(){ std::vector<std::string> v = {"test", "tester", "tester"}; for (auto i:v){ if (i == v.back()){ std::c...
[9 replies] Last: An alternative: #include <iostream> #include <string> #include <vect... (by cire)
Please for this bug////
 
Hi The question asks that The one-dimensional array A of integers is given. Increase by 2 each its non-negative element. I made this program but compiler says ...
[8 replies] Last: The philosophical question is, should the simple examples simply spit ... (by keskiverto)
Help with File Read In and Output to File
 
Hello! Been working on this assignment for about a week now and haven't been able to find what I'm doing wrong. Must have searched every C++ help tutorial as we...
[3 replies] Last: The reason they are both the same is the ; at the end of this line el... (by histrungalot)
not looping!
 
i made a program that acts like a calculator. the does its function but it needs to keep asking the user for new numbers and an operator until the user enters '...
[9 replies] Last: thank you. I have been learning in college as well and hope it help wi... (by ihiUYUH)
If statements help
 
Ok, so I'm writing a tax program and this is just the first part I'm having trouble getting the right deductions. I think it has something to do with the nested...
[3 replies] Last: I'm a beginner myself so forgive me if I'm wrong but I think the 'if' ... (by dcardin14)
useful resources for c++ beginners
 
hi friends, i was googling on a <ctype.h> inbuilt functions and i stumbled upon an interesting sites with basic c++ tutorial as well as lot of detail on in...
[6 replies] Last: That why I posted link to cppreference too. There is exaples almost fo... (by MiiNiPaa)
C++ Simple Game..
 
Hi, i just want to ask how should i start or where do i start creating hangman game? What the starting points and things i need to remember? Functions and the s...
[4 replies] Last: Oh, it is not as hard. If you do not mind to stick to console-based v... (by rodiongork)
October 2013 Pages: 1... 6061626364... 86
  Archived months: [sep2013] [nov2013]

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