Patients are randomized to receive AZT alone, AZT and ddI, AZT and ddC, or ddI alone for at least 2 years. Patients who develop AIDS or whose CD4 count falls to 50 percent or less of baseline are crossed over to another treatment arm.