Beginners - June 2015 (Page 29)

by Winsu
Check if that is an string
 
what I want to do is resolve which on is the biggest member of my object,the object can have any type as It comes from a template...I'm trying to do a function ...
[13 replies] Last: In const BIGGER& cmp = BIGGER() , BIGGER is a type , not an objec... (by JLBorges)
Creating classes in other files
 
Hello, I am totally new to c++ and programming in general, and am running into issues when trying to create classes in other files. All I want my code to do is ...
[4 replies] Last: Both the "Compile file" and "Link file" boxes are checked, as well as ... (by eric johnson)
by koopey
writing string variable in binary file
 
I am confused in the technique used to write string data in binary file. If we write integer data in binary file instead, an example code used is: int score...
[5 replies] Last: thanks everyone. @Texan40 using getline to get string using '\0' was a... (by koopey)
by Bwoods
Graphics in c++
 
I would like to know if there is a way to use graphics in c++. If so please provide a software or 3rd party graphical interface. PS: I am an OSX user not window...
[1 reply] : My information may not be too helpful because I'm not sure what OSX sy... (by BlatantlyX)
Overloading >> instream
 
I'm writing a class that involves a queue, and I want to overload the instream. I know that for a more simple program, the correct way to overload the instream ...
[2 replies] Last: Ah I see. Yup, my algorithm already handles spaces or anything that is... (by DreamTime)
Temperature Conversion in Value Returning
 
I am working in these codes but I am still getting error. #include <iostream> #include <string> #include <conio.h> #define ESC_KEY 0x1b #define CELS...
[no replies]
Getline for parts of a line
 
Hey guys, I've been working on a little game project recently and have come into a bit of trouble, I've scoured google for a solution but can't seem to find it....
[1 reply] : You could use a tab delimited file? A bit easier to deal with than quo... (by andywestken)
parsing a text file and storing the words in a vector
 
I am trying to parse a large text file and store the words in a vector for processing later on. The file contains words, digits, and special chars. I think I a...
[no replies]
Strings C++
 
Hi. I've got next problem. There was an exercise: I must write a function void to_lower( char* s ) for replace all capitall letters with small letters in the s...
[4 replies] Last: Note it is better to code it as #include<iostream> #include <string>... (by andywestken)
Help on Tic Tac Toe Windows Form Application
 
I'm doing a Windows Form Application and I'm trying to do a Tic Tac Toe game and I'm trying to make void function to get a winner but I need help because I don'...
[no replies]
tolower() not working correctly
 
Could someone please fill me in to why my tolower() is not working throughout my program? // Input: Gets the necessary letters from user. // Processin...
[4 replies] Last: Or use switch (tolower(idColor)) { in which case the value returne... (by andywestken)
Code wrapped between '+'
 
Hi, I'm totally new at c++ and i need to understand the code from a a library calle Paridaseo, i did the whole tutorial here and have tried to search others ...
[7 replies] Last: Thank you all!! (by lunicirus)
Code runs but printing error.
 
Ok so I made this textdialougeTree. It suppose to print out the dialouge ,and choices. But I am getting nothing just press any key to continue. How come that is...
[1 reply] : One method of debugging is to add more "print" commands to various pla... (by keskiverto)
by Ch1156
C++ Grading website?
 
So, i've been wondering is there an online service or website that grades your knoweledge of C++? What I want is to have each c++ subject graded on how good my ...
[1 reply] : http://lmgtfy.com/?q=C%2B%2B+Testing or just test yourself. Can you d... (by R23MJ)
Access violation error while running systemC code
 
hello!I'm trying to do systemc-ams modeling for developing embedded system.I had written code for different module like mixer,adc,filter,etc.using Microsoft vis...
[14 replies] Last: Since you can display the source for sc_ver.cpp, you must have that so... (by AbstractionAnon)
by Ch1156
Vector Help
 
I havent been programming for quite some time but decided to come back to it. I wanted to start with some arrays and vector stuff, this is what i have. The...
[5 replies] Last: "So now your program doesn't ask how many elements?" That's correct, ... (by Ch1156)
Exception handling - is it good the clear up resources before every throw statement ?
 
Hello forum, I have a class that contains several pointer type variables and std::vector that contain pointer variable types. Exception can be thrown anywher...
[4 replies] Last: Will it taken care of if I use unique_ptr as well ... Yes. or I ha... (by andywestken)
references
 
wht are references for? From their definition as another name to a variable they seem totally useless. What do people use it usually for?
[2 replies] Last: From their definition as another name to a variable they seem totally... (by Peter87)
#include <conio.h> ?
 
I am looking to download these libraries. i use #include <iostream> and getting fatal errors for these #include<iostream.h> #include<conio.h> #include<s...
[1 reply] : <iostream.h> is an old, pre-standard header that are not used anymore.... (by Peter87)
Using setw()
 
So im trying to make 2 columns one with name and the other with the price ive been at this for a while but cant seem to get it Needs to look like this: WOR...
[2 replies] Last: setw sets the width of the next output so it is more important to us... (by Peter87)
June 2015 Pages: 1... 272829303132
  Archived months: [may2015] [jul2015]

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