Beginners - October 2012 (Page 38)

Writing to a .txt file using a function
 
Hello! So I'm trying to figure out how to pass a txt file to a function to be written to only. I will not need to read from it. I cannot figure out how to set u...
[7 replies] Last: The reason you had trouble is because you put using namespace std; ... (by Moeljbcp)
arrays
 
My program is meant to shuffle a sequence of numbers 0,1,2,3,4,5 so that the ending result is 5,3,1,0,2,4. it does this by first taking the initial array and...
[7 replies] Last: Also, thanks for that neat trick with int C = {} my professor never... (by alepxpl93)
What am I doing wrong with this program?
 
I'm trying to teach my self functions by adding them to my already built calculator, but I can't seem to make it work. What am I doing wrong? #include<iostre...
[1 reply] : 1st. Please use code formatting (the "<>" button) to post code. 2nd.... (by scapegote)
Please help with my first program!!
 
Hello! I'm a beginner of beginners to the max to C++ and I have started to go through the tutorial here on this site, and although I got my Hello World progra...
[6 replies] Last: You need stdafx.h if you're using MS Visual Studio. Codeblock doesn't... (by pnoid)
Why does program crash when an integer variable is declared in main (1,2)
 
I can declare an integer variable in the program anywhere except for the main function....I just put: int dummyVariable; and it crashes everytime. I ...
[20 replies] Last: so is there any way to convert a string to a number and decrement the... (by closed account DSLq5Di1)
Looking for Quality Online C++ course for mac
 
Hi I am new to C++ and computer programming in general for that matter. I have a mac and just downloaded Xcode, but am looking for a quality website tutorial (p...
[2 replies] Last: This site has an excellent tutorial. http://www.cplusplus.com/doc/tut... (by AbstractionAnon)
Very basic
 
Hey everyone, I hve just recently started learning c++ and i have to write a program in which a user enters a number and that program tell that user if it is a...
[6 replies] Last: Yes, but you should work on the core of the code first. Reread my post... (by LB)
Graphics in C++ Help
 
I have searched in many places and have failed to find a tutorial on how to display graphics in C++. How do you display images and manipulate them in C++? Tha...
[5 replies] Last: On the contrary, C++ is quite possibly the best language for your RPG ... (by Morg)
Vectors and File I/O
 
I was using this forum as a guide and it raised a couple questions that I am having a little bit of a hard time finding clear answers to. http://www.cplusplus.c...
[3 replies] Last: Ok so all of this is to check to make sure that I'm on the right page,... (by soccerace)
vbvc
 
yty
[2 replies] Last: Your switch statement shall not work. That is it will always pass the ... (by vlad from moscow)
steps to build my own linux destro
 
hi yall,i wanna build my own Linux OS,but i dont know where to start should i download an already existing destro or what? please help i need the first few step...
[no replies]
Skipping my for loop
 
Here is one of the functions in a program I am writing. For some reason I cannot figure out why the for loop wont run. The for loop is right before the return, ...
[4 replies] Last: Right I forgot how for loops work in C++ im thinking of PHP (by mike12255)
loop to write a to z alphabetically using char
 
I'm trying to get a loop to write a to z alphabetically using char, but no matter what I try I get an error. Here's the code I'm working with at the moment: ...
[5 replies] Last: Or even? #include<iostream> using namespace std; int main() { f... (by andywestken)
DwmApi function doesn't work (says undeclared)
 
I want to use this function: HRESULT DwmGetColorizationColor(DWORD* pcrColorization, BOOL* pfOpaqueBlend) it should be in the dwmapi.h my use: #include <dw...
[2 replies] Last: already done, all headers are #include <windows.h> #include <cstdlib> ... (by ViteXikora)
prime number checking program
 
So I'm trying to make a program that checks if the inputted number is prime. "a" is the inputted number and the code checks to see if the number is a prime ...
[1 reply] : Well, you're testing 81 for divisibility from 2 to 9. And it's divisib... (by andywestken)
Help for Algorithm
 
Hello! I need help to find the longest sublist from the same two lists. I came to the following algorithm, but does not work properly. If anyone has an idea can...
[no replies]
HELP ASAP!!!
 
Suppose you own a soft drink distributorship that sells Coca-Cola(ID number 1), Pepsi (ID number 2), Canada Dry (ID number 3), and Hires (ID number 4) by the ca...
[3 replies] Last: Sorry the very late response. Thank you for the help so far but I am c... (by rduckett91)
[Broken Code, C++] Loop when input is larger than cstring
 
I'm trying to write the first part of a safe program that prompts the user to enter a file and verifies that the file exists. It is the first part of a bigge...
[1 reply] : Function cin.getline (cFileName,MAX_SIZE); leaves the new line chara... (by vlad from moscow)
char inputName[80] = {'\0'}; What does this do?
 
char inputName = {'\0'}; i'm confused on what this line of code does. can someone explain?
[4 replies] Last: okay thank you so much! (by dritail)
by MikeJK
Adding libraries
 
Hello everyone! I've used this site for years, but I only now registered. The problem: I want to be able to filestream with excel sheets, but I just can'...
[2 replies] Last: Thank you!! That works perfectly. I'll mark this as solved. Thank yo... (by MikeJK)
October 2012 Pages: 1... 3637383940... 84
  Archived months: [sep2012] [nov2012]

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