Beginners - October 2013 (Page 59)

by tang
help me check why my /2/30 still valid==? which statment wrong
 
#include <iostream> #include <conio.h> #include <string> using namespace std; string date ( int year , int month , int day ) { if(year<1990||year>2009)...
[2 replies] Last: duplicate post. I answered this in excruciating detail here: http://... (by Disch)
by ephekt
overloaded << operator
 
Im having a problem passing the correct value to my overloaded << operator. Its displaying some random garbage number. its lines 50 through 55. I tried looking ...
[12 replies] Last: Thank you LB and giblit that makes it a lot easier to understand and ... (by ephekt)
Ordering an array into ascending evens/descending odds
 
So I'm not very proud to ask a question without using any code,but it has to be done. So I would like to sort an array into ascending evens and descending od...
[10 replies] Last: OK. This is what I came up with: #include <iostream> using namesp... (by alexandruKis)
Adding a popup box with an image in it?
 
I have no idea how to go about doing this, i need to add a pop up box with an image in it of a chest, is there a way to do this example int main { int play...
[2 replies] Last: What kind of graphical libary? and how whould i go by doing this then? (by Maderthanyou)
by face88
ERROR WITH STRTOK
 
Hey everyone.Just finish reading about some string functions.I decided to do a little exercise, but I am stuck. I want to user strtok with replace.I want to ...
[4 replies] Last: you cannot use s after you replaced with f (or you recalculate s).... (by coder777)
by Ausha
Switch between 3 different programs
 
I need to use switch, to make a program work, when input a specific character - n,p,k or r, different program for each char, cant figure out, how to initialize ...
[7 replies] Last: Thanks a lot! Problem solved, now it works as I need it to :) (by Ausha)
Reading binary data issues
 
Hi y'all, I'm trying to read a Bitmap file in the C++ way. This file has two headers (a file header and an image header). I succeed to read both of them. But n...
[4 replies] Last: Hi, I found a good explanation on another website. For those who have... (by patrikgwet)
divisibility exam
 
can you help me make a divisibility exam ??
[1 reply] : Hi there, [quote=Beginner forum rules] Don't post homework questions ... (by closed account o3hC5Di1)
Helping with calculating files brought into the program.
 
I'm stuck, I'm not sure how to calculate a line from a txt file I import into the program. The txt file has a set of 4 grades for each line, I have to calculate...
[1 reply] : Hi there, Try the following: int grade1, grade2, grade3, grade4; w... (by closed account o3hC5Di1)
Print string of user defined length
 
Hello all! I need help using strings in c++. I have a long string that I need to print to an output file. The trick is that no lines are longer than some gi...
[1 reply] : Hi there, The problem is in your second for-loop. Every time that end... (by closed account o3hC5Di1)
by enemy
int vs long (long int)
 
Please, can someone make me clear in a very simple way what is the main difference between int alnd long (long integer)? Many thanks!
[4 replies] Last: If you fall back to old compilers like Borland C++ 3.1 or Turbo C++ f... (by Catfish4)
String Issue
 
Let me start by warning I am new to C++, but I enjoy figuring things out and adapting as I go. I've almost completed this program and the last step is to cal...
[1 reply] : You don't specify the value of strings like that, you are specifying t... (by TwilightSpectre)
Difference between memcpy and strncpy
 
pls tell the difference between memcpy and strncpy.
[1 reply] : Note that strncpy behaves almost like memcpy, but it also treats zero ... (by rodiongork)
by Vigii
Setting Password to c++ program
 
Hi, I'm looking on how to set a password accessed program using c++. If anyone have any idea about it please let me know about it.
[1 reply] : Wait, do you want to password protect your code? Or implement a passwo... (by vasilenko93)
by Ausha
please test random number guesing game program wouldnt stop printing string
 
I have random number guessing game, it works except for one lag - after input number it wouldnt stop printing "Cipars ir mazaks" or "cipars ir lielaks" (number ...
[4 replies] Last: //solved it! This is how this works! #include <cstdio> #include <ios... (by Ausha)
by Vigii
create folder and put your files inside the folder using c++
 
Hi, I'm a newbie. I wanted to know how to create a folder using c++. After creating a folder I would access a function which will give me a set of *.txt files ...
[9 replies] Last: Filename can contain a path component. Path can be either relative or... (by keskiverto)
Brogram break :(
 
Hello, I have a really serious problem. My brogram just break. I dont find mistake. Here's my code (it has a lot of header and cpp files so I extract them) P.S...
[7 replies] Last: Duoas, You are amazing!!! thank You! (by deividas717)
by jeenal
C++ Program to enter year in digit, print whether it is Leap year or not
 
hey hi friends,people wanted to refer the C++ leap year program in simple and eays way can go through this http://www.cbtsam.com/cppl1/cbtsam-cppl1-073.php a...
[no replies]
Bool within if statement not working
 
Hi! I'm having a bit of trouble trying to get this boolean expression to work. This is the function: bool Bank::closeAcct(int result) { if(accou...
[4 replies] Last: Okay, I thought it was strange that this function worked fine in anoth... (by StartUp)
by watusa
Char* help - "reversing string"
 
I have an assignment where I have to take Hello World! as a char array and pass it to a function that will reverse it. I'm having a hard time understanding poi...
[6 replies] Last: if you know the size then you can do *(mystring + position ) or mystri... (by giblit)
October 2013 Pages: 1... 5758596061... 86
  Archived months: [sep2013] [nov2013]

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