Beginners - August 2011 (Page 7)

Sorting vectors with a compare function.
 
I can't figure out why the following isn't working: #include <iostream> #include <algorithm> #include <vector> struct turtle { turtle(){} turtle(Int_t f_i,...
[7 replies] Last: http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=6336 http://root.cern.c... (by closed account DSLq5Di1)
Does the length of variable identifiers affect file size?
 
Hi. My question is: Does the length of variable identifiers affect the file size of a distributed program? For example, would it be better to call a variable...
[3 replies] Last: Oh that's interesting I never knew that. So I do not need to worry ab... (by TheMassiveChipmunk)
Problem with ifstream in loops
 
Hi guys, Im writing a program that that will read a number of XML files, extract the information i need and write said info to a new txt file with the same n...
[2 replies] Last: Hey Sloppy9, Thanks for that. Program works and saves the information... (by PodgeBurns)
A little help with a basic sockets program (1,2)
 
Hello, I am looking to write a simple program where you have a client that sends a message to a server and the server saves the message as a variable and then p...
[24 replies] Last: Figures it would be something so silly! glad you got it working. ^^ (by closed account DSLq5Di1)
need help with tokens
 
i'm stuck on a program that i am working on. your suppose to open a text file with names of shapes and certain lengths of it's sides. it then calculates what it...
[2 replies] Last: well i kinda have to use tokens because thats what my instructor said ... (by rcenteno)
by greene
read data from file
 
Hello all, I am quite new to C++ so my question might be very basic. I am now trying to read data from a file in the format of: A=524 B=14 C=89 Is...
[2 replies] Last: Maybe you can try this tutorial http://www.cplusplus.com/doc/tutorial/... (by TheMassiveChipmunk)
by Chathu
How To Initialize A Char Array
 
Is it a must to specify the size of an array when u initialize it. If so Why it is important give the size? char whatever ;//method 1 char whatever ="whatev...
[5 replies] Last: Warning!! C++ only allows arrays to be defined with a constant size. ... (by andywestken)
by Chathu
Concatenate Strings
 
y can't we concatenate strings using strcat? #include <cstdlib> #include <iostream> #include <string> #include <cstring> using namespace std; main(...
[7 replies] Last: not only char arrays but also integer arrays can be converted to point... (by Chathu)
Header files
 
If one wanted to, could he, say, make his own header file to make programming easier?
[6 replies] Last: I think the main point of a header is to let you share variables betw... (by Disch)
A program which inverts words
 
Hi! I want to make a program that flips the words user types. If I type "Hi how are you?" I want the program to return "iH woh era ?uoy". So far I've done this,...
[4 replies] Last: So my idea is something like this: for(int j=0; j<L; j++) ... (by chriszs)
How to install SFML on microsoft visual C++ 2010 express?
 
Just wondering if anyone knows how to do this
[2 replies] Last: I recommend getting 2.0 instead of 1.6: http://sfml-dev.org/tutorials... (by Disch)
by waso
namespace
 
Hello, I am quite in c++ programming and I was just trying to use "namesapace". Here is my code: #ifndef _FUNCTION_CALL_EXTERN_H_ #define _FUNCTION_CALL...
[6 replies] Last: Hi CodeMonkey, thank you very much for your answer. Regards, was... (by waso)
C++ Menu Program HELP PLEASE
 
Can anyone help me in my problem? #include<iostream.h> #include<conio.h> main() { clrscr(); int choice=0; cout<<"Press\n1(Burger)\n2(Fries)\n3(Dr...
[7 replies] Last: Problem solve with the help of my Instructor heres the code #include... (by lester1189)
Console tic tac toe win condition
 
Is this really only way to make win condition for tic tac toe? Or there is better and easier way? (see lines 55-70) #include <iostream> #include <cctype> //...
[14 replies] Last: I dont change state of forever. While loop should break when CheckWinC... (by closed account 10oTURfi)
by Nelli
check a string for proper date input PLEASE HELP
 
I posted this question earlier and I am still completely stuck. I know it is alot of code to look at but the problem should be simple I just can't figuare it ou...
[2 replies] Last: ok this is what I have after the String_To_MDY am I getting closer? th... (by Nelli)
Does malloc dynamically allocate memory?
 
If I have an array array1 when compiled will reserve an array of 50 elements. Malloc it is said goes around this because it is not needed to know, during...
[4 replies] Last: std::malloc( ) allocates the specified amount of bytes and returns t... (by closed account zb0S216C)
Question about program
 
Okay, so I'm trying to create this program. I believe I have it entered in right, but, when it runs, nothing comes up. This is the code thus far: #include ...
[3 replies] Last: If you need to do mathematical calculations in your program then use <... (by Chathu)
by tonnot
How to initialize a char[50] to empty at struct constructor
 
struct my_struct { int var1; ... char txt1; my_struct(){txt1=""} }; I'm unable to initialize txt1 to empty value.... Heeeelp I need this, because when wr...
[5 replies] Last: memset is ok . Thanks (by tonnot)
Run program triggered by click event
 
Can anybody show me how to do this quickly please? I just want to click a control and for it to launch an application... private: System::Void button1_Click...
[1 reply] : in Windows: ShellExecute(handle, "open", "C:\\Users\\Ben\\Documents\\F... (by Danilo Renato Silva)
by Chathu
What Is The Error
 
I Want To Take Some Integers To An Array . To Do This Im Using A Loop.But The Program Says It Must End Taking The Values When The User Enters A Character. I Don...
[4 replies] Last: Ill try it. thank you coder777 thank you for your answer. (by Chathu)
August 2011 Pages: 1... 56789... 39
  Archived months: [jul2011] [sep2011]

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