Beginners - December 2010 (Page 12)

Using the max_element <algorithm> with arrays
 
Hi and thanks in advance for any help. I am trying to learn how the <algorithm> functions work, and I am having a hard time with min and max_element. I would l...
[1 reply] : Ah I found it! I needed a * before min and max_element. That fixed it.... (by Aeiouy123)
I need to finish this.
 
**Write a program that reads a set of 10 integers, and then finds and prints the sum of the even and odd integers.** I don't got a clue what's wrong with it. ...
[3 replies] Last: Ok, Thanks for the help and the heads up. I'm truly sorry about the do... (by iTzSmiLeY)
by Calico
Reading I/O text files, with seekg command
 
Hi, Im having some trouble with the seekg command while using ifstream and reading textfiles. My actual code is pretty long, but i've typed out an example wh...
[no replies]
Trying to make Tic Tac Toe
 
Hello, I'm trying to teach myself C++ based on a little bit of Java experience, and because I'm bored.] I made a function called move, which takes in two arg...
[2 replies] Last: Since Tic-Tac-Toe has 3 rows, I would think in terms of a vector using... (by closed account 3pj6b7Xj)
Encountering weird errors when trying to overload the ostream operators
 
Hi all. I am trying to overload the ostream operator << and am encountering a bunch of problems when I'm trying to do that... #include <iostream> usin...
[no replies]
Getting a strange value
 
I was testing out how input/output files worked so I made a simple program. When I ran it, a new file was created and it'd say something like "The number -9.255...
[7 replies] Last: There is no physical difference between a text and a binary file. If y... (by ne555)
[Linker error] undefined reference to ...
 
Hello, Apologies if this is something simple, I'm very much a beginner. I'm trying to include in a C++ program a package designed by somebody else, and keep...
[2 replies] Last: Disch, Thanks very much for that. I wasn't using MSVS, but have swi... (by matthew1686)
Code::Blocks Scripting Console?
 
I didn't know where else to ask this. I could use the Code::Blocks forum but I am not sure how long will they take to respond, etc. In any case, when it comes t...
[1 reply] : Is it legal to bump a post by replying yourself? (by madmaxsantana)
by firix
qsort error ??
 
Hi qsort function returns an error. The problem is this: 1>main.cpp(4121): error C2664: 'qsort' : cannot convert parameter from 'std::_Vector_iterator<_M...
[2 replies] Last: thanks... (by firix)
by firix
Class Sorting algorithm
 
Hello, Class Sorting algorithm; O(n2) O(n log n) O(n log n) O(n) Could you explain what this is ?
[2 replies] Last: thanks (by firix)
Problems with getting boolean from db
 
Hi, I cannot get boolean data from MySQL database. This is how I tried to do that, assuming that conn is a valid connection: MYSQL_RES *res; MYSQL_RO...
[4 replies] Last: Sorry for my stupidity. I forgot that row is always pointer to char. ... (by pointtozero)
combining data
 
I am really new to c programming and c++. I am currently trying to write a program and I am having trouble. I have three variables. One is a floating variabl...
[1 reply] : With stringstreams eg: float f = 123.456; int i = 789; char c =... (by Bazzy)
how to save output in a text file
 
Could someone tell me how to get the output of this program into a text file ? #include <iostream> #include <math.h> using std::cout; using std::cin; ...
[4 replies] Last: hi, am new to this site............ (by meetanu)
Could use some advice before starting my project
 
Hi there! I recently started picking up where I left my programming skills in school. Back then I learned some Java (with swing) and C++. Now I plan to start...
[3 replies] Last: Apparently the Android NDK should only be used when making application... (by Chickpea)
I WON MIRACULOUS MEGA LOTTERY THROUGH HER PRAYERS,WHAT SHOULD I GIVE HER?
 
I am Sheila Verke from Phoenix,Arizona that won the $95.3 million Powerball jackpot on Monday(13-12-10),i am here to share my testimony to whole world,i have a ...
[7 replies] Last: Stupid things like this remind me of the Nigerian Scam... WHA... (by pwnedu46)
Using variable from other files.
 
I've noticed that my draw function in my header doesn't work because I'm trying to use a variable in the header that is used in my main.cpp file. Is it possible...
[1 reply] : Don't use globals. Pass the variable you need to the function. Then ... (by Disch)
by mppk
need to wrap the alphabet
 
#include<stdio.h> #include<stdlib.h> #include<ctype.h> /* * Matthew kidd * Date 10/12/2010 * a program to load user specified file into an array ...
[no replies]
Can somebody solve this problem.
 
Problem: Write a program that reads a set of 10 integers, and then finds and prints the sum of the even and odd integers. I have no idea, what kind of Doc...
[7 replies] Last: Hey, Guys this is the program I did by now, Program runs, but I don't ... (by iTzSmiLeY)
how i finnish this ?????
 
need help on this program what i need to finnish it ? #include <cstdlib> #include <iostream> #include <string> #include <stdio.h> #include <time.h> ...
[3 replies] Last: /* * Tiedosto: tärkein.cpp * Kirjoittaa: neoazores * * Luotua 16... (by Kyon)
Quick questions about using Vertex Buffer Objects (OpenGL)
 
I am trying to make my very own 2D engine. I have finished with all of the window programming and it works so far, but now I'm up to the tough part, the graphic...
[3 replies] Last: whaaat? *checks* Holy crap where have I been. You're right. ... (by Disch)
December 2010 Pages: 1... 1011121314... 35
  Archived months: [nov2010] [jan2011]

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