Beginners - August 2011 (Page 25)

need help :( (1,2)
 
#include <stdio.h> void main () int array ; int sum =0, I; for (I=0; I<5; I++) { scanf("%d",&array ); sum= sum + array ; } i wan to do addition usin...
[35 replies] Last: Thanks for all ur helps :) (by Frozendog11)
how to make guess function loop X number of times?
 
#include <cstdio> #include <cstdlib> #include <iostream> #include <string> using namespace std; void guess(); void end(); int main () { guess(); end(...
[1 reply] : nevermind i figured it out myself...the function guess() keeps reloop... (by metulburr)
Read the first word from each line of a file
 
Trying to go through each line of an input file and read the first word of each line. The end of the first word is always delimited by a space. void read...
[5 replies] Last: I forgot to thank you for this. It was exactly what I needed. I appr... (by joatmon)
is there not an easier way
 
#include <cstdio> #include <cstdlib> #include <iostream> #include <string> using namespace std; int main () { int i,j; int star ; string column ...
[15 replies] Last: cout <<"second display"<<endl<<endl; cout << " 1 2 3 4 5 6 7 8 9 1... (by shacktar)
Having problem with VS C++2008 when using command prompt to compile source code
 
Hi everyone, I am new here and new to C++ as well. I just started to write my first sample program, hello world; When I use VS 2008's IDE to compile, ever...
[2 replies] Last: Well, the error is saying that some or other file is missing. Check t... (by andywestken)
Absolute Beginner
 
I am an absolute beginner in pretty bad need of help. I have been searching the internet trying to find a DIY solution to my problem without any luck. I believe...
[5 replies] Last: I would recommend a more invasive approach: that all photographers hav... (by shacktar)
Computer as player
 
I was wondering how to make a guessing game where the computer has to guess the secret number that the programmer comes up with. Obviously the other way around ...
[4 replies] Last: if you were told that 59 was too high, would you go on to guess more n... (by Maese909)
Bored. New project please?
 
I recently took a intro class on programming with C++. I aced it. I want to continue learning but I can't take the next course so I'm going to try to keep on le...
[12 replies] Last: I'd be interested to hear what the must know parts of Linux are, too. ... (by andywestken)
output help!!
 
double y, z; double c = {3.5, -0.6, 4.7, 5.7 }; y= c ; z= c *y++; why is y=.4 instead of -0.6?
[4 replies] Last: Scroll down this link and read about pre increment and post increment ... (by jloundy)
What would be an effective and efficient way to tell which subvariable you want to use in a data structure like a union?
 
Hey, I have a union and it has a bunch of members in it. How can I tell for my functions which member of the union to use? Should I use an extra argument and ha...
[7 replies] Last: "My" idea was nicked from (Microsoft's) Automation VARIANT type/struct... (by andywestken)
Double quotes without an escape sequence.
 
So, let's say I have something like this pop up. (Which, funnily, is on these same forums:) http://www.cplusplus.com/forum/beginner/2355/ But, what if I ca...
[18 replies] Last: Hmm, well this is odd. I've been using Qt Creator & it seems to alway... (by MASTER260)
strcpy problem
 
I have this code: class CFTP { private: CURL * Handle; char ServerName [ 100 ], UserName [ 70 ], Password [ 70 ]; public: void Connec...
[2 replies] Last: thanks. (by Scottas)
text based rpg error
 
#include <iostream.h> #include <time.h> #include <stdlib.h> void main(void) { srand(unsigned(time(NULL))); int dice; float playerhealth; playerheal...
[4 replies] Last: Thank you (by larzbyron)
by kemnet
Cut/copy/Paste in forms
 
Hello. All I have this menu on my form that has the normal edit functions. so i can cut from my text box using the code private void mnuCut_Clic...
[2 replies] Last: hmm ok thanks for the tip, to clarify a little more, i was kinda hopi... (by kemnet)
need to stop at multiples
 
I need an easy way to stop my iterations at a certain number plus its multiples so that i can output a specific character every time I reach that value " c " (a...
[1 reply] : Have a look at the modulus operator (%) It's on this page in the "Ari... (by andywestken)
by Zephni
Problem in my if a == b statement
 
Hi guys, this is my first post here. I am so used to writing PHP that sometimes when the syntax is different for another language I don't even know where to loo...
[5 replies] Last: Unless you have limited memory, or need very, very large arrays, I wou... (by andywestken)
Make Program Able To Read Name
 
greetings all, I am still a beginner in this, I apologize if I sound a little..dumb... Okay... My code is below: #include<iostream> #include <st...
[4 replies] Last: to purefan: ahaha, you helping me is more than enough :). You voluntee... (by lianazaman)
memory leaks
 
Hi, I'm having some problems with memory leaks and can't figure out how to fix the problem. the code below is used to change letters in a string #include ...
[3 replies] Last: You shouldn't mix malloc and delete: Either use new/delete or malloc... (by phoenix1990)
by Citis
How do I create a new file?
 
I would like to create a new file in my computer via a programme. How can I do it?
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/files/ or alternatively, you co... (by hamsterman)
Loading dll when program starts
 
How to load dll when program starts? For example, I start notepad.exe, then message pops up 'Notepad started'?. I have no idea where to start to :D
[1 reply] : Anyone? (by Scottas)
August 2011 Pages: 1... 2324252627... 39
  Archived months: [jul2011] [sep2011]

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