Beginners - May 2013 (Page 14)

I can't work with multiple files!
 
The compiler doesn't allow me to use multiple files for some reason?! Please help! My files: Main.cpp #include <iostream> #include "proto.h" using nam...
[2 replies] Last: It looks to me as though the #include "proto.h" failed to find or re... (by Chervil)
from switch to if
 
this is a question from exam....and my answer is after the question is it write or not? please tell me if i go wrong. question:Rewrite the following switch...
[3 replies] Last: if(grade=='A') || (grade=='B') cout << “good”; else if(grade=='C')... (by vlad from moscow)
how to open file from c++
 
guys, how to open file from c++ this is my coding, can you help me to fix it?? { cout<<"Find subject that you want: "<<endl; cin>>b; strcat("D...
[19 replies] Last: kbw, beacuse the program can't open the file thanks to MiiNiPaa, you r... (by marvin77)
Letter Count Function
 
So I need to decrypt a file, and my first step is to find the most common letter. I've written the following function to increment the letter count and it seems...
[10 replies] Last: When change it to cout << letters[ index ]; And why are you inventin... (by vlad from moscow)
File I/O
 
Hello all, I'm working on a file I/O at the moment and I need some guidance. I have a fraction structure, and I'm dynamically allocating the structure through...
[7 replies] Last: In general, avoid operating on the same file, keeping the same file si... (by JLBorges)
problem on submitting 3n+1 problem
 
i am a beginner . i am trying to submit a solution of 3n+1 problem.it works properly but when i submit this , wrong answer is replied.please help me to solve th...
[6 replies] Last: > What 3n+1 problem is? Details. long int is may be too short ... (by ne555)
by pata
Passing char* argv[] from main
 
How would I pass a char pointer to a array of pointers to a function? (think i said that right) I want to print out the strings from the command line arguments ...
[4 replies] Last: its type is char** when we use subscript operator x we gor char* ,... (by MiiNiPaa)
optical shop simple software
 
hey everyone! I am making simple optical shop software in which we have have to enter name,age and customers number of specs. But i am not able to save record...
[2 replies] Last: I have tried. This is the program: #include<conio.h> #include<string> ... (by Dhvanit)
How to find out the number of seconds from 1700 until the specified date and time
 
Hello! How to find out the number of seconds from 1700 until the specified date and time? Now I'm trying to find quantity seconds between 00h 00m 00s 01d ...
[14 replies] Last: keskiverto, thank you! With GNU date: # date -d 1700-01-01 +%s -852... (by Observer)
Locating position of Array
 
For example, for an employee clock in program, I type in the employee id, it searches the array to see if its there. Once the ID is found, I want to store the p...
[1 reply] : Well, if you use a for loop to iterate through an array, just store th... (by Ispil)
Change font on mac
 
Hi, I'm a new developer (obviously), and although I will use Cocoa/Objective C to make GUI's, for now I want to be able to change the font and colors of the fon...
[no replies]
Help regarding formatting for a Fibonacci Sequencing Program
 
I basically have the whole thing written, and it works perfectly, but my professor is asking us to have six values per row, and my values are being outputted in...
[3 replies] Last: hi. here's my advice: remove line 32, and place these lines instead: ... (by Rechard3)
Prime numbers chart
 
Hey guys. I read the forum rules so I'm just going to be honest, this is a homework question. I'm not looking for a completed program or anything. I'm well ahea...
[6 replies] Last: Chervil yeah sorry about that. The 'g' columns were primes per 100. An... (by rorschach775)
Results error. Cant determine if it's my formula or my function. please help!
 
Please help. My results are wayyyy off. If you put in 10 for the rate and 36 for the period... it's waaayyy off. I feel like I'm looking right at it and just...
[3 replies] Last: hi, i have one question for you mr.Garrett05: aren't you have an "out ... (by Rechard3)
Keep track of a single element after sorting an array
 
I have an array of number in which one element is "activeItem" determined by the position in the array. After I sort it, that "activeItem" will most likely chan...
[15 replies] Last: Thank you to everyone for your help, I really appreciate it. I finally... (by litoscu)
ncurses.how to get this triangle to x,y coordinate (4,6)
 
#include<ncurses.h> #include<iostream> using namespace std; void tri(int row,int col,int hei) { for(int i=0;i<=hei;i++) { for(int j=5-i;j>0;j--) cou...
[no replies]
strings
 
Q1:-The user enters a sentence your task is to output every word on a new line. *please note that i haven't learnt strings yet so please help me with it.* ...
[5 replies] Last: thank you it makes sense now...:) (by kathrine)
Majority element in an array
 
Hi, I'm trying to make a program that finds out the majority element in a user-input. A majority element is an element that is repeated more than half of the nu...
[4 replies] Last: If you are comfortable using STL algorithms, you can do the following:... (by ats15)
Student info
 
Hey everyone! I need some help with this code. I need to create a program that acts as a student information library, where it stores the students' first name,...
[5 replies] Last: Thank you (by SlateHawk)
by arashf
Memory issue
 
Hi, I am not sure how I could give you information about the following error. The code is too long to put here. The program make a large double array of size...
[15 replies] Last: It works. Thanks keskiverto. (by arashf)
May 2013 Pages: 1... 1213141516... 66
  Archived months: [apr2013] [jun2013]

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