Beginners - March 2011 (Page 4)

what is wrong?
 
thread closed.
[3 replies] Last: Deleting your post after you get a solution = lame Forum posts are ... (by Disch)
Help with a program...
 
/no answers! just guidance, please. here is the copy.paste of the assignment. If anyone could help, greatly appreciated. Program: You and I are working toge...
[8 replies] Last: got it to compile! Thanks guys, problem solved! @ultifinitus yes I too... (by Shannon1981)
can't open input file
 
So im sure i have a few things wrong, but when I run this program it always fails at opening the file. what am i doing wrong? i mean i know that the file locati...
[6 replies] Last: @Mathhead200: Using relative paths has to do with the operating system... (by Computergeek01)
by drewos
2D Vectors
 
I need to make a 2-dimensional character vector so I can input data from a txt file into it however I cannot seem to find any clear way of doing this online. Al...
[6 replies] Last: Nope, a string can be treated as an array of chars with a variable len... (by Computergeek01)
by vi87
Const in method definitions
 
I'm kind of confused with "consts" in this example. How can I change *this in the method (for example operator++) when there is "const" placed after method dec...
[7 replies] Last: The constant might be at the front of the function definition/declara... (by guestgulkan)
by pooshi
Class Array Question
 
I have this code here and I was wondering if I could use the int playList array to index the class song mySong array without using pointers? Can I get to the in...
[6 replies] Last: Thanks for getting back to me and all your help. I can see my 2 proble... (by pooshi)
Space as a variable
 
This may be a dumb question, but is it possible to set a space as a variable?
[5 replies] Last: think about how to ask it in a clear and unambiguous way. To add... (by Disch)
cant pring my array in reverse order
 
as you can probably tell im almost lost as hell, i need to print an array in reverse order... the very last function i have is what im trying to use to do this,...
[3 replies] Last: Also, your void printBackwards ( int alpha_List, int beta_List ) { .... (by Mathhead200)
by durm
getline to stop at an integer
 
Hey guys I'm having a small problem with the getline function, i can't think of a command that will do this: Let's suppose i have a basic code that takes ...
[1 reply] : An easier way to do this I think would be using ifstream.peek(), "if(.... (by Computergeek01)
2 hopefully beginner questions
 
hey i havent posted in a while cuz my laptop has gots a nasty virus. i have ran norton like 15 times but it cant find it. anyway i want to know all of the \ ...
[18 replies] Last: A byte by byte copy will be as exact a copy as possible from one disk ... (by Computergeek01)
by wasabi
fseek cracking under pressure
 
A year or so ago, I created a program in C/C++ (a mix) which took as input huge "output files" from another program and returns certain values of interest found...
[5 replies] Last: YES! Got it! You were on the right track. I found an article on the w... (by wasabi)
by Billst
Help with while loop!!
 
<code/> // designers network // Demo logical operators #include<iostream> #include<string> using namespace std; int main() { string username; s...
[8 replies] Last: Well I am Linux based Does that mean if I figure out your brain's I... (by jsmith)
container
 
Hi . I want to write a program that insert 52 integer into a container. How can I start with first step? Thanks for Help.
[1 reply] : Start with either arrays, vectors, or structs/classes. Any of the prev... (by ultifinitus)
Need help with snake game
 
Hello everyone! I'm currently making a snake game. Actually, it is almost done, it's just one thing I can't figure out how to do, and that is how to make the sn...
[4 replies] Last: Ok then, I slightly misunderstood what you were asking. What ultifini... (by anonymous23323124)
Any Projects needing help?
 
Hi I am a fairly competent c++ programmer(I can do anything but graphics in c++) who is trying to find something to program. I don't have enough time to program...
[8 replies] Last: mabee I should clarify I'm not vulenteering to do your homework or hel... (by bboy212)
by mux77
variable sized arrays
 
Hello experts, I'm new and I have written a program for a class that encrypts a text file using XOR. I have not been able to make it work just right yet. I'm ...
[1 reply] : Variable Sized Array = Vector see here: http://www.cplusplus.com/refer... (by Computergeek01)
Random Data
 
I am in grade 11 Computer Sciences and i am having trouble with my programs and my instructor doesn't really know how to fix this. Maybe someone could take a l...
[6 replies] Last: Well thats dumb. Thats what i was taught to do. But anyway, thanks for... (by RecoJohnson)
calculation using fungtion
 
#include <iostream> using namespace std; const float maxPerUnit = 20000.00; //minPerChild includes a standard fift consisting //of a bath towel and facec...
[1 reply] : Your main has 2 {s and 3 }s. I suppose the wrong } is on line 109 ? A... (by hamsterman)
by tonnot
Strategy to save pairs of data
 
I want to implement a container to store values in a 'pair' style. The structure are going to be something like a spreadsheet, some cells have data and othe...
[6 replies] Last: [quote=tonnot]I want to deal with millions of points... If you have t... (by m4ster r0shi)
help me on a simple 'atof' function
 
#include<iostream.h> #include<conio.h> #include<ctype.h> #include<stdlib.h> void main() { char a ; float b; cin>>a; if(!isalpha(a )) { b=atof(a ); } b+=10; cout...
[13 replies] Last: A double (like the value returned by atof) will convert to float is y... (by vasusachin24)
March 2011 Pages: 123456... 52
  Archived months: [feb2011] [apr2011]

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