Beginners - December 2013 (Page 6)

how to creat a table using graphics.h
 
i need to make a table and in table i can put values like this s.no Name Age Email 1 tj 23 tj@gmail.com and cover them with lines to loo...
[no replies]
by wolfv
Makefile question
 
The follow code compiles from g++ command but gets an error from Make. So the code is good but there is something wrong with my Makefile. emuliate_Arduino\usb_...
[11 replies] Last: ...and it is GNU-specific, AFAIK. hmm, I think you're right about ... (by Lowest0ne)
develop dynamic buffer/memory
 
unsigned int* buffer; buffer = new() unsigned int ; I want to access 24 locations as 3 arrays of 8 bytes Like want pointer to point on 0th, 8th...
[1 reply] : Use typedefs to help. #include <iomanip> #include <iostream> using n... (by Duthomhas)
Question not "looping" correctly
 
Im trying to make a program that will sort out the quests which you can do, based on levels and previous quests completed, for the game Runescape. This part of ...
[6 replies] Last: Cire is right. If you're putting a string in done, you'll need to use ... (by vitiin)
My move contructor correct?
 
I could only find simple examples to check against. So I need someone to tell me if I did it right in my case. It compiles, but currently not testable. Thank...
[5 replies] Last: Why write this at all? It's not doing anything differently from the de... (by Cubbi)
by yeki
code debugging
 
Hi I installed code block 12.11 in this version I could not find any explanation for my errors, it only shows the line of error, does anyone know how we can ...
[4 replies] Last: Got it Thank you sooooooooooooooooooooo much Garion :) (by yeki)
Operator overloading
 
I don't quite understand the code from line 20 to 24 when it is trying to overload the << operator. Can anyone please explain it to me? Thank You class ...
[2 replies] Last: In line 20, the function argument ostream &output essentially tells ... (by qmzh85)
by Garion
Boolean Algebra
 
I was reading about boolean algebra because I am interested in different ways of comparing values. http://en.wikipedia.org/wiki/Two-element_Boolean_algebra ...
[3 replies] Last: You're welcome. That part is confusing to me also. I've not heard of... (by norm b)
Combining a negative sign with a characater in a string array? (C++)
 
Hi all, I'm currently working on a project that requires me to read letters from a matrix and use the number that they correspond to to determine the probab...
[18 replies] Last: Hi Dput, Thank you for your response. I was able to figure it out tha... (by Macalay7777)
srand(time(NULL)) Causing program to hang
 
So i wanted to write a program that generated almost real random numbers so i used the srand(time(NULL)). I put the srand(time(NULL)) inside a for loop along ...
[5 replies] Last: Sounds like your code has an infinite loop. But unless you post the ac... (by Chervil)
2D array represented in 1D
 
hi, i know this has been asked before, but i cannot understand why pointers are printed, instead of values... I'm considering a 2d array as a 1d array... where ...
[6 replies] Last: Thanks Cubbi, you are right. I went and learned a lot about types and... (by kevinkjt2000)
by Cmd
Vector prorblem
 
-
[1 reply] : Are you sure that the file whose exact name is Studen_.h exists in t... (by JewelCpp)
Variable naming within functions and classes
 
I am trying to learn C++ by reading the following manual "C++11 for Programmers"; therefore, I don't have a mentor to put forth my inquires to hence any help th...
[3 replies] Last: Thank you for your time. That it just what I was looking for, but coul... (by willflemingthe1st)
by Ch1156
This code crashed my PC D:
 
I just wrote this simple code to output memory addresses and my Pc crashed, why is that? #include <iostream> using namespace std; int MemAddress(i...
[3 replies] Last: no it gave me a blue screen with a frowny face and it said something a... (by Ch1156)
how to copy string in array
 
how i can copy the string from one array to any other array? array ={"Some Text"}; //it should be transfer to any other array....
[3 replies] Last: you can use this strcpy(copy to,copy from); or you can use a loop and... (by Cutefriendzoned)
Error: Range-based loops are not allowed in C++98
 
// range-based for loop #include <iostream> #include <string> using namespace std; int main () { string str {"Hello!"}; for (char c : str) { std::co...
[7 replies] Last: Glad to help ! (by nvrmnd)
by nvrmnd
elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
 
Why is the compiler producing error even i've enabled -std=c++11 warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword [...
[10 replies] Last: oh SHI*, next time, i will carefully read error messages :) Tnx (by nvrmnd)
Why won't visual studio let me run my program?
 
C++ noob here. I have searched everywhere for this and found many who had the same problem, but no solutions. What am I doing wrong? I am pulling my hair out! ...
[5 replies] Last: If Visual Studio doesn't work out for you, then get this: http://sourc... (by Stormboy)
help me out
 
why this program not working with string data type when i use char data type instead of string so this program run easily but not with string??? #include...
[4 replies] Last: The Reason it doesn't work is because strlwr is originally a C fun... (by nvrmnd)
Can't solve this Number Guessing Game problem
 
I've bought this book 'Beginning C++ through game programming' and it told me how to make a number guessing game, then it challenged me to make a number guessin...
[3 replies] Last: Heres my other try.Now it detects the number that is left: #include <... (by SorinAlex)
December 2013 Pages: 1... 45678... 69
  Archived months: [nov2013] [jan2014]

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