Forum: HTML and CSS May 28th, 2009 |
| Replies: 1 Views: 517 <div id="footer">
<p><a href="link.html">Link</a>
<a href="link.html">Link</a></p>
</div>
Result: LinkLink
If I add a space in between <a href="link.html">Link and </a></p>
Result: Link... |
Forum: JavaScript / DHTML / AJAX May 28th, 2009 |
| Replies: 4 Views: 390 which other method should I use then? The file is .html the Doctype is XHTML strict |
Forum: JavaScript / DHTML / AJAX May 28th, 2009 |
| Replies: 4 Views: 390 This is a basic piece of code that write a couple of links to the webpage:
in the xhtml file (1.0 Strict):
<script type="text/javascript" src="file.js"></script>
in the file.js file:
... |
Forum: C++ Apr 1st, 2009 |
| Replies: 6 Views: 356 my typical mistake, the condition has to be true for the loop to work not false =/ |
Forum: C++ Apr 1st, 2009 |
| Replies: 6 Views: 356 string converter (string letter){
if (letter == "À")
return "A";
else if (letter == "à")
return "a";
.....
}
the whole thing is if / else if/ else if ........ |
Forum: C++ Apr 1st, 2009 |
| Replies: 6 Views: 356 I haven't programmed in some time and need some help here plz. First of all how are individual characters of a string are accessed? second do they start at 0 or 1? I'm probably confusing this with... |
Forum: HTML and CSS Mar 12th, 2009 |
| Replies: 3 Views: 645 for some reason my "right" appears lower than the "content" (center) but not the "left"
#box {
width:900px;
margin-left: auto;
margin-right: auto;
}
#content { |
Forum: C++ Dec 23rd, 2008 |
| Replies: 2 Views: 283 class tvShow {
public:
string name;
string dayofweek;
int lengthInMin;
double rating;
}
write a sequence of statements that will do the following: |
Forum: C++ Dec 15th, 2008 |
| Replies: 3 Views: 381 1 #include <iostream>
2
3 using namespace std;
4
5 int main(int argc,char *argv[]){
6 int answer = atoi(argv[1]);
7 if (argc==1){
8 ... |
Forum: C++ Dec 15th, 2008 |
| Replies: 3 Views: 381 im writing a program that adds up command line arguments, how can i account for a situation where there are no arguments at all?
#include <iostream>
using namespace std;
int main(int... |
Forum: C++ Dec 14th, 2008 |
| Replies: 7 Views: 796 figured out my close doesnt work yay?
and still my lookup function doesnt work heres the input/output again
in the file
smith joe jsmith@gmail.com
harper stephen sharper@pm.gov.ca
rococco... |
Forum: C++ Dec 14th, 2008 |
| Replies: 7 Views: 796 #include <iostream>
#include <fstream>
#include <string>
using namespace std;
void add(string);
void lookup(string);
int main() { |
Forum: C++ Dec 14th, 2008 |
| Replies: 7 Views: 796 not realy sure what you meanwith add().
file:
smith joe jsmith@gmail.com
harper stephen sharper@pm.gov.ca
rococco rocky rocky@.fsign.com
output:
lookup rockylookup fred
if i find the string... |
Forum: C++ Dec 14th, 2008 |
| Replies: 7 Views: 796 program read from cin what the user wants to do ("add" a name to list) or ("lookup" a name). in add just add whatever was read in to the file. in lookup print out a line of text with the string that... |
Forum: C++ Dec 10th, 2008 |
| Replies: 2 Views: 406 This program adds up command line args (all of them ints)
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc,char *argv[]){
int answer;
fstream a; |
Forum: C++ Dec 9th, 2008 |
| Replies: 1 Views: 430 read in MYDATA (with a space) from cin and find MYDATA in the file, print the line if its there. The line is going to be MYDATA + string.
int main (){
fstream filename;
filename.open(av[1]);... |
Forum: C++ Nov 29th, 2008 |
| Replies: 3 Views: 667 Remarks:
⇒ Your function is not returning the correct value. Please
revise.
char *min(char *a, char *b, char *c){
if (strcmp(a,b) > 0 && strcmp(a,c) > 0)
return... |
Forum: C++ Nov 29th, 2008 |
| Replies: 3 Views: 667 4 char *min(char *a, char *b, char *c){
5 if(strcmp(a,b) > 0) && (strcmp(a,c) > 0)
6 return a;
7 else if(strcmp(b,a) > 0) && (strcmp(b,c) > 0)
8 return b;
9 ... |
Forum: C++ Nov 19th, 2008 |
| Replies: 1 Views: 358 im writing a simple program that turns a decimal to hex. im only posting the piece of code where i have the problems
string hexnumeral (int d) {
int h,l;
string e,y,f;
... |
Forum: Graphics and Multimedia Nov 19th, 2008 |
| Replies: 3 Views: 809 I've got a blog up simply using html and css. what should i learn next, i want to add a comment feature stuff like that. my next project is going to be a forum wat languages are used to create forums? |