Beginners - November 2012 (Page 14)

fwritef and fgets operating on one FILE pointer
 
Is this possible? If not, why not? For example, of the following two programs, only the first works: FIRST #include <stdio.h> int main () { ...
[no replies]
String +if problems.
 
Hi im a super begginer to C++ I wrote the code and it gives me 2errors. Could you please try and fix it? #include <iostream> using namespace std; int main(...
[2 replies] Last: http://www.dreamincode.net/forums/topic/59437-how-to-make-a-password-s... (by meeram)
number of days between two dates
 
Hi all, I am looking to write a program for calculating number of days between two dates. Please help me with the logic for the same. Give me some pseudocode...
[3 replies] Last: I am not sure whether its good/valid one...may be you can find the tim... (by meeram)
Number Guessing program
 
Hey this is a program I've been working on. I was just looking for some input and tips/advice to improve it. You think of a number between 1 and 100. The com...
[1 reply] : Is there any specific problem with it? (by Adijunn)
EDIT: TicTacToe with win/lose counter and AI
 
I have a beginners tic tac toe program. So far I have my program allowing two players to play, each taking turns until one wins, then asking if you want to play...
[3 replies] Last: I use code blocks, not sure if its the best but its free..anyways, I t... (by civilVIU)
I can't apply what I've learn't!
 
I struggle to create some programs that involve some stuff what I've just learn't; when I try to create something it always end up been nearly the same of what ...
[2 replies] Last: Try these: http://www.cplusplus.com/forum/articles/12974/ Might help... (by HellfireXP)
by jgush3
Only part of if statement working
 
So I made a program that's like a little poker game. 5 cards are dealt, user picks which of those cards they want to replace with a new one, and then the progra...
[6 replies] Last: Also, this: if(e=1){ should be this: if(e == 1){ Use of the eq... (by TheIdeasMan)
by Lindz
What is the difference between ++i and i++?
 
I'm not really sure what the difference is and when to use which one. I know that ++i increments i before processing the current statement and i++ processes if ...
[3 replies] Last: The behaviour of comparing, incrementing and printing are different fo... (by meeram)
help with project!
 
1) Store information into arrays: first name, last name, address, city, state, zip, phone number, 1 homework average, 3 test scores and one final exam. Read the...
[2 replies] Last: You'll have to first initialize the various arrays: first name, last n... (by closed account DEUX92yv)
2 dimensional array issues
 
Ok, I have an issue. I'm stuck. Here is the problem specifications "Code a program that displays the number of times a value appears in a 2 dimensional array...
[13 replies] Last: I am sorry. You shall use searchFo instead of timesOccured. This vari... (by vlad from moscow)
by Xanadu
Help accessing a struct inside a class
 
So for my final class project, we have to create a family tree. Normally it wouldn't seem too bad but the way the professor has worded it and the way the inputs...
[5 replies] Last: xanadu. I believe we are in the same class... how is the project going... (by ILikeMath)
bool pointer
 
Hey I am trying to write a function that returns true if two c strings are the same, but it keeps returning false. bool strequal(const char str1 , const char...
[9 replies] Last: Mark the post as resolved.:) (by vlad from moscow)
by Lindz
What is C++ used for in websites?
 
I read on Wikipedia that Facebook is written in PHP and C++. What would C++ be used for in Facebook?
[2 replies] Last: ok thank you :) (by Lindz)
errno vs perror
 
(1) What is the difference between errno and perror? Why use one over the other? Why use both of them together? (2) What is the point in the else statement ...
[2 replies] Last: errno is part of a traditional error handling system. Certain functi... (by Catfish2)
Many errors found
 
#include <iostream> #include <string> using namespace std; int main () { int C = 0; int G = 0; string seq = " "; char c = ' '; cout << "Enter a DNA seq...
[5 replies] Last: Change at first the quotes and do not take away the time of others! (by vlad from moscow)
read and store varible from text file
 
Hello, i am trying to read the contents of a txt file that will store a variable. this txt file will only contain one or string number. so far i have gotten the...
[6 replies] Last: Hi dude I tried to look again for you ...I noticed that #include <io... (by jlillie89)
by ncuday
Roman Numeral Conversion, needs to iterate by one
 
Basically, what I'm trying to do is convert decimals to roman numeral in both upper and lower case and then display it 19 other times, increasing by one each ti...
[1 reply] : Just a recommendation here - why don't you create a function to do the... (by HellfireXP)
Removing certain values of an array
 
First of all let me say hello as this is my first post. Now here is my problem, i just started programming in school, i have like 2 weeks since i started worki...
[2 replies] Last: Thank you for the answer, the solution seems a bit hard for me at this... (by flavius doroftei)
Tic-Tac-Toe
 
Hello everyone, I just started programming a few months ago and now I have decided to start a Tic-Tac-Toe program in C++ to test my skills of arrays and more. S...
[3 replies] Last: On line 16, you print out board instead of board . You should also... (by Branflakes91093)
Linked list, really need some basic help!
 
Hi so I'm trying to create a linked list. Have been trying to watch youtube clips, wikipedia etc but I'm just getting more and more confused. I do however grasp...
[11 replies] Last: seriously if fun2codes link doesnt have the answer to your question i ... (by devonrevenge)
November 2012 Pages: 1... 1213141516... 75
  Archived months: [oct2012] [dec2012]

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