- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
I have two snippets of code that I am having a lot of trouble with finding the closed form Summations and time complexities for: x=0; for(i=1;i< pow(2,N); i = 2*i + 2){ for(j=1;j<N ; j++){ x=x+j; } } and: x=0; for(i=1;i <= (2*n); i++){ for(j=1; j <= n; j++){ if(j<i) … |
|
Re:
Hello guys, This code returns 2 errors and I dont understand why. [CODE] #include <iostream> #include <string> using namespace std; char choice; void M(); void C(); void Process(); void M(){ cout <<"Multiplication\n"; } void C(){ cout << "Calculation\n"; } void Process(){ cout << "Make a choice\n" << "C or M … |
|
Re:
Hi! Pls, somebody help me!! I'm stuck here since days. I don't know, what i'm doing wrong. |
|
Re:
I am needing help on a problem I began a few days ago. It regards a temperature prblem and I am required to write a program to display and print the degrees in farenheit and centigrade. I performed the program numerous times and got these results: conversion.cpp:11: parse error before … |
|
Re:
Hello guys, is there a way to declare global variables as [B]float[/B] and then convert them to [B]int[/B] to be used in a function? i.e. [CODE] float num1, num2, result; float Mod(){ num1%num2=result; //Wrong, (%) requires [B]int[/B] type) } [/CODE] |
|
Re:
[img]http://img19.imageshack.us/img19/9384/f5.JPG[/img] #include <stdio.h> #include <math.h> void main() { double a,b,c,disc,x1,x2; printf("To find the roots of a quadriatic equation with real roots\n") disc=b*b-4*a*c if(disc<0) printf("The roots are complex",disc); if(disc>=0) printf("-b+sqrt(disc)/2a",x1); printf("-b-sqrt(disc)/2a",x2); This is what i wrote, i know it is missing alot but I really dunno how to do it, so … |
|
Re:
ok im trying to change this from link list to a queue.bt whenever i run it it sill shows from last to first which is the opposite from what i want.here it is, i hope somebody can try to see whats wrong with it. #include<iostream.h> #include<conio.h> struct queue { int … |
|
Hello ; i'm a c++ intermedite programmers from KSU CCIS colleage and i discoverded that i can't write a high quality application without GUI and i want to move to .NET framwork but when i buy a book a say that there is a big difference between them ? is … |