Beginners - May 2010 (Page 13)

I am a beginner c + +
 
respectful greetings to all. tasks until the week I can not be successful I requested output: 1 * 2 ** 3 *** and up to 100 and the number of stars 100 ...
[2 replies] Last: http://cplusplus.com/doc/tutorial/control/ (by moorecm)
Random Number Generate
 
#include <iostream> #include <ctime> using namespace std; int main() { srand(static_cast<int>(time(0))); int iAPickFive = {}; int randNumber ...
[19 replies] Last: Maybe try: std::cout <<( val? ", " : "" )<< val; (by moorecm)
by mlamaa
http request
 
dears i'm new to c++ and i'm trying to make some demos application now i'm buildin an application that use http connection to make http request and get a r...
[1 reply] : You may want to look at CURL. http://www.libcurl.org/ (by kbw)
vector<vector>
 
Hello I´m new here, i'm use the site lots of times, but it's the first i use the forum, because i never needed until today. My doubt is about STL vectors...
[1 reply] : http://www.cplusplus.com/forum/general/20636/ http://tinyurl.com/39bz... (by blackcoder41)
Index of max in Array of doubles.
 
I have the following the code. The following is the fastest implementation I could think of for gettting the index of max element in an array. I want to use poi...
[3 replies] Last: You might also consider using a std::valarray which is designed just f... (by Galik)
by Gio
SDL Test problems on VC++ 2010 Express
 
I am using an SDL Setup Tutorial here: http://pgdc.purdue.org/sdltutorial/sdl_setup.html and Visual C++ Express 2010. When I add the directory to the solution...
[4 replies] Last: The folder structure already change. #include <SDL/SDL.h> ... (by blackcoder41)
Receiving files from websites?
 
How would i make a simple CLI program recieve data from a server? Because i want it to download files from my website.
[1 reply] : You might want to have a look at the File Tranfer Protocol. (by attaboy)
heap corruption error
 
Hi, I am trying to do a very simple program that takes two dynamic char arrays and does a strcpy() implementation? The program works fine until it has to...
[13 replies] Last: There's indeed no error, however different compilers will treat this d... (by Albatross)
Function to read doubles...
 
I'm trying to write a function that is passed a pointer to a string * filename and a double data array. The function is supose to read in a set of double...
[10 replies] Last: The second line converts what's in ss to a double and passes it to ... (by TheTSPSolver)
Hellooo guyz i need a little guidance with this prog
 
Hello guyz i am student and i use MPLAB with ccs compiler and a PIC18F4680. I wrote a simple program that calculates the the (a+b+c)/3.I use hyper terminal to ...
[12 replies] Last: So I guess this is C forum...!! Lets see: char *buff; mems... (by DemienBjarne)
pointer?
 
hi fellows , i have a questionYou are required to write a program that takes a phone number as input from the user and stores it as a string value. The phone n...
[18 replies] Last: Here is the solution for Introduction to Programming CS 201 Assignment... (by nurdeen)
Change window color when clicked on, GUI programming
 
Hello all! I am writing a board game at the moment, and some of the tiles on the board are rectangular in shape. I'm using a separate window for each tile, an...
[no replies]
by b33p
Duplicate Number Removal Array
 
Hey guys, I am having trouble finishing this program. It does not work. I am suppose to have the user input 10 numbers and if there are duplicates it will only ...
[10 replies] Last: Erm... Demien... um... we have no guarantees that the OP will not turn... (by Albatross)
including libraries
 
Really stupid question: how do I include libraries I made myself? I just made a static library with a word-wrapping function in, takes in a string and makes th...
[8 replies] Last: What compiler and/or IDE are you using? EDIT: If it's a closed so... (by Seraphimsan)
Must be possible: 3d arrays
 
Hi there. I've read a lot archived threads now but I can't find the answer. I thought it was straight forward to make a double but apparently it isn't as I'...
[9 replies] Last: Hehe I know it's old. I just had problems with the newer ones and this... (by Chaospling)
by TH 113
Defining strings
 
I hope this can be done, here is an example of what I'm doing: cout << " -------------\n"; cout << "| 1 2 3 |\n| |\n"; ...
[7 replies] Last: If you mean parameterizing a function that draws your game board so th... (by moorecm)
Error in building solution in VC++ 2008 (1,2)
 
I'm working in Visual C++ 2008. I have a made a project in which, I'm trying to write some output and then display it on console window. Unfortunately, Every ti...
[22 replies] Last: A thought occurs to me, on first look at your code and the description... (by closed account z05DSL3A)
pointer question
 
Hello, i was just starting to understand pointers until I came across the code below(from tutorial on this website). I fully understand it up until the line in ...
[5 replies] Last: Unlike non-pointers, accessing a pointer (i.e. without any operators) ... (by Kangaroux)
Picking a random riddle
 
I make loads of riddle but I need to make it pick a random riddle from it. how would I do do it? Thank you in advance.
[6 replies] Last: Note that you should probably use use srand(time()). http://cplusplus... (by Albatross)
by drw4d
Trouble with getline()
 
Here is a small section of code that I am working on. This isn't for a class; I'm just doing this for myself for the practice. struct ride { int number; ...
[5 replies] Last: Your current code will not work if you accidentally enter bad data and... (by kempofighter)
May 2010 Pages: 1... 1112131415... 33
  Archived months: [apr2010] [jun2010]

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