I was wondering if anyone can recommend a good book on web development. thanks, in advance
Type: Posts; User: aromash
I was wondering if anyone can recommend a good book on web development. thanks, in advance
nevermind, i figured it out. sorry for the inconvenience
I'm having trouble trying to figure out what the compile error is for my program. When i compile my program [it's a class by the way] i get this message:
g++ Date.cpp driver.cpp
Date.cpp: In...
Good morning,
I'm having trouble trying to debug my magic square program. Here is my code:
#include <cstdlib>
#include <iostream>
#include <iomanip>
using namespace std;
can you show me an example of delete? do I always need to delete when an anonymous variable is looped?
Hello,
I'm having a problem with with code. Here is my code
#include <stdio.h>
#include <iostream>
#include namespace std
main()
{
Good morning,
I am given the hamming distance algorithm in C which is
int returnDistance(int x, int y)
{
unsigned dist = 0;
unsigned val = x ^ y;
thank you!
The problem is that it's returning a value for all sorts of characters. Here's another sample run:
Enter character: _
Uppercase = ?
the decimal for '_' underscore is 95
the decimal for...
for this program, I prompt the use to enter a string. after the string is executed, the program will then execute to convert all lowercase letters into upper case.
#include<stdio.h>
#include...
Tried that as well. Same result :/
Morning,
with this program, I prompt the user to enter a character and if it is a lower case letter, it would return its uppercase value.
Here is my code:
int toUpper(int x);
main()
{
those numbers are just arbitrarily chosen numbers just to prove a point. I'll try that formula out, thanks!
I was wondering how to generate a random REAL number within an array.
I always generate an error with this equation
n = 20.2 + rand() % 33.3
due to the fact, I believe, that the modulus...
figured it out...thanks guys!
So i'm assigned to enter a list of real numbers and to enter -1 if I want to end the list. After that I must find the average of the numbers entered. Here is my code:
main()
{
float num,...
i'm using windows xp 32-bit
I'm using one that's provided by my school, but you need to be logged onto their network to use it and it's mildy troublesome at times due to the lag it bring. I'm trying pelles C right now, but I'm...
Hey,
I was wondering if anyone would recommend me a good compiler for C. Something simple for execution and whatnot.
Thanks in advance
Does anyone have a website that shows several examples on how pointers are used especially when used in function prototypes?
Thank you in advance
I have another approach to this:
main()
initialize guest
initialize party
create loop for party
call int party(int n) function //n being number of guests
int bDays[Guests] doesn't work. I need a constant. Maybe 366 will work lemme give it a shot
it's telling me that I don't have enough privilege to access private messaging
Edit: Sorry, I'm only able to input what I've learned so far and I have yet to learn qsort :(.
I've also haven't learned this:
birthdays = malloc(sizeof(int)*guests);
get input guests...
So I did a sample run of 30 guests & 10000 parties.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int party(int n, int p);